Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
849fce4f
Commit
849fce4f
authored
Mar 20, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
b89b8da6
279e7531
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
4 deletions
+41
-4
DealerRestrict.java
...join/amos/boot/module/hygf/api/config/DealerRestrict.java
+23
-0
DealerRestrictInterceptor.java
...oot/module/hygf/api/config/DealerRestrictInterceptor.java
+0
-0
UserLimitsAdvice.java
...in/amos/boot/module/hygf/api/config/UserLimitsAdvice.java
+1
-2
PersonnelBusinessMapper.java
.../boot/module/hygf/api/mapper/PersonnelBusinessMapper.java
+2
-1
DealerRestrict.json
...dule-hygf-api/src/main/resources/json/DealerRestrict.json
+14
-0
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/DealerRestrict.java
0 → 100644
View file @
849fce4f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
config
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Target
(
ElementType
.
METHOD
)
public
@interface
DealerRestrict
{
String
[]
field
();
/**
* @param 每个字段运算符( in,like,likeLeft,likeRight,eq)
*/
String
[]
fieldConditions
()
;
/**
* @param 多个字段之间关系(or,and)
*/
String
relationship
()
default
""
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/DealerRestrictInterceptor.java
0 → 100644
View file @
849fce4f
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/UserLimitsAdvice.java
View file @
849fce4f
...
...
@@ -63,8 +63,7 @@ public class UserLimitsAdvice {
//判断是否经销商,经销商跟管理端互斥
String
org
=
reginParams
.
getUserModel
().
getOrgNames
();
if
(
org
.
contains
(
ROLEFLAG
)){
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
userid
);
//UserUnitInformationDto userUnitInformationDto=null;
UserUnitInformationDto
userUnitInformationDto
=
personnelBusinessMapper
.
getUserUnitInformationDto
(
userid
);
stdUserEmpower
.
setFlag
(
false
);
stdUserEmpower
.
setDeveloperId
(
userUnitInformationDto
!=
null
?
userUnitInformationDto
.
getAmosUnitInfoId
():
null
);
stdUserEmpower
.
setRegionalCompaniesCode
(
userUnitInformationDto
!=
null
?
userUnitInformationDto
.
getRegionalCompaniesCode
():
null
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/PersonnelBusinessMapper.java
View file @
849fce4f
...
...
@@ -2,10 +2,11 @@ package com.yeejoin.amos.boot.module.hygf.api.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.CompanyDtoUserDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.UserUnitInformationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PersonnelBusiness
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Map
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/json/DealerRestrict.json
0 → 100644
View file @
849fce4f
[
{
"key"
:
"guanli"
,
"roleIds"
:
""
},
{
"key"
:
"kaifa"
,
"roleIds"
:
""
},
{
"key"
:
"qita"
,
"roleIds"
:
""
}
]
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
849fce4f
...
...
@@ -258,7 +258,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
}
nameMaps
=
jpStation
.
stream
().
collect
(
Collectors
.
toMap
(
JpStation:
:
getThirdStationId
,
JpStation:
:
getName
));
nameMaps
=
jpStation
.
stream
().
collect
(
Collectors
.
toMap
(
JpStation:
:
getThirdStationId
,
JpStation:
:
getName
,
(
existing
,
replacement
)
->
existing
));
if
(
null
==
stationId
)
{
stationId
=
jpStation
.
stream
().
map
(
JpStation:
:
getThirdStationId
).
collect
(
Collectors
.
toList
());
...
...
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