From bed3eee53f72f47f49b493772a4525e6c6b3e7be Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 31 七月 2024 09:05:37 +0800
Subject: [PATCH] 修复bug
---
server/dmvisit_service/src/main/resources/mappers/SystemDictMapper.xml | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/server/dmvisit_service/src/main/resources/mappers/SystemDictMapper.xml b/server/dmvisit_service/src/main/resources/mappers/SystemDictMapper.xml
new file mode 100644
index 0000000..76338cb
--- /dev/null
+++ b/server/dmvisit_service/src/main/resources/mappers/SystemDictMapper.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.doumee.dao.system.SystemDictMapper">
+
+ <!-- 鏌ヨ瀛楀吀鍒楄〃 -->
+ <resultMap id="SystemDictListVO" type="com.doumee.dao.system.vo.SystemDictListVO" autoMapping="true">
+ <id column="ID" property="id"/>
+ <association property="createUserInfo" javaType="com.doumee.dao.system.model.SystemUser">
+ <result column="CREATE_USER_ID" property="id"/>
+ <result column="CREATE_USER_NAME" property="username"/>
+ </association>
+ <association property="updateUserInfo" javaType="com.doumee.dao.system.model.SystemUser">
+ <result column="UPDATE_USER_ID" property="id"/>
+ <result column="UPDATE_USER_NAME" property="username"/>
+ </association>
+ </resultMap>
+ <select id="selectManageList" parameterType="com.doumee.dao.system.dto.QuerySystemDictDTO" resultMap="SystemDictListVO">
+ SELECT
+ dict.`ID`, dict.`CODE`, dict.`NAME`, dict.`REMARK`, dict.`CREATE_TIME`, dict.`UPDATE_TIME`, dict.`CREATE_USER`, dict.`UPDATE_USER`,
+ create_user.ID CREATE_USER_ID, create_user.`USERNAME` CREATE_USER_NAME,
+ update_user.ID UPDETE_USER_ID, update_user.`USERNAME` UPDATE_USER_NAME
+ FROM SYSTEM_DICT dict
+ LEFT JOIN `SYSTEM_USER` create_user ON create_user.ID = dict.CREATE_USER
+ LEFT JOIN `SYSTEM_USER` update_user ON update_user.ID = dict.UPDATE_USER
+ <where>
+ dict.DELETED = 0
+ <if test="dto.code != null and dto.code != ''">
+ AND dict.`CODE` LIKE concat('%', #{dto.code}, '%')
+ </if>
+ <if test="dto.name != null and dto.name != ''">
+ AND dict.`NAME` LIKE concat('%', #{dto.name}, '%')
+ </if>
+ </where>
+ ${orderByClause}
+ </select>
+
+</mapper>
--
Gitblit v1.9.3