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
70f77079
Commit
70f77079
authored
Apr 01, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化-fxj
parent
ae16107d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+9
-12
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 @
70f77079
...
...
@@ -448,6 +448,8 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Common
.
isNotNull
(
user
))
{
detail
.
setCreateUserDeptId
(
user
.
getDeptId
().
toString
());
detail
.
setCreateUserDeptName
(
user
.
getDeptName
());
detail
.
setCreateBy
(
user
.
getId
());
detail
.
setCreateName
(
user
.
getNickname
());
}
//投保状态:待投保
detail
.
setBuyHandleStatus
(
CommonConstants
.
ONE_INT
);
...
...
@@ -456,7 +458,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
//保费都默认是0
detail
.
setActualPremium
(
new
BigDecimal
(
"0.00"
));
detail
.
setEstimatePremium
(
new
BigDecimal
(
"0.00"
));
if
(
null
==
user
){
if
(
autoFlag
){
userTemp
=
sysUserMap
.
get
(
detail
.
getDeptNo
());
if
(
null
!=
userTemp
){
detail
.
setCreateBy
(
userTemp
.
getUserId
());
...
...
@@ -465,9 +467,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail
.
setCreateBy
(
"1"
);
detail
.
setCreateName
(
"自动化派单"
+
"-"
+
success
.
getCustomerUserName
());
}
}
else
{
detail
.
setCreateBy
(
user
.
getId
());
detail
.
setCreateName
(
user
.
getNickname
());
}
detail
.
setId
(
RandomStringUtils
.
randomNumeric
(
19
));
//是否见费出单逻辑处理:预估保费结算、购买周期计算、保单结束日期结算、参保开始日期计算、预计办理日期计算
...
...
@@ -707,10 +706,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Common
.
isNotNull
(
user
))
{
detail
.
setCreateUserDeptId
(
user
.
getDeptId
().
toString
());
detail
.
setCreateUserDeptName
(
user
.
getDeptName
());
detail
.
setCreateBy
(
user
.
getId
());
detail
.
setCreateName
(
user
.
getNickname
());
}
detail
.
setActualPremium
(
new
BigDecimal
(
"0.00"
));
detail
.
setEstimatePremium
(
new
BigDecimal
(
"0.00"
));
if
(
null
==
user
){
if
(
autoFlag
){
userTemp
=
sysUserMap
.
get
(
detail
.
getDeptNo
());
if
(
null
!=
userTemp
){
detail
.
setCreateBy
(
userTemp
.
getUserId
());
...
...
@@ -719,9 +720,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail
.
setCreateBy
(
"1"
);
detail
.
setCreateName
(
"自动化派单"
+
"-"
+
success
.
getCustomerUserName
());
}
}
else
{
detail
.
setCreateBy
(
user
.
getId
());
detail
.
setCreateName
(
user
.
getNickname
());
}
detailList
.
add
(
detail
);
sourceIdCardList
.
add
(
detail
.
getEmpIdcardNo
());
...
...
@@ -911,11 +909,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
Common
.
isNotNull
(
user
))
{
newDetail
.
setCreateUserDeptId
(
user
.
getDeptId
().
toString
());
newDetail
.
setCreateUserDeptName
(
user
.
getDeptName
());
newDetail
.
setCreateBy
(
user
.
getId
());
newDetail
.
setCreateName
(
user
.
getNickname
());
}
newDetail
.
setSignFlag
(
CommonConstants
.
ZERO_INT
);
//创建时间是新数据插入时间
newDetail
.
setCreateTime
(
LocalDateTime
.
now
());
if
(
null
==
user
){
if
(
autoFlag
){
userTemp
=
sysUserMap
.
get
(
newDetail
.
getDeptNo
());
if
(
null
!=
userTemp
){
newDetail
.
setCreateBy
(
userTemp
.
getUserId
());
...
...
@@ -924,9 +924,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
newDetail
.
setCreateBy
(
"1"
);
newDetail
.
setCreateName
(
"自动化派单"
+
"-"
+
success
.
getCustomerUserName
());
}
}
else
{
newDetail
.
setCreateBy
(
user
.
getId
());
newDetail
.
setCreateName
(
user
.
getNickname
());
}
//替换不参与结算
...
...
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