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
589b7c84
Commit
589b7c84
authored
Sep 23, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商险自动化限制:新增、批增、替换-fxj
parent
7cb40eb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
TInsurancePolicyServiceImpl.java
...s/service/insurance/impl/TInsurancePolicyServiceImpl.java
+20
-5
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePolicyServiceImpl.java
View file @
589b7c84
...
@@ -291,6 +291,7 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -291,6 +291,7 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
TInsuranceType
type
=
null
;
TInsuranceType
type
=
null
;
TBusinessOperate
operate
=
null
;
TBusinessOperate
operate
=
null
;
TInsurancePolicy
policy
=
null
;
TInsurancePolicy
policy
=
null
;
List
<
TInsurancePolicy
>
saveList
=
new
ArrayList
<>();
// 执行数据插入操作 组装
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
...
@@ -337,17 +338,31 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
...
@@ -337,17 +338,31 @@ public class TInsurancePolicyServiceImpl extends ServiceImpl<TInsurancePolicyMap
policy
.
setEnableFlag
(
CommonConstants
.
ZERO_INT
);
policy
.
setEnableFlag
(
CommonConstants
.
ZERO_INT
);
policy
.
setDeleteFlag
(
CommonConstants
.
ZERO_INT
);
policy
.
setDeleteFlag
(
CommonConstants
.
ZERO_INT
);
//插入保单维护信息
//插入保单维护信息
baseMapper
.
insert
(
policy
);
saveList
.
add
(
policy
);
//baseMapper.insert(policy);
//插入保单维护操作日志
//插入保单维护操作日志
//第一次新增插入变更记录表为insert,前端会将insert渲染为批量导入
//第一次新增插入变更记录表为insert,前端会将insert渲染为批量导入
operate
=
new
TBusinessOperate
();
operate
.
setBusinessId
(
policy
.
getId
());
operate
.
setDifferenceInfo
(
"insert"
);
tBusinessOperateService
.
save
(
operate
);
policyNoMap
.
put
(
excel
.
getPolicyNo
(),
excel
.
getRowIndex
().
toString
());
policyNoMap
.
put
(
excel
.
getPolicyNo
(),
excel
.
getRowIndex
().
toString
());
}
}
List
<
TBusinessOperate
>
operateList
=
new
ArrayList
<>();
if
(
Common
.
isNotNull
(
saveList
))
{
this
.
saveBatch
(
saveList
);
for
(
TInsurancePolicy
py
:
saveList
){
operate
=
new
TBusinessOperate
();
operate
.
setBusinessId
(
policy
.
getId
());
operate
.
setDifferenceInfo
(
"insert"
);
operateList
.
add
(
operate
);
//tBusinessOperateService.save(operate);
}
if
(
Common
.
isNotNull
(
operateList
)){
tBusinessOperateService
.
saveBatch
(
operateList
);
}
}
// 清理map list 等数据
// 清理map list 等数据
Common
.
clear
(
saveList
);
Common
.
clear
(
operateList
);
Common
.
clear
(
excelVOList
);
Common
.
clear
(
excelVOList
);
}
}
...
...
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