Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
1f189d7f
Commit
1f189d7f
authored
May 28, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改运维人员不显示电站监控区域公司列表
parent
aefbd010
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
UserLimitsAdvice.java
...in/amos/boot/module/hygf/api/config/UserLimitsAdvice.java
+11
-1
PersonnelBusinessMapper.java
.../boot/module/hygf/api/mapper/PersonnelBusinessMapper.java
+6
-0
PersonnelBusinessMapper.xml
...c/main/resources/mapper/mysql/PersonnelBusinessMapper.xml
+31
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/UserLimitsAdvice.java
View file @
1f189d7f
...
...
@@ -55,6 +55,7 @@ public class UserLimitsAdvice {
private
static
final
String
ROLEFLAGADMIN
=
"-经销商-管理员"
;
private
static
final
String
ROLEFLDEVELOP
=
"-经销商-开发"
;
private
static
final
String
MAINTENANCE
=
"-运维人员"
;
//调用的方法有该注解才会拦截
@Pointcut
(
"@annotation(com.yeejoin.amos.boot.module.hygf.api.config.UserLimits)"
)
...
...
@@ -99,7 +100,16 @@ public class UserLimitsAdvice {
stdUserEmpower
.
setFarmer
(
true
);
}
else
{
}
else
if
(
org
.
contains
(
MAINTENANCE
))
{
// 运维人员
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getMaintenanceUserUnitInformationDto
(
userid
);
stdUserEmpower
.
setFlag
(
false
);
stdUserEmpower
.
setDeveloperId
(
userUnitInformationDto
!=
null
?
userUnitInformationDto
.
getAmosUnitInfoId
():
null
);
stdUserEmpower
.
setRegionalCompaniesCode
(
userUnitInformationDto
!=
null
?
userUnitInformationDto
.
getRegionalCompaniesCode
():
null
);
stdUserEmpower
.
setAmosOrgCode
(
Arrays
.
asList
(
userUnitInformationDto
.
getAmosDealerOrgCode
()));
stdUserEmpower
.
setUserId
(
userid
);
}
else
{
LambdaQueryWrapper
<
StdUserEmpower
>
qu
=
new
LambdaQueryWrapper
();
qu
.
eq
(
StdUserEmpower:
:
getAmosUserId
,
userid
);
qu
.
eq
(
StdUserEmpower:
:
getPermissionType
,
"HYGF"
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PersonnelBusinessMapper.java
View file @
1f189d7f
...
...
@@ -26,4 +26,10 @@ public interface PersonnelBusinessMapper extends BaseMapper<PersonnelBusiness> {
UserUnitInformationDto
getUserUnitInformationDto
(
@Param
(
"userId"
)
String
userId
);
//根据平台userid 获取运维人员信息
UserUnitInformationDto
getMaintenanceUserUnitInformationDto
(
@Param
(
"userId"
)
String
userId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/PersonnelBusinessMapper.xml
View file @
1f189d7f
...
...
@@ -83,4 +83,35 @@ select ORG_CODE orgCode from privilege_company where privilege_company.SEQUEN
</select>
<select
id=
"getMaintenanceUserUnitInformationDto"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.UserUnitInformationDto"
>
SELECT
hygf_maintenance.regional_companies_seq regionalCompaniesSeq,
hygf_maintenance.regional_companies_code regionalCompaniesCode,
hygf_maintenance.regional_companies_name regionalCompaniesName,
std_user_biz.amos_id amosUnitId,
privilege_company.COMPANY_NAME amosUnitName,
privilege_company.ORG_CODE amosUnitOrgCode,
hygf_maintenance.dealer_id amosDealerId,
hygf_unit_info.`name` amosDealerName,
hygf_unit_info.amos_company_code amosDealerOrgCode,
hygf_unit_info.sequence_nbr amosUnitInfoId
FROM
std_user_biz
JOIN hygf_maintenance on std_user_biz.sequence_nbr = hygf_maintenance.foundation_id
JOIN hygf_unit_info on hygf_maintenance.dealer_id = hygf_unit_info.sequence_nbr
JOIN privilege_company on privilege_company.SEQUENCE_NBR = std_user_biz.amos_id
WHERE
std_user_biz.amos_user_id =#{userId}
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment