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
aee3830d
Commit
aee3830d
authored
Jan 27, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
见费出单逻辑-fxj
parent
c4f6c017
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+8
-3
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
aee3830d
...
@@ -545,7 +545,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -545,7 +545,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//按月计费方式
//按月计费方式
}
else
if
(
null
!=
detail
.
getBillingType
()
&&
CommonConstants
.
ONE_INT
==
detail
.
getBillingType
().
intValue
()){
}
else
if
(
null
!=
detail
.
getBillingType
()
&&
CommonConstants
.
ONE_INT
==
detail
.
getBillingType
().
intValue
()){
detail
.
setEstimatePremium
(
new
BigDecimal
(
detail
.
getBuyStandard
())
detail
.
setEstimatePremium
(
new
BigDecimal
(
detail
.
getBuyStandard
())
.
multiply
(
new
BigDecimal
(
purchaseCycle
))
.
multiply
(
null
==
detail
.
getRate
()?
BigDecimal
.
ZERO
:
detail
.
getRate
())
.
multiply
(
null
==
detail
.
getRate
()?
BigDecimal
.
ZERO
:
detail
.
getRate
())
.
add
(
new
BigDecimal
(
"5.00"
)));
.
add
(
new
BigDecimal
(
"5.00"
)));
}
}
...
@@ -8020,14 +8019,20 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -8020,14 +8019,20 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//按月
//按月
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getBillingType
()){
if
(
CommonConstants
.
ONE_INT
==
insuranceDetail
.
getBillingType
()){
// 预估保费 = 费率 * 购买标准
// 预估保费 = 费率 * 购买标准
BigDecimal
estimatePremium
=
new
BigDecimal
(
insuranceDetail
.
getBuyStandard
()).
multiply
(
insuranceDetail
.
getRate
()).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
estimatePremium
=
new
BigDecimal
(
insuranceDetail
.
getBuyStandard
())
.
multiply
(
insuranceDetail
.
getRate
())
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)
.
add
(
BigDecimal
.
valueOf
(
5.00
));
param
.
setEstimatePremium
(
estimatePremium
);
param
.
setEstimatePremium
(
estimatePremium
);
}
else
{
}
else
{
//按天
//按天
//计算起止时间的天数
//计算起止时间的天数
long
day
=
LocalDateUtil
.
betweenDay
(
insuranceDetail
.
getPolicyStart
().
toString
(),
insuranceDetail
.
getPolicyEnd
().
toString
());
long
day
=
LocalDateUtil
.
betweenDay
(
insuranceDetail
.
getPolicyStart
().
toString
(),
insuranceDetail
.
getPolicyEnd
().
toString
());
//预估保费 = (购买标准 / 365) * 天数
//预估保费 = (购买标准 / 365) * 天数
BigDecimal
estimatePremium
=
new
BigDecimal
(
insuranceDetail
.
getBuyStandard
()).
multiply
(
new
BigDecimal
(
day
)).
divide
(
new
BigDecimal
(
"365"
),
CommonConstants
.
TWO_INT
,
BigDecimal
.
ROUND_HALF_UP
);
BigDecimal
estimatePremium
=
new
BigDecimal
(
insuranceDetail
.
getBuyStandard
())
.
multiply
(
new
BigDecimal
(
day
))
.
divide
(
new
BigDecimal
(
"365"
),
CommonConstants
.
TWO_INT
,
BigDecimal
.
ROUND_HALF_UP
)
.
add
(
BigDecimal
.
valueOf
(
5.00
));
param
.
setEstimatePremium
(
estimatePremium
);
param
.
setEstimatePremium
(
estimatePremium
);
}
}
}
}
...
...
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