| | |
| | | resultMap="SysUserDeptResult"> |
| | | <include refid="selectSysUserDeptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="userId != null "> |
| | | and user_id = #{userId} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="updateTime != null "> |
| | | and update_time = #{updateTime} |
| | | </if> <if test="deptType != null "> |
| | | </if> |
| | | <if test="deptType != null "> |
| | | and dept_type = #{deptType} |
| | | </if> |
| | | <if test="deptCode != null "> |
| | | and dept_code = #{deptCode} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | </update> |
| | | |
| | | |
| | | <update id="deleteSysUserDeptByCode" parameterType="String"> |
| | | update sys_user_dept |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1, |
| | | update_time = sysdate() |
| | | </trim> |
| | | where user_id =#{userId} and dept_code=#{deptCode} |
| | | </update> |
| | | |
| | | |
| | | </mapper> |