liusheng
6 天以前 3d453a41ccd7c69a40bd9bfa31f8c5b159513b6b
smartor/src/main/resources/mapper/smartor/SysUserDeptMapper.xml
@@ -106,6 +106,9 @@
            <if test="orgid != null ">
                orgid,
            </if>
            <if test="userCode != null ">
                user_code,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="userId != null">#{userId},
@@ -132,6 +135,9 @@
            </if>
            <if test="orgid != null ">
                #{orgid},
            </if>
            <if test="userCode != null ">
                #{userCode},
            </if>
        </trim>
    </insert>
@@ -189,7 +195,7 @@
               d.orgid,
               d.status as dept_status
        from sys_dept d
                 left join sys_user_dept ud on d.dept_id = ud.dept_id
                 left join sys_user_dept ud on d.dept_code = ud.dept_code
        where ud.user_id = #{userId}
          and ud.del_flag = 0
          and d.del_flag = 0