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
a6545edc
Commit
a6545edc
authored
Nov 19, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.17-商险待续签
parent
7e265cac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
157 additions
and
28 deletions
+157
-28
TEmpContractAlertController.java
...yifu/archives/controller/TEmpContractAlertController.java
+7
-0
TEmpContractAlertService.java
...us/v1/yifu/archives/service/TEmpContractAlertService.java
+3
-0
TEmpContractAlertServiceImpl.java
...u/archives/service/impl/TEmpContractAlertServiceImpl.java
+20
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+124
-8
TInsurancePreRenewDetailServiceImpl.java
...e/insurance/impl/TInsurancePreRenewDetailServiceImpl.java
+3
-20
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpContractAlertController.java
View file @
a6545edc
...
...
@@ -33,6 +33,7 @@ import com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.TInsuranceAlertSearchVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
...
...
@@ -87,6 +88,12 @@ public class TEmpContractAlertController {
setAuth
(
searchVo
);
return
R
.
ok
(
tEmpContractAlertService
.
getAutoPage
(
page
,
searchVo
));
}
@Operation
(
description
=
"合同待续签数量查询"
)
@PostMapping
(
"/getAutoContractCount"
)
public
R
<
Long
>
getAutoContractCount
(
@RequestBody
ContractAlertSearchVo
searchVo
)
{
setAuth
(
searchVo
);
return
R
.
ok
(
tEmpContractAlertService
.
getAutoContractCount
(
searchVo
));
}
/**
* 不分页查询
* @param searchVo 员工合同续签待办
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpContractAlertService.java
View file @
a6545edc
...
...
@@ -41,7 +41,10 @@ import java.util.List;
public
interface
TEmpContractAlertService
extends
IService
<
TEmpContractAlert
>
{
IPage
<
TEmpContractAlert
>
pageDiy
(
Page
page
,
ContractAlertSearchVo
searchVo
);
// 给自动化用的-合同待续签-分页查询
IPage
<
TEmpContractAlert
>
getAutoPage
(
Page
page
,
ContractAlertSearchVo
searchVo
);
// 合同待续签数量查询
long
getAutoContractCount
(
ContractAlertSearchVo
searchVo
);
List
<
TEmpContractAlert
>
listDiy
(
ContractAlertSearchVo
searchVo
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpContractAlertServiceImpl.java
View file @
a6545edc
...
...
@@ -122,6 +122,26 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
}
return
baseMapper
.
selectPage
(
page
,
wrapper
);
}
@Override
public
long
getAutoContractCount
(
ContractAlertSearchVo
searchVo
)
{
List
<
String
>
deptList
=
tAutoMainRelMapper
.
getAutoDeptNo
();
LambdaQueryWrapper
<
TEmpContractAlert
>
wrapper
=
buildQueryWrapper
(
searchVo
);
wrapper
.
isNotNull
(
TEmpContractAlert:
:
getId
);
if
(
deptList
!=
null
&&
!
deptList
.
isEmpty
())
{
wrapper
.
in
(
TEmpContractAlert:
:
getProjectNo
,
deptList
);
}
if
(
Common
.
isNotNull
(
searchVo
.
getContractEndStart
())){
wrapper
.
ge
(
TEmpContractAlert:
:
getContractEnd
,
searchVo
.
getContractEndStart
());
}
if
(
Common
.
isNotNull
(
searchVo
.
getContractEndEnd
())){
wrapper
.
le
(
TEmpContractAlert:
:
getContractEnd
,
searchVo
.
getContractEndEnd
());
}
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
()))
{
wrapper
.
last
(
searchVo
.
getAuthSql
());
}
return
baseMapper
.
selectCount
(
wrapper
);
}
@Override
public
IPage
<
TEmpContractAlert
>
pageDiy
(
Page
page
,
ContractAlertSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TEmpContractAlert
>
wrapper
=
buildQueryWrapper
(
searchVo
);
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
a6545edc
This diff is collapsed.
Click to expand it.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePreRenewDetailServiceImpl.java
View file @
a6545edc
...
...
@@ -391,7 +391,6 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
errorMessageMap
.
put
(
info
.
getInsurancePreRenewId
(),
info
.
getErrorMessage
());
}
Map
<
String
,
Set
<
String
>>
deptNumMap
=
new
HashMap
<>();
Map
<
String
,
Integer
>
allNumMap
=
new
HashMap
<>();
Map
<
String
,
Integer
>
failNumMap
=
new
HashMap
<>();
Map
<
String
,
TInsurancePreRenewDetailQw
>
preQwMap
=
new
HashMap
<>();
...
...
@@ -400,7 +399,6 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
TInsurancePreRenewDetail
updatePre
;
LocalDateTime
now
=
LocalDateTime
.
now
();
String
errorrMessage
;
Set
<
String
>
tempSet
;
Integer
nums
;
String
customerUserLoginname
;
...
...
@@ -411,14 +409,6 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
for
(
TInsurancePreRenewDetail
pre
:
insurancePreList
)
{
customerUserLoginname
=
pre
.
getCustomerUserLoginname
();
if
(
Common
.
isNotNull
(
customerUserLoginname
))
{
tempSet
=
deptNumMap
.
get
(
customerUserLoginname
);
if
(
tempSet
==
null
)
{
tempSet
=
new
HashSet
<>();
}
tempSet
.
add
(
pre
.
getDeptNo
());
deptNumMap
.
put
(
customerUserLoginname
,
tempSet
);
}
updatePre
=
new
TInsurancePreRenewDetail
();
updatePre
.
setId
(
pre
.
getId
());
String
qwUuId
;
...
...
@@ -483,7 +473,6 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
// pushQiWeiFlag 推送企微的flag,true表示推送企微
if
(
pushQiWeiFlag
&&
!
preQwMap
.
isEmpty
())
{
List
<
TInsurancePreRenewDetailQw
>
qwList
=
new
ArrayList
<>();
int
deptNum
;
int
allNum
;
int
failNum
;
StringBuilder
description
;
...
...
@@ -496,12 +485,6 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
userLoginNames
=
customerUserLoginname
;
}
qw
=
entry
.
getValue
();
tempSet
=
deptNumMap
.
get
(
customerUserLoginname
);
if
(
Common
.
isNotNull
(
tempSet
))
{
deptNum
=
tempSet
.
size
();
}
else
{
deptNum
=
0
;
}
allNum
=
allNumMap
.
get
(
customerUserLoginname
);
if
(
Common
.
isEmpty
(
allNum
))
{
allNum
=
0
;
...
...
@@ -510,8 +493,8 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
if
(
Common
.
isEmpty
(
failNum
))
{
failNum
=
0
;
}
description
=
new
StringBuilder
(
"
项目数:"
).
append
(
deptNum
).
append
(
"个;自动化派单人数:"
)
.
append
(
allNum
).
append
(
"个,【失败人数:"
).
append
(
failNum
).
append
(
"个】<br>请及时至HRO系统处理,以免人员漏保
!"
);
description
=
new
StringBuilder
(
"
商险派单数:"
).
append
(
allNum
).
append
(
"份,【失败份数:"
).
append
(
failNum
)
.
append
(
"份】<br>点击查看详情!<br>请及时至HRO系统处理,以免耽误购买进度
!"
);
qw
.
setDescription
(
description
.
toString
());
qwList
.
add
(
qw
);
}
...
...
@@ -649,7 +632,7 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
RestTemplate
restTemplate
=
new
RestTemplate
();
Map
<
String
,
Object
>
requestMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
textcard
=
new
HashMap
<>();
textcard
.
put
(
"title"
,
"【
商险自动化派单——
失败提醒】"
);
textcard
.
put
(
"title"
,
"【
作业自动化——商险续保发起
失败提醒】"
);
textcard
.
put
(
"url"
,
String
.
format
(
SecurityConstants
.
WX_GET_MESSAGE_AUTH_URL
,
wxConfig
.
getCorpid
(),
wxConfig
.
getDomainName
()
+
"/auth/oauth/wxLogin"
,
"76"
+
mainId
));
textcard
.
put
(
"description"
,
content
);
requestMap
.
put
(
"touser"
,
sendUser
);
...
...
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