From a04d735ab3f2e9c52ebf52c35dfa1506d86d416d Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 24 七月 2025 17:01:57 +0800
Subject: [PATCH] 修改流程卡打印获取第一个工序不正确问题,在制品汇总报表添加批次

---
 north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml b/north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml
index d8085f7..0f30a4b 100644
--- a/north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/userInfo/PermissionRoleMapper.xml
@@ -21,6 +21,34 @@
         where a.id = #{loginId}
             and d.state = 1
     </select>
+
+    <select id="getUserEditPermission">
+        select
+            concat(
+                    if(d.page=null || d.page='','',concat(d.page, '.')),
+                    d.permission
+                ) as 'permission'
+        <if test="userIsAdmin==false">
+        from user as a
+                 left join user_role as e
+                           on e.user_id = a.id
+                 left join role as b
+                           on e.role_id = b.id
+                 left join permission_role as c
+                           on b.id = c.role_id
+                 left join permission_basic d
+                           on  d.id = c.permission_id
+                           and d.permission='edit'
+        where a.id = #{loginId}
+
+        </if>
+        <if test="userIsAdmin==true">
+            from permission_basic d
+            where d.permission='edit'
+        </if>
+            and d.state = 1
+        group by  d.id
+    </select>
     
     <insert id="saveBatch">
         insert into

--
Gitblit v1.8.0