liusheng
2024-12-11 10aaa035f5be0312304d20f022bdb714a8f4900a
smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -43,6 +43,7 @@
            resultMap="SysUserDeptResult">
        <include refid="selectSysUserDeptVo"/>
        <where>
            del_flag=0
            <if test="userId != null ">
                and user_id = #{userId}
            </if>
@@ -57,8 +58,12 @@
            </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>
@@ -189,4 +194,14 @@
    </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>