From 189fe18f9aaabc39cc4bb4cc00f531bc43fe152e Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 09 六月 2026 16:20:30 +0800
Subject: [PATCH] 新增台账时增加库存类型

---
 src/main/resources/mapper/system/SysUserDeptMapper.xml |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/system/SysUserDeptMapper.xml b/src/main/resources/mapper/system/SysUserDeptMapper.xml
index 7caa57e..1d6cf69 100644
--- a/src/main/resources/mapper/system/SysUserDeptMapper.xml
+++ b/src/main/resources/mapper/system/SysUserDeptMapper.xml
@@ -3,7 +3,25 @@
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.project.system.mapper.SysUserDeptMapper">
-    
+    <select id="setSchemeApplicableStaffUserInfo" resultType="java.util.Map">
+        SELECT
+        T1.id as id,
+        T1.staff_no as staffNo,
+        T1.staff_name as staffName,
+        T2.dept_id as deptId,
+        T2.dept_name as deptName,
+        T1.staff_state as staffState,
+        T1.nation as nation
+        FROM
+        staff_on_job T1
+        LEFT JOIN sys_dept T2 ON T1.sys_dept_id = T2.dept_id
+        <where>
+            T1.sys_dept_id in<foreach collection="ids" item="id" separator="," close=")" open="(">#{id}</foreach>
+        </where>
+        GROUP BY
+        T1.id
+    </select>
+
     <select id="userLoginFacotryList" resultType="com.ruoyi.project.system.domain.vo.SysUserDeptVo">
         SELECT
             T1.user_id,
@@ -24,4 +42,4 @@
             </if>
         </where>
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3