|
@@ -16,6 +16,9 @@
|
|
|
<if test="contact != null and contact != ''">
|
|
|
contact = #{contact},
|
|
|
</if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ name = #{name},
|
|
|
+ </if>
|
|
|
<if test="phone != null and phone != ''">
|
|
|
phone = #{phone},
|
|
|
</if>
|
|
@@ -48,8 +51,8 @@
|
|
|
</delete>
|
|
|
<!-- 新增供应商 -->
|
|
|
<insert id="insetUser" parameterType="Supplier">
|
|
|
- INSERT INTO sys_supplier (code,nature_supplier,contact,phone,language,certificate_type,certificate,headpir,jdrq,flag,captcha,invoice)
|
|
|
- VALUES(#{code},#{natureSupplier},#{contact},#{phone},#{language},#{certificateType},#{certificate},#{headpir},GETDATE(),0,#{captcha},#{invoice})
|
|
|
+ INSERT INTO sys_supplier (code,nature_supplier,contact,phone,language,certificate_type,certificate,headpir,jdrq,flag,captcha,invoice,name)
|
|
|
+ VALUES(#{code},#{natureSupplier},#{contact},#{phone},#{language},#{certificateType},#{certificate},#{headpir},GETDATE(),0,#{captcha},#{invoice},#{name})
|
|
|
</insert>
|
|
|
<!-- 修改验证码 -->
|
|
|
<update id="updateCaptcha">
|
|
@@ -61,7 +64,7 @@
|
|
|
</select>
|
|
|
<!-- 手机号登录验证是否第一次登录 -->
|
|
|
<select id="checkUser" resultType="Supplier">
|
|
|
- select id,code,nature_supplier as natureSupplier,contact,phone,language,certificate_type as certificateType,certificate,headpir,jdrq,flag,captcha,invoice
|
|
|
+ select id,code,nature_supplier as natureSupplier,contact,phone,language,certificate_type as certificateType,certificate,headpir,jdrq,flag,captcha,invoice,name
|
|
|
from sys_supplier
|
|
|
where phone=#{phone} and captcha=#{captcha}
|
|
|
</select>
|