From d722c501d795a1c548843d663a128ac1324d5c1b Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期三, 07 八月 2024 15:13:45 +0800
Subject: [PATCH] 初始化代码优化
---
pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/util/PrivilegeListener.java | 2 +-
pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
index 4926dde..9ebda5d 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/BaUserMapper.xml
@@ -76,7 +76,7 @@
select
count(*)
from ba_user
- where supper_admin!=1 and deleted!=1
+ where deleted!=1
</select>
<select id="login" resultMap="loginResultMap" >
select
diff --git a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/util/PrivilegeListener.java b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/util/PrivilegeListener.java
index 9fdd527..3cb8c22 100644
--- a/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/util/PrivilegeListener.java
+++ b/pms-parent/pms-web-base/src/main/java/com/dy/pmsBase/util/PrivilegeListener.java
@@ -80,7 +80,7 @@
String num = ele.getAttributeValue("num") ;
String name = ele.getAttributeValue("name") ;
String type = ele.getAttributeValue("type") ;
- String typeName = ele.getAttributeValue("type_name") ;
+ String typeName = ele.getAttributeValue("typeName") ;
this.savePrivilege(num, name, type,typeName);
}
}
--
Gitblit v1.8.0