|
@@ -302,6 +302,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where user_id = #{userId}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateAllCompanyUser" parameterType="CompanyUser">
|
|
|
+ update company_user
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="userName != null and userName != ''">user_name = #{userName},</if>
|
|
|
+ <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
|
|
|
+ <if test="email != null">email = #{email},</if>
|
|
|
+ <if test="phonenumber != null">phonenumber = #{phonenumber},</if>
|
|
|
+ <if test="sex != null">sex = #{sex},</if>
|
|
|
+ <if test="avatar != null">avatar = #{avatar},</if>
|
|
|
+ <if test="idCard != null">id_card = #{idCard},</if>
|
|
|
+ <if test="password != null and password != '' ">password = #{password},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="loginIp != null">login_ip = #{loginIp},</if>
|
|
|
+ <if test="loginDate != null">login_date = #{loginDate},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="token != null">token = #{token},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="qrCodeWeixin != null">qr_code_weixin = #{qrCodeWeixin},</if>
|
|
|
+ <if test="qrCodeWecom != null">qr_code_wecom = #{qrCodeWecom},</if>
|
|
|
+ <if test="jpushId != null">jpush_id = #{jpushId},</if>
|
|
|
+ <if test="qwUserId != null">qw_user_id = #{qwUserId},</if>
|
|
|
+ <if test="qwStatus != null">qw_status = #{qwStatus},</if>
|
|
|
+ <if test="domain != null">`domain` = #{domain},</if>
|
|
|
+ <if test="isAudit != null">`is_audit` = #{isAudit},</if>
|
|
|
+ <if test="addressId != null">`address_id` = #{addressId},</if>
|
|
|
+ <if test="maOpenId != null">`ma_open_id` = #{maOpenId},</if>
|
|
|
+ </trim>
|
|
|
+ where company_id = #{companyId}
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="deleteCompanyUserById" parameterType="Long">
|
|
|
delete from company_user where user_id = #{userId}
|
|
|
</delete>
|