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
12b190b0
Commit
12b190b0
authored
Aug 01, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"feature-zhaJi:修改变更结算项目的校验逻辑"
parent
cb9b91d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
3 deletions
+43
-3
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+15
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+28
-3
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
12b190b0
...
...
@@ -436,6 +436,11 @@ public class InsurancesConstants {
*/
public
static
final
String
SETTLE_MONTH_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更结算月"
;
/**
* 商险投保退回,无法变更结算月
*/
public
static
final
String
SETTLE_MONTH_CHANGE_BUY_STATUS_FOUR_ERROR
=
"商险投保退回,无法变更结算月"
;
/**
* 商险已减员,无法变更结算月
*/
...
...
@@ -493,11 +498,21 @@ public class InsurancesConstants {
*/
public
static
final
String
DEPT_NO_CHANGE_BUY_STATUS_TWO_ERROR
=
"商险投保中,无法变更项目"
;
/**
* 商险投保退回,无法变更项目
*/
public
static
final
String
DEPT_NO_CHANGE_BUY_STATUS_FOUR_ERROR
=
"商险投保退回,无法变更项目"
;
/**
* 商险已减员,无法变更项目
*/
public
static
final
String
DEPT_NO_CHANGE_REFUND_STATUS_FOUR_ERROR
=
"商险已减员,无法变更项目"
;
/**
* 商险已减员,无法变更项目
*/
public
static
final
String
DEPT_NO_CHANGE_REFUND_STATUS_ONE_ERROR
=
"商险减员中,无法变更项目"
;
/**
* 商险结算中,无法变更项目
*/
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
12b190b0
...
...
@@ -3093,22 +3093,31 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
continue
;
}
Integer
buyType
=
insuranceDetail
.
getBuyType
();
//替换类型无法变更结算月
if
(
CommonConstants
.
FOUR_INT
==
buyType
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_IS_EFFECT_ERROR
);
errorList
.
add
(
param
);
continue
;
}
Integer
buyHandleStatus
=
insuranceDetail
.
getBuyHandleStatus
();
//商险待投保,无法变更结算月
if
(
CommonConstants
.
ONE_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_BUY_STATUS_ONE_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//商险投保中,无法变更结算月
if
(
CommonConstants
.
TWO_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_BUY_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//商险投保退回,无法变更结算月
if
(
CommonConstants
.
FOUR_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_BUY_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//如果结算月份相同
if
(
settleMonth
.
equals
(
insuranceDetail
.
getSettleMonth
())){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_IDENTICAL
);
...
...
@@ -3149,6 +3158,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
errorList
.
add
(
param
);
continue
;
}
//减员流程中,无法变更结算月
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getReduceHandleStatus
()
||
CommonConstants
.
TWO_INT
==
insuranceDetail
.
getReduceHandleStatus
()){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_REFUND_STATUS_ONE_ERROR
);
...
...
@@ -3307,22 +3317,37 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
continue
;
}
Integer
buyHandleStatus
=
insuranceDetail
.
getBuyHandleStatus
();
//商险待投保,无法变更项目
if
(
CommonConstants
.
ONE_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_BUY_STATUS_ONE_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//商险投保中,无法变更项目
if
(
CommonConstants
.
TWO_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_BUY_STATUS_TWO_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//
当前保单信息的为已减员时,不能变更结算
项目
if
(
null
!=
insuranceDetail
.
getBuyHandleStatus
()
&&
CommonConstants
.
FIVE_INT
==
insuranceDetail
.
getBuyHandleStatus
()
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_
REFUND
_STATUS_FOUR_ERROR
);
//
商险投保退回,无法变更
项目
if
(
CommonConstants
.
FOUR_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_
BUY
_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前保单信息的为已减员时,不能变更结算项目
if
(
null
!=
insuranceDetail
.
getReduceHandleStatus
()){
if
(
CommonConstants
.
FIVE_INT
==
insuranceDetail
.
getReduceHandleStatus
()){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_REFUND_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getReduceHandleStatus
()
||
CommonConstants
.
TWO_INT
==
insuranceDetail
.
getReduceHandleStatus
()){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_REFUND_STATUS_ONE_ERROR
);
errorList
.
add
(
param
);
continue
;
}
}
String
defaultSettleId
=
insuranceDetail
.
getDefaultSettleId
();
if
(
StringUtils
.
isNotBlank
(
defaultSettleId
)){
//查询结算状态
...
...
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