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
ab778b93
Commit
ab778b93
authored
Jul 28, 2022
by
查济
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zhaji' into 'develop'
Feature zhaji See merge request fangxinjiang/yifu!55
parents
9192d9b9
d6c4b1a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
38 deletions
+53
-38
DeptChangeCheckParam.java
...loud/plus/v1/yifu/insurances/vo/DeptChangeCheckParam.java
+8
-2
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+45
-36
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/DeptChangeCheckParam.java
View file @
ab778b93
...
...
@@ -80,9 +80,15 @@ public class DeptChangeCheckParam implements Serializable {
private
String
errorMessage
;
/**
* 结算方式
*
新项目
结算方式
*/
@Schema
(
description
=
"结算方式"
)
private
Integer
settleType
;
private
Integer
newSettleType
;
/**
* 旧项目结算方式
*/
@Schema
(
description
=
"结算方式"
)
private
Integer
oldSettleType
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
ab778b93
...
...
@@ -2338,12 +2338,15 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
Map
<
String
,
List
<
DeptChangeCheckParam
>>
stringListMap
=
deptChangeCheck
(
deptChangeCheckList
);
//todo 生成EKP通知,通知ekp变更结算所属项目
List
<
DeptChangeCheckParam
>
successList
=
stringListMap
.
get
(
"successList"
);
if
(
CollectionUtils
.
isNotEmpty
(
successList
)){
for
(
DeptChangeCheckParam
success
:
successList
)
{
Integer
newSettleType
=
success
.
getNewSettleType
();
Integer
oldSettleType
=
success
.
getOldSettleType
();
LambdaUpdateWrapper
<
TInsuranceDetail
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
TInsuranceDetail
::
getId
,
success
.
getId
())
.
set
(
TInsuranceDetail
::
getDeptNo
,
success
.
getNewDeptNo
())
.
set
(
TInsuranceDetail
::
getSettleType
,
success
.
getSettleType
())
.
set
(
TInsuranceDetail
::
getSettleType
,
success
.
get
New
SettleType
())
.
set
(
TInsuranceDetail
::
getUpdateBy
,
user
.
getId
())
.
set
(
TInsuranceDetail
::
getUpdateTime
,
LocalDateTime
.
now
());
update
(
updateWrapper
);
...
...
@@ -2804,25 +2807,29 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
//查询结算状态
LambdaQueryWrapper
<
TInsuranceSettle
>
insuranceSettleQuery
=
new
LambdaQueryWrapper
<>();
insuranceSettleQuery
.
eq
(
TInsuranceSettle
::
getInsDetailId
,
insuranceDetail
.
getId
());
TInsuranceSettle
insuranceSettle
=
tInsuranceSettleService
.
getOne
(
insuranceSettleQuery
);
//当前结算状态为结算中时,不能变更结算月
if
(
CommonConstants
.
TWO_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前结算状态为已结算时,不能变更结算月
if
(
CommonConstants
.
THREE_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
continue
;
String
defaultSettleId
=
insuranceDetail
.
getDefaultSettleId
();
if
(
StringUtils
.
isNotEmpty
(
defaultSettleId
)){
//查询结算状态
LambdaQueryWrapper
<
TInsuranceSettle
>
insuranceSettleQuery
=
new
LambdaQueryWrapper
<>();
insuranceSettleQuery
.
eq
(
TInsuranceSettle
::
getInsDetailId
,
insuranceDetail
.
getId
());
TInsuranceSettle
insuranceSettle
=
tInsuranceSettleService
.
getOne
(
insuranceSettleQuery
);
if
(!
Common
.
isEmpty
(
insuranceSettle
)){
//当前结算状态为结算中时,不能变更结算月
if
(
CommonConstants
.
TWO_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前结算状态为已结算时,不能变更结算月
if
(
CommonConstants
.
THREE_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
continue
;
}
}
}
Integer
reduceHandleStatus
=
insuranceDetail
.
getReduceHandleStatus
();
//当前保单信息的为已减员时不能不能变更结算月
if
(
CommonConstants
.
F
OUR_INT
==
reduceHandleStatus
){
if
(
CommonConstants
.
F
IVE_INT
==
insuranceDetail
.
getBuyHandleStatus
()
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_REFUND_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
...
...
@@ -2949,7 +2956,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
else
{
param
.
setSettleType
(
Integer
.
parseInt
(
settleType
));
param
.
set
New
SettleType
(
Integer
.
parseInt
(
settleType
));
}
}
}
...
...
@@ -2986,28 +2993,30 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
Integer
reduceHandleStatus
=
insuranceDetail
.
getReduceHandleStatus
();
//当前保单信息的为已减员时,不能变更结算项目
if
(
CommonConstants
.
F
OUR_INT
==
reduceHandleStatus
){
if
(
CommonConstants
.
F
IVE_INT
==
insuranceDetail
.
getBuyHandleStatus
()
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_REFUND_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//查询结算状态
LambdaQueryWrapper
<
TInsuranceSettle
>
insuranceSettleQuery
=
new
LambdaQueryWrapper
<>();
insuranceSettleQuery
.
eq
(
TInsuranceSettle
::
getInsDetailId
,
insuranceDetail
.
getId
());
TInsuranceSettle
insuranceSettle
=
tInsuranceSettleService
.
getOne
(
insuranceSettleQuery
);
//当前结算状态为结算中时,不能变更结算项目
if
(
CommonConstants
.
TWO_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前结算状态为已结算时,不能变更结算项目
if
(
CommonConstants
.
THREE_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
continue
;
String
defaultSettleId
=
insuranceDetail
.
getDefaultSettleId
();
if
(
StringUtils
.
isNotBlank
(
defaultSettleId
)){
//查询结算状态
LambdaQueryWrapper
<
TInsuranceSettle
>
insuranceSettleQuery
=
new
LambdaQueryWrapper
<>();
insuranceSettleQuery
.
eq
(
TInsuranceSettle
::
getInsDetailId
,
insuranceDetail
.
getId
());
TInsuranceSettle
insuranceSettle
=
tInsuranceSettleService
.
getOne
(
insuranceSettleQuery
);
//当前结算状态为结算中时,不能变更结算项目
if
(
CommonConstants
.
TWO_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前结算状态为已结算时,不能变更结算项目
if
(
CommonConstants
.
THREE_STRING
.
equals
(
insuranceSettle
.
getSettleHandleStatus
())){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_SETTLE_STATUS_THREE_ERROR
);
errorList
.
add
(
param
);
continue
;
}
}
//判断当前数据中是否存在重复数据
param
.
setId
(
insuranceDetail
.
getId
());
...
...
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