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
4de0e087
Commit
4de0e087
authored
Sep 19, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"feature-zhaJi:修改ekp重发类重发失败的提示"
parent
d4a55a18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
13 deletions
+70
-13
InsurancesConstants.java
...lus/v1/yifu/insurances/constants/InsurancesConstants.java
+39
-2
TInsuranceEkpServiceImpl.java
...nces/service/insurance/impl/TInsuranceEkpServiceImpl.java
+31
-11
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/constants/InsurancesConstants.java
View file @
4de0e087
...
...
@@ -1102,12 +1102,12 @@ public class InsurancesConstants {
public
static
final
String
GET_DEPT_DETAIL_ERROR
=
"获取项目信息失败:"
;
/**
*
获取项目信息失败
*
errorList
*/
public
static
final
String
ERROR_LIST
=
"errorList"
;
/**
*
获取项目信息失败
*
successList
*/
public
static
final
String
SUCCESS_LIST
=
"successList"
;
...
...
@@ -1116,6 +1116,43 @@ public class InsurancesConstants {
*/
public
static
final
String
OSS_ERROR
=
"OSS文件上传接口异常:"
;
/**EKP异常重发失败原因*/
/**
* 商险不存在或已被删除
*/
public
static
final
String
EKP_INSURANCE_IS_DELETE_OR_EMPTY
=
"商险不存在或已被删除"
;
/**
* 结算类型发生变更
*/
public
static
final
String
EKP_SETTLE_TYPE_IS_CHANGE
=
"结算类型发生变更"
;
/**
* 结算id发生变更
*/
public
static
final
String
EKP_SETTLE_ID_IS_CHANGE
=
"结算id发生变更"
;
/**
* 预估结算信息已发送
*/
public
static
final
String
EKP_ESTIMATE_IS_PUSH
=
"预估结算信息已发送"
;
/**
* 实缴结算信息已发送
*/
public
static
final
String
EKP_ACTUAL_IS_PUSH
=
"实缴结算信息已发送"
;
/**
* 预估费用已进行结算
*/
public
static
final
String
EKP_ESTIMATE_STATUS_ERROR
=
"预估费用已进行结算"
;
/**
* 实缴费用已进行结算
*/
public
static
final
String
EKP_ACTUAL_STATUS_ERROR
=
"实缴费用已进行结算"
;
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceEkpServiceImpl.java
View file @
4de0e087
...
...
@@ -61,7 +61,15 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
List
<
TInsuranceEkp
>
ekpRefundList
=
this
.
baseMapper
.
getEkpRefundList
();
if
(
CollectionUtils
.
isNotEmpty
(
ekpRefundList
)){
for
(
TInsuranceEkp
tInsuranceEkp
:
ekpRefundList
)
{
LambdaUpdateWrapper
<
TInsuranceEkp
>
ekpUpdate
=
new
LambdaUpdateWrapper
<>();
ekpUpdate
.
eq
(
TInsuranceEkp
::
getId
,
tInsuranceEkp
.
getId
());
TInsuranceDetail
byId
=
tInsuranceDetailService
.
getById
(
tInsuranceEkp
.
getDetailId
());
if
(
Common
.
isEmpty
(
byId
)){
ekpUpdate
.
set
(
TInsuranceEkp
::
getResendFlag
,
CommonConstants
.
TWO_INT
);
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_INSURANCE_IS_DELETE_OR_EMPTY
);
update
(
ekpUpdate
);
continue
;
}
String
defaultSettleId
=
byId
.
getDefaultSettleId
();
String
s
=
null
;
String
settleType
=
tInsuranceEkp
.
getSettleType
();
...
...
@@ -82,8 +90,6 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
settleUpdate
.
eq
(
TInsuranceSettle
::
getId
,
tInsuranceEkp
.
getDefaultSettleId
());
LambdaUpdateWrapper
<
TInsuranceDetail
>
detailUpdate
=
new
LambdaUpdateWrapper
<>();
detailUpdate
.
eq
(
TInsuranceDetail
::
getId
,
tInsuranceEkp
.
getDetailId
());
LambdaUpdateWrapper
<
TInsuranceEkp
>
ekpUpdate
=
new
LambdaUpdateWrapper
<>();
ekpUpdate
.
eq
(
TInsuranceEkp
::
getId
,
tInsuranceEkp
.
getId
());
//ekp结算信息
SettleVo
settleVo
=
tInsuranceDetailService
.
getInsuranceDetailSettleStatus
(
tInsuranceEkp
.
getDetailId
(),
tInsuranceEkp
.
getDefaultSettleId
());
if
(
settleType
.
equals
(
CommonConstants
.
ZERO_STRING
)){
...
...
@@ -96,13 +102,13 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
//如果结算类型不一致,预估已推送,结算id不一致,结算信息不为空
if
(!
settleTypeEquals
||
!
settleIdEquals
||
!
estimatePush
){
if
(!
settleTypeEquals
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
CommonConstants
.
TWO_INT
);
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_SETTLE_TYPE_IS_CHANGE
);
}
if
(!
settleIdEquals
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
CommonConstants
.
TWO_INT
);
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_SETTLE_ID_IS_CHANGE
);
}
if
(!
estimatePush
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
CommonConstants
.
TWO_INT
);
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_ESTIMATE_IS_PUSH
);
}
ekpUpdate
.
set
(
TInsuranceEkp
::
getResendFlag
,
CommonConstants
.
TWO_INT
);
update
(
ekpUpdate
);
...
...
@@ -132,6 +138,15 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
if
(
CommonConstants
.
TWO_INT
==
pushType
){
//如果结算类型不一致,实缴已推送,结算id不一致,则不再推送
if
(!
settleTypeEquals
||
!
actualPush
||
!
settleIdEquals
){
if
(!
settleTypeEquals
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_SETTLE_TYPE_IS_CHANGE
);
}
if
(!
settleIdEquals
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_SETTLE_ID_IS_CHANGE
);
}
if
(!
actualPush
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_ACTUAL_IS_PUSH
);
}
ekpUpdate
.
set
(
TInsuranceEkp
::
getResendFlag
,
CommonConstants
.
TWO_INT
);
update
(
ekpUpdate
);
continue
;
...
...
@@ -165,6 +180,15 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
if
(
CommonConstants
.
THREE_INT
==
pushType
){
//如果结算类型不一致,结算类型不为空且已发送,结算id不一致
if
(!
settleIdEquals
||
!
eStatus
||
!
aStatus
){
if
(!
settleIdEquals
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_SETTLE_ID_IS_CHANGE
);
}
if
(!
eStatus
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_ESTIMATE_STATUS_ERROR
);
}
if
(!
aStatus
){
ekpUpdate
.
set
(
TInsuranceEkp
::
getNotResendMessage
,
InsurancesConstants
.
EKP_ACTUAL_STATUS_ERROR
);
}
ekpUpdate
.
set
(
TInsuranceEkp
::
getResendFlag
,
CommonConstants
.
TWO_INT
);
update
(
ekpUpdate
);
continue
;
...
...
@@ -225,10 +249,6 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
break
;
}
}
}
else
{
ekpUpdate
.
set
(
TInsuranceEkp
::
getResendFlag
,
CommonConstants
.
TWO_INT
);
update
(
ekpUpdate
);
continue
;
}
}
//推送预估红冲信息
...
...
@@ -258,9 +278,9 @@ public class TInsuranceEkpServiceImpl extends ServiceImpl<TInsuranceEkpMapper, T
}
}
}
return
R
.
ok
(
"
发送
成功"
);
return
R
.
ok
(
"
EKP重发
成功"
);
}
else
{
return
R
.
failed
(
"无需要
发送的
信息"
);
return
R
.
failed
(
"无需要
重新发送的EKP结算
信息"
);
}
}
}
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