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
e2f93d26
Commit
e2f93d26
authored
Jan 28, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本切换-fxj
parent
dd51c838
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+3
-5
DoJointInsuranceTask.java
...ud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
+2
-1
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 @
e2f93d26
...
@@ -547,6 +547,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -547,6 +547,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
.
multiply
(
new
BigDecimal
(
day
))
.
multiply
(
new
BigDecimal
(
day
))
.
divide
(
new
BigDecimal
(
"365"
),
2
,
RoundingMode
.
HALF_UP
)
.
divide
(
new
BigDecimal
(
"365"
),
2
,
RoundingMode
.
HALF_UP
)
.
add
(
new
BigDecimal
(
"5.00"
)));
.
add
(
new
BigDecimal
(
"5.00"
)));
//按月计费方式
}
else
if
(
null
!=
detail
.
getBillingType
()
&&
CommonConstants
.
ONE_INT
==
detail
.
getBillingType
().
intValue
()){
TInsuranceTypeRate
typeRate
=
tInsuranceTypeRateService
.
getOne
(
Wrappers
.<
TInsuranceTypeRate
>
query
().
lambda
()
TInsuranceTypeRate
typeRate
=
tInsuranceTypeRateService
.
getOne
(
Wrappers
.<
TInsuranceTypeRate
>
query
().
lambda
()
.
eq
(
TInsuranceTypeRate:
:
getInsuranceTypeId
,
detail
.
getInsuranceTypeId
())
.
eq
(
TInsuranceTypeRate:
:
getInsuranceTypeId
,
detail
.
getInsuranceTypeId
())
.
eq
(
TInsuranceTypeRate:
:
getMonth
,
purchaseCycle
)
.
eq
(
TInsuranceTypeRate:
:
getMonth
,
purchaseCycle
)
...
@@ -556,8 +558,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -556,8 +558,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
null
!=
typeRate
){
if
(
null
!=
typeRate
){
detail
.
setRate
(
new
BigDecimal
(
typeRate
.
getRate
()));
detail
.
setRate
(
new
BigDecimal
(
typeRate
.
getRate
()));
}
}
//按月计费方式
}
else
if
(
null
!=
detail
.
getBillingType
()
&&
CommonConstants
.
ONE_INT
==
detail
.
getBillingType
().
intValue
()){
detail
.
setEstimatePremium
(
new
BigDecimal
(
detail
.
getBuyStandard
())
detail
.
setEstimatePremium
(
new
BigDecimal
(
detail
.
getBuyStandard
())
.
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"
)));
...
@@ -2098,7 +2098,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -2098,7 +2098,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
// 预估保费 = 费率 * 购买标准 + 5元
// 预估保费 = 费率 * 购买标准 + 5元
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
())
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
())
.
multiply
(
detail
.
getRate
())
.
multiply
(
detail
.
getRate
())
.
add
(
BigDecimal
.
valueOf
(
5.00
))
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
);
detail
.
setEstimatePremium
(
estimatePremium
);
detail
.
setEstimatePremium
(
estimatePremium
);
if
(
detail
.
getBuyType
()
==
CommonConstants
.
THREE_INT
){
if
(
detail
.
getBuyType
()
==
CommonConstants
.
THREE_INT
){
...
@@ -2142,8 +2141,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -2142,8 +2141,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//预估保费 = (购买标准 / 365) * 天数 + 5元
//预估保费 = (购买标准 / 365) * 天数 + 5元
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
())
BigDecimal
estimatePremium
=
new
BigDecimal
(
detail
.
getBuyStandard
())
.
multiply
(
new
BigDecimal
(
day
))
.
multiply
(
new
BigDecimal
(
day
))
.
divide
(
new
BigDecimal
(
"365"
),
CommonConstants
.
TWO_INT
,
BigDecimal
.
ROUND_HALF_UP
)
.
divide
(
new
BigDecimal
(
"365"
),
CommonConstants
.
TWO_INT
,
BigDecimal
.
ROUND_HALF_UP
);
.
add
(
BigDecimal
.
valueOf
(
5.00
));
detail
.
setEstimatePremium
(
estimatePremium
);
detail
.
setEstimatePremium
(
estimatePremium
);
//记录状态均置为「已投保」
//记录状态均置为「已投保」
detail
.
setBuyHandleStatus
(
CommonConstants
.
THREE_INT
);
detail
.
setBuyHandleStatus
(
CommonConstants
.
THREE_INT
);
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
View file @
e2f93d26
...
@@ -737,7 +737,8 @@ public class DoJointInsuranceTask {
...
@@ -737,7 +737,8 @@ public class DoJointInsuranceTask {
}
}
//红冲
//红冲
if
(
InsurancesConstants
.
CORRECT_SETTLE_BILL
.
equals
(
param
.
getInteractiveType
())
&&
"否"
.
equals
(
param
.
getBpoFlag
()))
{
if
(
InsurancesConstants
.
CORRECT_SETTLE_BILL
.
equals
(
param
.
getInteractiveType
())
&&
(
"否"
.
equals
(
param
.
getBpoFlag
())
||
"0"
.
equals
(
param
.
getIsJfcd
())))
{
EkpInsurancesInfo
pushParam
=
new
EkpInsurancesInfo
();
EkpInsurancesInfo
pushParam
=
new
EkpInsurancesInfo
();
String
code
=
""
;
String
code
=
""
;
if
(
InsurancesConstants
.
ESTIMATE_SETTLE_BILL
.
equals
(
param
.
getSettleType
()))
{
if
(
InsurancesConstants
.
ESTIMATE_SETTLE_BILL
.
equals
(
param
.
getSettleType
()))
{
...
...
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