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
5e4cf69e
Commit
5e4cf69e
authored
Dec 08, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-变更发票号保单号修改
parent
9cb8264b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
7 deletions
+86
-7
EkpInsurancesInfo.java
...oud/plus/v1/yifu/insurances/entity/EkpInsurancesInfo.java
+3
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+2
-7
DoJointInsuranceTask.java
...ud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
+81
-0
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/entity/EkpInsurancesInfo.java
View file @
5e4cf69e
...
@@ -154,6 +154,9 @@ public class EkpInsurancesInfo {
...
@@ -154,6 +154,9 @@ public class EkpInsurancesInfo {
@Schema
(
description
=
"变更发票号"
)
@Schema
(
description
=
"变更发票号"
)
private
String
fd_3b5bf17f2fc25c
;
private
String
fd_3b5bf17f2fc25c
;
@Schema
(
description
=
"变更保单号"
)
private
String
fd_policy_change
;
@Schema
(
description
=
"变更购买标准"
)
@Schema
(
description
=
"变更购买标准"
)
private
String
fd_3b5bf180e08fbe
;
private
String
fd_3b5bf180e08fbe
;
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
5e4cf69e
...
@@ -49,7 +49,6 @@ import com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount;
...
@@ -49,7 +49,6 @@ import com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryAccount;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskListVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskListVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskVo
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TIncomeDetail
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TIncomeDetail
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialFundInfo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.ChangeDeptDetailVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.ChangeDeptDetailVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.ChangeDeptVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.ChangeDeptVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TIncomeDetailReturnVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TIncomeDetailReturnVo
;
...
@@ -2487,18 +2486,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -2487,18 +2486,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
ekpUpdateParam
.
setFd_3b5bf02fa14596
(
getBuyType
(
detail
.
getBuyType
()));
ekpUpdateParam
.
setFd_3b5bf02fa14596
(
getBuyType
(
detail
.
getBuyType
()));
if
(
invoiceNoFlag
)
{
if
(
invoiceNoFlag
)
{
ekpUpdateParam
.
setFd_3b5bf030ab1a56
(
success
.
getInvoiceNo
());
ekpUpdateParam
.
setFd_3b5bf030ab1a56
(
success
.
getInvoiceNo
());
}
else
{
ekpUpdateParam
.
setFd_3b5bf030ab1a56
(
detail
.
getInvoiceNo
());
}
}
if
(
policeNoFlag
)
{
if
(
policeNoFlag
)
{
ekpUpdateParam
.
setFd_3bb431933ee968
(
success
.
getPolicyNo
());
ekpUpdateParam
.
setFd_3bb431933ee968
(
success
.
getPolicyNo
());
}
else
{
ekpUpdateParam
.
setFd_3bb431933ee968
(
detail
.
getPolicyNo
());
}
}
ekpUpdateParam
.
setFd_3b5bf031b52314
(
detail
.
getBuyStandard
());
ekpUpdateParam
.
setFd_3b5bf031b52314
(
detail
.
getBuyStandard
());
ekpUpdateParam
.
setFd_3b5bf032d7a822
(
detail
.
getId
()
+
"_"
+
detail
.
getDefaultSettleId
());
ekpUpdateParam
.
setFd_3b5bf032d7a822
(
detail
.
getId
()
+
"_"
+
detail
.
getDefaultSettleId
());
ekpUpdateParam
.
setFd_3b5bf0b7b4c058
(
"操作人:"
+
user
.
getNickname
()
+
";操作时间:"
+
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))
+
invoiceNoInfo
+
policeNoInfo
);
ekpUpdateParam
.
setFd_3b5bf0b7b4c058
(
"操作人:"
+
user
.
getNickname
()
+
";操作时间:"
+
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))
+
invoiceNoInfo
+
policeNoInfo
);
doJointInsuranceTask
.
updateInsrancesDetail
(
ekpUpdateParam
);
doJointInsuranceTask
.
updateInsrancesDetail
AllStatus
(
ekpUpdateParam
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"pushEkp error registeredInvoiceNo:"
,
e
.
getMessage
());
log
.
error
(
"pushEkp error registeredInvoiceNo:"
,
e
.
getMessage
());
}
}
...
@@ -4446,7 +4441,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -4446,7 +4441,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
param
.
setErrorMessage
(
InsurancesConstants
.
BUY_STANDARD_NOT_EMPTY
);
param
.
setErrorMessage
(
InsurancesConstants
.
BUY_STANDARD_NOT_EMPTY
);
continue
;
continue
;
}
}
if
(
StringUtils
.
isBlank
(
param
.
getInvoiceNo
())
||
StringUtils
.
isBlank
(
param
.
getPolicyNo
())){
if
(
StringUtils
.
isBlank
(
param
.
getInvoiceNo
())
&&
StringUtils
.
isBlank
(
param
.
getPolicyNo
())){
param
.
setErrorMessage
(
InsurancesConstants
.
INVOICE_NO_EMPTY
);
param
.
setErrorMessage
(
InsurancesConstants
.
INVOICE_NO_EMPTY
);
continue
;
continue
;
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
View file @
5e4cf69e
...
@@ -730,6 +730,87 @@ public class DoJointInsuranceTask {
...
@@ -730,6 +730,87 @@ public class DoJointInsuranceTask {
}
}
}
}
/**
* 更新商险订单明细
*
* @author huych
* @param param 转换类
* @return {@link TInsuranceSettlePushParam}
*/
@Async
public
void
updateInsrancesDetailAllStatus
(
EkpUpdateParam
param
)
{
try
{
//更新商险变更记录已结算
List
<
EkpInsurancesInfo
>
infoList
=
insurancesInfoMapper
.
getEkpInsurancesInfoNotSettle
(
param
.
getFd_3b5bf032d7a822
());
if
(
Common
.
isNotNull
(
infoList
))
{
for
(
EkpInsurancesInfo
info
:
infoList
)
{
//保单开始时间
info
.
setFd_3b5bf17ae91f9c
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02d3b8fc4
()));
//保单结束时间
info
.
setFd_3b5bf17c6df310
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02e1d47cc
()));
//投保类型
info
.
setFd_3b5bf17d9297c2
(
param
.
getFd_3b5bf02fa14596
());
//变更发票号
if
(
Common
.
isNotNull
(
param
.
getFd_3b5bf030ab1a56
()))
{
info
.
setFd_3b5bf17f2fc25c
(
param
.
getFd_3b5bf030ab1a56
());
}
//变更保单号
if
(
Common
.
isNotNull
(
param
.
getFd_3bb431933ee968
()))
{
info
.
setFd_policy_change
(
param
.
getFd_3bb431933ee968
());
}
//变更购买标准
info
.
setFd_3b5bf180e08fbe
(
param
.
getFd_3b5bf031b52314
());
//商险变更记录
String
updateInfo
=
""
;
if
(
Common
.
isNotNull
(
info
.
getFd_3b3e4653122c9e
()))
{
updateInfo
=
info
.
getFd_3b3e4653122c9e
()
+
"\\n"
;
}
info
.
setFd_3b5bf1628c5a68
(
updateInfo
+
param
.
getFd_3b5bf0b7b4c058
());
insurancesInfoMapper
.
updateById
(
info
);
}
}
//更新商险变更记录未结算
List
<
EkpInsurancesInfo
>
unInfoList
=
insurancesInfoMapper
.
getEkpInsurancesInfoSettle
(
param
.
getFd_3b5bf032d7a822
());
if
(
Common
.
isNotNull
(
unInfoList
))
{
for
(
EkpInsurancesInfo
unInfo
:
unInfoList
)
{
//发票号
if
(
Common
.
isNotNull
(
param
.
getFd_3b5bf030ab1a56
()))
{
unInfo
.
setFd_3adfe65e0cd094
(
param
.
getFd_3b5bf030ab1a56
());
unInfo
.
setFd_3b5bf17f2fc25c
(
param
.
getFd_3b5bf030ab1a56
());
}
//保单号
if
(
Common
.
isNotNull
(
param
.
getFd_3bb431933ee968
()))
{
unInfo
.
setFd_3adfe65e60e110
(
param
.
getFd_3bb431933ee968
());
unInfo
.
setFd_policy_change
(
param
.
getFd_3bb431933ee968
());
}
//保险开始日期
unInfo
.
setFd_3adfe6b7e0ede8
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02d3b8fc4
()));
//保险结束日期
unInfo
.
setFd_3adfe6b847bfe6
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02e1d47cc
()));
//购买标准
unInfo
.
setFd_3adfe6d55384c6
(
Double
.
parseDouble
(
null
==
param
.
getFd_3b5bf031b52314
()
?
"0"
:
param
.
getFd_3b5bf031b52314
()));
//保单开始时间
unInfo
.
setFd_3b5bf17ae91f9c
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02d3b8fc4
()));
//保单结束时间
unInfo
.
setFd_3b5bf17c6df310
(
DateUtil
.
stringToDate
(
param
.
getFd_3b5bf02e1d47cc
()));
//投保类型
unInfo
.
setFd_3b5bf17d9297c2
(
param
.
getFd_3b5bf02fa14596
());
//变更购买标准
unInfo
.
setFd_3b5bf180e08fbe
(
param
.
getFd_3b5bf031b52314
());
//商险变更记录
String
updateInfo
=
""
;
if
(
Common
.
isNotNull
(
unInfo
.
getFd_3b3e4653122c9e
()))
{
updateInfo
=
unInfo
.
getFd_3b3e4653122c9e
()
+
"\\n"
;
}
unInfo
.
setFd_3b5bf1628c5a68
(
updateInfo
+
param
.
getFd_3b5bf0b7b4c058
());
insurancesInfoMapper
.
updateById
(
unInfo
);
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
public
static
String
dateStringInsert
(
String
month
)
{
public
static
String
dateStringInsert
(
String
month
)
{
if
(
month
.
length
()
==
6
)
{
if
(
month
.
length
()
==
6
)
{
StringBuilder
sb
=
new
StringBuilder
(
month
);
StringBuilder
sb
=
new
StringBuilder
(
month
);
...
...
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