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
7bb1a613
Commit
7bb1a613
authored
Aug 11, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.14-商险相关
parent
7b10b7d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
TEmployeeInsurancePreController.java
...nsurances/controller/TEmployeeInsurancePreController.java
+1
-1
TEmployeeInsurancePreService.java
...ances/service/insurance/TEmployeeInsurancePreService.java
+1
-1
ScheduleServiceImpl.java
...nsurances/service/insurance/impl/ScheduleServiceImpl.java
+1
-1
TEmployeeInsurancePreServiceImpl.java
...vice/insurance/impl/TEmployeeInsurancePreServiceImpl.java
+9
-10
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TEmployeeInsurancePreController.java
View file @
7bb1a613
...
...
@@ -160,7 +160,7 @@ public class TEmployeeInsurancePreController {
@Operation
(
description
=
"商险派单信息单个/批量派单"
)
@PostMapping
(
"/batchDispatcherInsurance"
)
public
R
batchDispatcherInsurance
(
@RequestBody
List
<
String
>
idList
)
{
return
tEmployeeInsurancePreService
.
batchDispatcherInsurance
(
idList
,
null
);
return
tEmployeeInsurancePreService
.
batchDispatcherInsurance
(
idList
,
null
,
false
);
}
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TEmployeeInsurancePreService.java
View file @
7bb1a613
...
...
@@ -59,7 +59,7 @@ public interface TEmployeeInsurancePreService extends IService<TEmployeeInsuranc
* @param sameFlag 是否要做重复人员明细校验的标识 1 不需要 空需要
* @return
*/
R
batchDispatcherInsurance
(
List
<
String
>
idList
,
String
sameFlag
);
R
batchDispatcherInsurance
(
List
<
String
>
idList
,
String
sameFlag
,
boolean
pushQiWeiFlag
);
/**
* 新增商险待购买信息
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/ScheduleServiceImpl.java
View file @
7bb1a613
...
...
@@ -53,7 +53,7 @@ public class ScheduleServiceImpl implements ScheduleService {
transactionTemplate
.
execute
(
status
->
{
List
<
String
>
idList
=
new
ArrayList
<>();
idList
.
add
(
aId
);
insurancePreService
.
batchDispatcherInsurance
(
idList
,
CommonConstants
.
ONE_STRING
);
insurancePreService
.
batchDispatcherInsurance
(
idList
,
CommonConstants
.
ONE_STRING
,
false
);
return
null
;
});
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TEmployeeInsurancePreServiceImpl.java
View file @
7bb1a613
...
...
@@ -187,8 +187,9 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
return
R
.
ok
();
}
// pushQiWeiFlag : 是否推送企微 true:推送(当前仅下午3点与3点20的定时任务,需要推送企微),false:不推送
@Override
public
R
batchDispatcherInsurance
(
List
<
String
>
idList
,
String
sameFlag
)
{
public
R
batchDispatcherInsurance
(
List
<
String
>
idList
,
String
sameFlag
,
boolean
pushQiWeiFlag
)
{
List
<
TEmployeeInsurancePre
>
insurancePreList
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeInsurancePre
>
query
()
.
lambda
().
in
(
TEmployeeInsurancePre:
:
getId
,
idList
)
.
in
(
TEmployeeInsurancePre:
:
getProcessStatus
,
CommonConstants
.
processInsurancesStatus
));
...
...
@@ -409,7 +410,11 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
updateList
.
add
(
updatePre
);
}
}
if
(!
preQwMap
.
isEmpty
())
{
if
(!
updateList
.
isEmpty
())
{
this
.
updateBatchById
(
updateList
);
}
// pushQiWeiFlag 推送企微的flag,true表示推送企微
if
(
pushQiWeiFlag
&&
!
preQwMap
.
isEmpty
())
{
List
<
TEmployeeInsurancePreQw
>
qwList
=
new
ArrayList
<>();
int
deptNum
;
int
allNum
;
...
...
@@ -442,11 +447,8 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
qw
.
setDescription
(
description
.
toString
());
qwList
.
add
(
qw
);
}
if
(!
qwDetalList
.
isEmpty
())
{
if
(!
qwDetalList
.
isEmpty
()
&&
!
qwList
.
isEmpty
()
)
{
tEmployeeInsurancePreQwDetailService
.
saveBatch
(
qwDetalList
);
}
// TODO-加一个定时任务再推送企微的flag
if
(!
qwList
.
isEmpty
())
{
tEmployeeInsurancePreQwService
.
saveBatch
(
qwList
);
if
(
Common
.
isNotNull
(
userLoginNames
))
{
Map
<
String
,
String
>
sysUserMap
=
getUserQiWeiInfo
(
userLoginNames
);
...
...
@@ -463,9 +465,6 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
}
}
if
(!
updateList
.
isEmpty
())
{
this
.
updateBatchById
(
updateList
);
}
// 找出 insurancePreList 中在 autoAddParamList 中存在的数据
...
...
@@ -705,7 +704,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
.
set
(
TEmployeeInsurancePre:
:
getProcessStatus
,
CommonConstants
.
ONE_STRING
);
this
.
update
(
updateWrapper
);
try
{
this
.
batchDispatcherInsurance
(
unConfirmList
,
CommonConstants
.
ONE_STRING
);
this
.
batchDispatcherInsurance
(
unConfirmList
,
CommonConstants
.
ONE_STRING
,
true
);
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
...
...
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