sinake
19 小时以前 5177b16eb9450f98fa79e702cc5c1bcfe302e15f
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,12 @@
            </if>
            <if test="deptName != null ">
                dept_name,
            </if>   <if test="orgid != null ">
            orgid,
            </if>
            <if test="orgid != null ">
                orgid,
            </if>
            <if test="userCode != null ">
                user_code,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -127,8 +132,12 @@
            </if>
            <if test="deptName != null ">
                #{deptName},
            </if><if test="orgid != null ">
            </if>
            <if test="orgid != null ">
                #{orgid},
            </if>
            <if test="userCode != null ">
                #{userCode},
            </if>
        </trim>
    </insert>
@@ -159,8 +168,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}