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
2b13e0c8
Commit
2b13e0c8
authored
Jan 29, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本切换-fxj
parent
9af2ba87
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
InsuranceExportListOneVO.java
.../plus/v1/yifu/insurances/vo/InsuranceExportListOneVO.java
+6
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+11
-1
TInsuranceDetailMapper.xml
...in/resources/mapper/insurances/TInsuranceDetailMapper.xml
+1
-1
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/InsuranceExportListOneVO.java
View file @
2b13e0c8
...
...
@@ -200,4 +200,10 @@ public class InsuranceExportListOneVO implements Serializable {
@ExcelIgnore
@Schema
(
description
=
"默认结算信息id"
)
private
String
defaultSettleId
;
/**
* 购买周期 (格式:4个月/117天)
*/
@Schema
(
description
=
"购买周期"
)
private
String
purchaseCycle
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
2b13e0c8
...
...
@@ -1437,7 +1437,17 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//购买月数
record
.
setBuyMonth
(
LocalDateUtil
.
betweenMonth
(
record
.
getPolicyStart
().
toString
(),
record
.
getPolicyEnd
().
toString
()));
//购买天数
if
(
Common
.
isNotNull
(
record
.
getPurchaseCycle
())){
if
(
record
.
getPurchaseCycle
().
indexOf
(
"天"
)
!=
-
1
&&
record
.
getPurchaseCycle
().
indexOf
(
"个月"
)
!=
-
1
){
try
{
record
.
setBuyDay
(
Long
.
valueOf
(
record
.
getPurchaseCycle
().
substring
(
record
.
getPurchaseCycle
().
indexOf
(
"个月"
)+
3
,
record
.
getPurchaseCycle
().
indexOf
(
"天"
))));
}
catch
(
Exception
e
){
record
.
setBuyDay
(
LocalDateUtil
.
betweenDay
(
record
.
getPolicyStart
().
toString
(),
record
.
getPolicyEnd
().
toString
()));
}
}
}
else
{
record
.
setBuyDay
(
LocalDateUtil
.
betweenDay
(
record
.
getPolicyStart
().
toString
(),
record
.
getPolicyEnd
().
toString
()));
}
//如果是批增需要重新处理购买周期,按生效日期和保单结束时间计算
if
(
CommonConstants
.
THREE_INT
==
record
.
getBuyType
()){
if
(
Objects
.
isNull
(
record
.
getPolicyEffect
())){
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/insurances/TInsuranceDetailMapper.xml
View file @
2b13e0c8
...
...
@@ -571,7 +571,7 @@
a.SETTLE_TYPE as settleType,
a.CREATE_NAME as createName,
a.POLICY_NO as policyNo,
a.REMARK as remark,a.UNIT_NAME as unitName,a.DEFAULT_SETTLE_ID as defaultSettleId
a.REMARK as remark,a.UNIT_NAME as unitName,a.DEFAULT_SETTLE_ID as defaultSettleId
,a.PURCHASE_CYCLE as purchaseCycle
from t_insurance_detail a
where a.DELETE_FLAG = 0 and a.id in
<foreach
collection=
"idList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
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