Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
cd28338d
You need to sign in or sign up before continuing.
Commit
cd28338d
authored
Mar 06, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同续签待办-fxj
parent
eca3539d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
11 deletions
+26
-11
TEmployeeContractPreNewServiceImpl.java
...ives/service/impl/TEmployeeContractPreNewServiceImpl.java
+15
-11
TSettleDomainServiceImpl.java
.../yifu/archives/service/impl/TSettleDomainServiceImpl.java
+11
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractPreNewServiceImpl.java
View file @
cd28338d
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
*/
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.util.ArrayUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.ExcelWriter
;
...
@@ -54,7 +53,6 @@ import lombok.RequiredArgsConstructor;
...
@@ -54,7 +53,6 @@ import lombok.RequiredArgsConstructor;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.ServletOutputStream
;
...
@@ -63,7 +61,6 @@ import java.io.IOException;
...
@@ -63,7 +61,6 @@ import java.io.IOException;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalTime
;
import
java.time.ZoneId
;
import
java.time.ZoneId
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -279,7 +276,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
...
@@ -279,7 +276,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
}
}
//判断两个合同时间是否重合
//判断两个合同时间是否重合
if
(
LocalDateUtil
.
hasOverlap
(
contract
.
getContractStart
(),
contract
.
getContractEnd
(),
preVo
.
getContractStart
(),
preVo
.
getContractEnd
())){
if
(
LocalDateUtil
.
hasOverlap
(
contract
.
getContractStart
(),
contract
.
getContractEnd
(),
preVo
.
getContractStart
(),
preVo
.
getContractEnd
())){
return
R
.
failed
(
EmployeeConstants
.
DATA_CONTRACT_OVERLAP
);
return
R
.
failed
(
"发起时间距离合同开始日期已超过一个月,禁止使用电子签,请切换为线下签"
);
}
}
TEmpContractAlert
alert
=
empContractAlertMapper
.
selectOne
(
Wrappers
.<
TEmpContractAlert
>
query
().
lambda
()
TEmpContractAlert
alert
=
empContractAlertMapper
.
selectOne
(
Wrappers
.<
TEmpContractAlert
>
query
().
lambda
()
.
eq
(
TEmpContractAlert:
:
getContractId
,
preVo
.
getContractId
())
.
eq
(
TEmpContractAlert:
:
getContractId
,
preVo
.
getContractId
())
...
@@ -1291,13 +1288,20 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
...
@@ -1291,13 +1288,20 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
.
set
(
TEmployeeContractPreNew:
:
getChangeTypeUser
,
"超管"
)
.
set
(
TEmployeeContractPreNew:
:
getChangeTypeUser
,
"超管"
)
.
set
(
TEmployeeContractPreNew:
:
getChangeTypeTime
,
DateUtil
.
getCurrentDateTime
());
.
set
(
TEmployeeContractPreNew:
:
getChangeTypeTime
,
DateUtil
.
getCurrentDateTime
());
this
.
update
(
updateWrapper
);
this
.
update
(
updateWrapper
);
TEmployeeContractAudit
audit
=
new
TEmployeeContractAudit
();
TEmployeeContractInfo
contractInfo
=
contractInfoService
.
getOne
(
Wrappers
.<
TEmployeeContractInfo
>
query
()
audit
.
setRootName
(
"续签-撤销签署"
);
.
lambda
().
eq
(
TEmployeeContractInfo:
:
getPreNewId
,
preNew
.
getId
())
audit
.
setCreateName
(
"系统自动撤销"
);
.
eq
(
TEmployeeContractInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_INT
)
audit
.
setLinkId
(
preNew
.
getContractId
());
.
orderByDesc
(
BaseEntity:
:
getCreateTime
)
audit
.
setLinkType
(
CommonConstants
.
ONE_INT
);
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
audit
.
setRemark
(
"电子合同签署超过1个月未完成签署系统,自动撤销"
);
if
(
null
!=
contractInfo
){
tEmployeeContractAuditService
.
save
(
audit
);
TEmployeeContractAudit
audit
=
new
TEmployeeContractAudit
();
audit
.
setRootName
(
"续签-撤销签署"
);
audit
.
setCreateName
(
"系统自动撤销"
);
audit
.
setLinkId
(
contractInfo
.
getId
());
audit
.
setLinkType
(
CommonConstants
.
ONE_INT
);
audit
.
setRemark
(
"电子合同签署超过1个月未完成签署系统,自动撤销"
);
tEmployeeContractAuditService
.
save
(
audit
);
}
//更新合同续签待办提醒的办理状态为待办理
//更新合同续签待办提醒的办理状态为待办理
updateEmpContractAlertHandleStatus
(
preNew
.
getContractId
(),
CommonConstants
.
ZERO_STRING
);
updateEmpContractAlertHandleStatus
(
preNew
.
getContractId
(),
CommonConstants
.
ZERO_STRING
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TSettleDomainServiceImpl.java
View file @
cd28338d
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.ArchivesConstants;
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.ArchivesConstants;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TCutsomerDataPermissonMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TCutsomerDataPermissonMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpContractAlertMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpContractAlertMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractPreNewMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TSettleDomainMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TSettleDomainMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.EmployeeRegistrationPreService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.EmployeeRegistrationPreService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreService
;
...
@@ -90,6 +91,10 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
...
@@ -90,6 +91,10 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
@Lazy
@Lazy
private
TEmployeeContractPreService
employeeContractPreService
;
private
TEmployeeContractPreService
employeeContractPreService
;
@Autowired
@Lazy
private
TEmployeeContractPreNewMapper
employeeContractPreNewMapper
;
@Autowired
@Autowired
@Lazy
@Lazy
private
EmployeeRegistrationPreService
registrationPreService
;
private
EmployeeRegistrationPreService
registrationPreService
;
...
@@ -606,6 +611,12 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
...
@@ -606,6 +611,12 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
.
set
(
TEmployeeContractPre:
:
getCustomerUsername
,
vo
.
getName
())
.
set
(
TEmployeeContractPre:
:
getCustomerUsername
,
vo
.
getName
())
.
set
(
TEmployeeContractPre:
:
getCustomerUserLoginname
,
vo
.
getLoginName
());
.
set
(
TEmployeeContractPre:
:
getCustomerUserLoginname
,
vo
.
getLoginName
());
employeeContractPreService
.
update
(
updateContractWrapper
);
employeeContractPreService
.
update
(
updateContractWrapper
);
//更新合同待续签的前端客服
LambdaUpdateWrapper
<
TEmployeeContractPreNew
>
updateContractNewWrapper
=
new
LambdaUpdateWrapper
<>();
updateContractNewWrapper
.
eq
(
TEmployeeContractPreNew:
:
getDeptNo
,
vo
.
getDepartNo
())
.
set
(
TEmployeeContractPreNew:
:
getCustomerUsername
,
vo
.
getName
())
.
set
(
TEmployeeContractPreNew:
:
getCustomerUserLoginname
,
vo
.
getLoginName
());
employeeContractPreNewMapper
.
update
(
null
,
updateContractNewWrapper
);
//更新社保待购买的前端客服
//更新社保待购买的前端客服
socialDaprUtils
.
updateSocialPreCustomerName
(
updateVo
);
socialDaprUtils
.
updateSocialPreCustomerName
(
updateVo
);
...
...
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