| | |
| | | <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"> |
| | |
| | | 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 |
| | |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | |
| | | <select id="selectData" parameterType="string" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectListByDepartmentId" resultMap="SysUserResult"> |
| | | <include refid="selectSysUserVo"/> |
| | | <where> |
| | |
| | | </where> |
| | | order by transaction_num |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.SysUser"> |
| | | insert ignore into automessage_sys_user ( |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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} |