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
e139adaf
Commit
e139adaf
authored
Nov 13, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.17-商险续签待办2
parent
021abe80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
TInsuranceWarnServiceImpl.java
...ces/service/insurance/impl/TInsuranceWarnServiceImpl.java
+16
-1
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceWarnServiceImpl.java
View file @
e139adaf
...
...
@@ -232,7 +232,7 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper,
if
(
Common
.
isEmpty
(
month
))
{
month
=
CommonConstants
.
ONE_INT
;
}
detail
.
setPolicyEnd
(
detail
.
getPolicyStart
().
plusMonths
(
month
));
detail
.
setPolicyEnd
(
this
.
doPolicyEnd
(
detail
.
getPolicyStart
(),
month
));
// 向前推2个工作日,作为确认发起时间的起点
days
=
getPreviousWorkday
(
days
,
CommonConstants
.
TWO_INT
,
holidayMap
);
detail
.
setConfirmDate
(
days
);
...
...
@@ -247,6 +247,21 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper,
detailList
.
add
(
detail
);
}
// 保单截止日期,如果是1号:加一月减一天,如果不是1号:减一天加一月
private
LocalDate
doPolicyEnd
(
LocalDate
policyStart
,
Integer
month
)
{
if
(
policyStart
.
getDayOfMonth
()
==
CommonConstants
.
ONE_INT
)
{
// 如果是1号:加一月减一天
return
policyStart
.
plusMonths
(
month
)
.
minusDays
(
CommonConstants
.
ONE_INT
);
}
else
{
// 如果不是1号:减一天加一月
return
policyStart
.
minusDays
(
CommonConstants
.
ONE_INT
)
.
plusMonths
(
month
);
}
}
// 保单截止日期B + 1天,向之前推3个工作日。得到预计派单日期
private
LocalDate
calculateThreeWorkDays
(
LocalDate
policyEnd
,
Map
<
String
,
Integer
>
holidayMap
)
{
// 预计派单时间逻辑:
...
...
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