Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
ca715ec5
Commit
ca715ec5
authored
Dec 15, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/insurance-1.3.0' into feature-licancan
parents
1009bb96
7d67194b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
28 deletions
+39
-28
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+39
-28
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
ca715ec5
...
...
@@ -2489,6 +2489,11 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
continue
;
}
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
listResult
.
add
(
param
);
continue
;
}
if
(!
deptNoList
.
stream
().
anyMatch
(
u
->
u
.
equals
(
param
.
getDeptNo
()))){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
listResult
.
add
(
param
);
...
...
@@ -2807,8 +2812,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
listResult
.
add
(
param
);
continue
;
}
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
listResult
.
add
(
param
);
continue
;
}
if
(!
deptNoList
.
stream
().
anyMatch
(
u
->
u
.
equals
(
param
.
getDeptNo
()))){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
listResult
.
add
(
param
);
...
...
@@ -3219,6 +3228,11 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
continue
;
}
else
{
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
listResult
.
add
(
param
);
continue
;
}
if
(
deptNoList
.
stream
().
noneMatch
(
u
->
u
.
equals
(
param
.
getDeptNo
()))){
param
.
setErrorMessage
(
InsurancesConstants
.
OLD_DEPT_NO_NOT_IN_DEPT_LIST
);
listResult
.
add
(
param
);
...
...
@@ -5607,6 +5621,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
errorList
.
add
(
param
);
continue
;
}
if
(
deptNoList
.
stream
().
noneMatch
(
u
->
u
.
equals
(
one
.
getDeptNo
()))){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_DEPT_LIST
);
errorList
.
add
(
param
);
...
...
@@ -5841,6 +5861,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
errorList
.
add
(
param
);
continue
;
}
//项目所属权限验证
if
(
deptNoList
.
stream
().
noneMatch
(
u
->
u
.
equals
(
deptNo
))){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
...
...
@@ -6410,6 +6436,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
//校验当前项目是否在权限范围内
if
(
CollectionUtils
.
isEmpty
(
deptNoList
)){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_NOT_IN_USER_DEPT_LIST
);
errorList
.
add
(
param
);
continue
;
}
//旧项目ID不在当前权限范围内
if
(
deptNoList
.
stream
().
noneMatch
(
u
->
u
.
equals
(
oldDeptNo
))){
param
.
setErrorMessage
(
InsurancesConstants
.
OLD_DEPT_NO_NOT_IN_DEPT_LIST
);
...
...
@@ -6765,35 +6797,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
* @return {@link List< String>}
*/
public
List
<
String
>
getDeptNoList
(
YifuUser
user
){
//todo 根据登录人获取其项目权限列表
List
<
String
>
deptList
=
new
ArrayList
<>(
16
);
String
id
=
user
.
getId
();
//周日琴12,徐燕13
if
(
CommonConstants
.
TWELVE_STRING
.
equals
(
id
)){
deptList
.
add
(
"A0001"
);
deptList
.
add
(
"皖M02002"
);
deptList
.
add
(
"皖A12345678"
);
deptList
.
add
(
"皖B29203"
);
deptList
.
add
(
"皖AFA10M"
);
deptList
.
add
(
"皖AFA11F"
);
deptList
.
add
(
"皖M02023"
);
deptList
.
add
(
"皖M02045"
);
}
else
if
(
CommonConstants
.
THIRTEEN_STRING
.
equals
(
id
)){
deptList
.
add
(
"皖A12345678"
);
deptList
.
add
(
"皖B29203"
);
deptList
.
add
(
"皖M02023"
);
deptList
.
add
(
"皖M02002"
);
}
else
{
R
<
TSettleDomainListVo
>
tSettleDomainListVoR
=
archivesDaprUtil
.
selectAllSettleDomainSelectVos
();
if
(
null
!=
tSettleDomainListVoR
&&
tSettleDomainListVoR
.
getCode
()
==
CommonConstants
.
SUCCESS
&&
Common
.
isNotNull
(
tSettleDomainListVoR
.
getData
()))
{
TSettleDomainListVo
data
=
tSettleDomainListVoR
.
getData
();
List
<
TSettleDomainSelectVo
>
listSelectVO
=
data
.
getListSelectVO
();
for
(
TSettleDomainSelectVo
tSettleDomainSelectVo
:
listSelectVO
)
{
if
(
Common
.
isNotNull
(
tSettleDomainSelectVo
.
getDepartNo
()))
{
deptList
.
add
(
tSettleDomainSelectVo
.
getDepartNo
());
}
}
try
{
R
<
TSettleDomainListVo
>
settleDomainList
=
archivesDaprUtil
.
getSettleDomainIdsByUserId
(
user
.
getId
());
if
(
Common
.
isNotNull
(
settleDomainList
)
&&
settleDomainList
.
getCode
()
==
CommonConstants
.
SUCCESS
){
deptList
=
settleDomainList
.
getData
().
getDeptIds
();
}
}
catch
(
Exception
e
){
log
.
error
(
"查询项目信息出错:"
+
e
);
}
return
deptList
;
}
...
...
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