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
e3688d57
Commit
e3688d57
authored
Aug 01, 2022
by
查济
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zhaji' into 'develop'
Feature zhaji See merge request fangxinjiang/yifu!83
parents
1d2f5ce6
12b190b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
6 deletions
+47
-6
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+15
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+32
-6
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
e3688d57
...
...
@@ -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 @
e3688d57
...
...
@@ -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
);
...
...
@@ -3143,13 +3152,15 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
//当前保单信息的为已减员时不能变更结算月
if
(
null
!=
insuranceDetail
.
get
Buy
HandleStatus
()){
if
(
CommonConstants
.
F
IVE_INT
==
insuranceDetail
.
getBuy
HandleStatus
()
){
if
(
null
!=
insuranceDetail
.
get
Reduce
HandleStatus
()){
if
(
CommonConstants
.
F
OUR_INT
==
insuranceDetail
.
getReduce
HandleStatus
()
){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_REFUND_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getBuyHandleStatus
()
||
CommonConstants
.
TWO_INT
==
insuranceDetail
.
getBuyHandleStatus
()){
//减员流程中,无法变更结算月
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getReduceHandleStatus
()
||
CommonConstants
.
TWO_INT
==
insuranceDetail
.
getReduceHandleStatus
()){
param
.
setErrorMessage
(
InsurancesConstants
.
SETTLE_MONTH_CHANGE_REFUND_STATUS_ONE_ERROR
);
errorList
.
add
(
param
);
continue
;
...
...
@@ -3306,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
(
CommonConstants
.
FOUR_INT
==
buyHandleStatus
){
param
.
setErrorMessage
(
InsurancesConstants
.
DEPT_NO_CHANGE_BUY_STATUS_FOUR_ERROR
);
errorList
.
add
(
param
);
continue
;
}
//当前保单信息的为已减员时,不能变更结算项目
if
(
null
!=
insuranceDetail
.
getBuyHandleStatus
()
&&
CommonConstants
.
FIVE_INT
==
insuranceDetail
.
getBuyHandleStatus
()
){
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