liusheng
2025-04-16 4613099dca2d4e1c7b46a69a98bb4c210312ac57
smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -46,6 +46,7 @@
        <include refid="selectSysUserDeptVo"/>
        <where>
            del_flag=0
            and orgid=#{orgid}
            <if test="userId != null ">
                and user_id = #{userId}
            </if>
@@ -101,8 +102,9 @@
            </if>
            <if test="deptName != null ">
                dept_name,
            </if>   <if test="orgid != null ">
            orgid,
            </if>
            <if test="orgid != null ">
                orgid,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -127,7 +129,8 @@
            </if>
            <if test="deptName != null ">
                #{deptName},
            </if><if test="orgid != null ">
            </if>
            <if test="orgid != null ">
                #{orgid},
            </if>
        </trim>
@@ -159,8 +162,9 @@
            </if>
            <if test="deptName != null ">
                dept_name = #{deptName},
            </if> <if test="orgid != null ">
            orgid = #{orgid},
            </if>
            <if test="orgid != null ">
                orgid = #{orgid},
            </if>
        </trim>
        where id = #{id}