From fee38f39e36bcda9924f5b26dca609dda6b331e0 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期日, 22 六月 2025 16:53:27 +0800
Subject: [PATCH] no message

---
 zy-asrs-wms/src/main/resources/mapper/system/UserMapper.xml |  121 +++++++++++++++++++++-------------------
 1 files changed, 63 insertions(+), 58 deletions(-)

diff --git a/zy-asrs-wms/src/main/resources/mapper/system/UserMapper.xml b/zy-asrs-wms/src/main/resources/mapper/system/UserMapper.xml
index 4857baa..63aad23 100644
--- a/zy-asrs-wms/src/main/resources/mapper/system/UserMapper.xml
+++ b/zy-asrs-wms/src/main/resources/mapper/system/UserMapper.xml
@@ -1,58 +1,63 @@
-<?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.zy.asrs.wms.system.mapper.UserMapper">
-
-    <!-- 鏍规嵁璐﹀彿鏌ヨ -->
-    <select id="selectByUsername" resultType="com.zy.asrs.wms.system.entity.User">
-        select * from sys_user
-        where 1=1
-        and deleted = 0
-        and username = #{username}
-        <if test="hostId != null">
-            AND host_id = #{hostId}
-        </if>
-    </select>
-
-    <select id="superGetById" resultType="com.zy.asrs.wms.system.entity.User">
-        select * from sys_user
-        where 1=1
-        and deleted = 0
-        and id = #{id}
-    </select>
-
-    <select id="selectPageRel" resultType="com.zy.asrs.wms.system.entity.User">
-        select
-        su.*
-        from sys_user su
-        left join sys_dept sd on su.dept_id = sd.id
-        where 1=1
-        and su.deleted = 0
-        <if test="param.deptId != null">
-            and (FIND_IN_SET(#{param.deptId}, sd.`path`) OR sd.`id` = #{param.deptId})
-        </if>
-        <if test="param.username != null">
-            and su.username like concat('%',#{param.username},'%')
-        </if>
-        <if test="param.nickname != null">
-            and su.nickname like concat('%',#{param.nickname},'%')
-        </if>
-        <if test="param.phone != null">
-            and su.phone like concat('%',#{param.phone},'%')
-        </if>
-        <if test="param.sex != null">
-            and su.sex = #{param.sex}
-        </if>
-        <if test="param.status != null">
-            and su.status = #{param.status}
-        </if>
-        <if test="param.condition != null">
-            and (
-                   su.username like concat('%',#{param.condition},'%')
-                or su.nickname like concat('%',#{param.condition},'%')
-                or su.phone like concat('%',#{param.condition},'%')
-            )
-        </if>
-        order by su.create_time
-    </select>
-
-</mapper>
+<?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.zy.asrs.wms.system.mapper.UserMapper">
+
+    <!-- 鏍规嵁璐﹀彿鏌ヨ -->
+    <select id="selectByUsername" resultType="com.zy.asrs.wms.system.entity.User">
+        select * from sys_user
+        where 1=1
+        and deleted = 0
+        and username = #{username}
+        <if test="hostId != null">
+            AND host_id = #{hostId}
+        </if>
+    </select>
+
+    <select id="superGetById" resultType="com.zy.asrs.wms.system.entity.User">
+        select * from sys_user
+        where 1=1
+        and deleted = 0
+        and id = #{id}
+    </select>
+
+    <delete id="removeByHostId">
+        delete from sys_user
+        where host_id = #{hostId}
+    </delete>
+
+    <select id="selectPageRel" resultType="com.zy.asrs.wms.system.entity.User">
+        select
+        su.*
+        from sys_user su
+        left join sys_dept sd on su.dept_id = sd.id
+        where 1=1
+        and su.deleted = 0
+        <if test="param.deptId != null">
+            and (FIND_IN_SET(#{param.deptId}, sd.`path`) OR sd.`id` = #{param.deptId})
+        </if>
+        <if test="param.username != null">
+            and su.username like concat('%',#{param.username},'%')
+        </if>
+        <if test="param.nickname != null">
+            and su.nickname like concat('%',#{param.nickname},'%')
+        </if>
+        <if test="param.phone != null">
+            and su.phone like concat('%',#{param.phone},'%')
+        </if>
+        <if test="param.sex != null">
+            and su.sex = #{param.sex}
+        </if>
+        <if test="param.status != null">
+            and su.status = #{param.status}
+        </if>
+        <if test="param.condition != null">
+            and (
+                   su.username like concat('%',#{param.condition},'%')
+                or su.nickname like concat('%',#{param.condition},'%')
+                or su.phone like concat('%',#{param.condition},'%')
+            )
+        </if>
+        order by su.create_time
+    </select>
+
+</mapper>

--
Gitblit v1.9.1