yanghui
2022-11-18 ba7924ec72331e205895b18a675dd7b62dff498c
flower_city/src/main/resources/mapper/SysUserMapper.xml
@@ -40,6 +40,7 @@
        <result property="mattersIds"      column="matters_ids"      />
        <result property="departmentIds"      column="department_ids"      />
        <result property="moreDepartmentIds"      column="more_department_ids"      />
        <result property="departmentIdStr"      column="department_id_str"      />
    </resultMap>
    <sql id="selectSysUserVo">
@@ -72,6 +73,7 @@
            matters_ids,
            department_ids,
            more_department_ids,
            department_id_str,
            (SELECT GROUP_CONCAT(matter_name) FROM automessage_transaction_event WHERE id in (SELECT
              substring_index(substring_index(matters_ids,',', b.help_topic_id + 1), ',', -1) result
          FROM
@@ -178,7 +180,6 @@
        order by create_time desc
    </select>
    <select id="selectData" parameterType="string"  resultMap="SysUserResult">
        <include refid="selectSysUserVo"/>
        <where>
@@ -206,7 +207,6 @@
        </where>
    </select>
    <select id="selectListByDepartmentId"  resultMap="SysUserResult">
        <include refid="selectSysUserVo"/>
         <where>
@@ -224,7 +224,6 @@
         </where>
         order by transaction_num
    </select>
    <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.SysUser">
        insert ignore into automessage_sys_user (
@@ -264,6 +263,7 @@
        <if test="mattersIds != null  ">,matters_ids</if>
        <if test="departmentIds != null  ">,department_ids</if>
        <if test="moreDepartmentIds != null  ">,more_department_ids</if>
        <if test="departmentIdStr != null  ">,department_id_str</if>
        )values(
        sysdate()
        <if test="userId != null and userId != '' ">,#{userId}</if>
@@ -301,6 +301,7 @@
        <if test="mattersIds != null">,#{mattersIds}</if>
        <if test="departmentIds != null  ">,#{departmentIds}</if>
        <if test="moreDepartmentIds != null  ">,#{moreDepartmentIds}</if>
        <if test="departmentIdStr != null  ">,#{departmentIdStr}</if>
        )
    </insert>
@@ -342,6 +343,7 @@
            <if test="mattersIds != null">,matters_ids=#{mattersIds}</if>
            <if test="departmentIds != null  ">,department_ids=#{departmentIds}</if>
            <if test="moreDepartmentIds != null  ">,more_department_ids=#{moreDepartmentIds}</if>
            <if test="departmentIdStr != null  ">,department_id_str=#{departmentIdStr}</if>
            ,update_time=sysdate()
        </set>
        where user_id= #{userId}