Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
0ff608ed
Commit
0ff608ed
authored
Sep 03, 2024
by
wujipeng
Browse files
优化
parent
29e91524
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/service/impl/ContractServiceImpl.java
View file @
0ff608ed
...
...
@@ -56,6 +56,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractDao, ContractEntity
contractVO
.
setRenewContractCode
(
contractDTO
.
getCode
());
baseMapper
.
updateById
(
BeanUtil
.
copyProperties
(
contractVO
,
ContractEntity
.
class
));
//保存续约新合同
contractDTO
.
setHomId
(
contractVO
.
getHomId
());
contractDTO
.
setParentId
(
contractVO
.
getId
());
}
return
this
.
save
(
BeanUtil
.
copyProperties
(
contractDTO
,
ContractEntity
.
class
));
...
...
src/main/java/com/ruzhoukj/sms/task/ContractTask.java
View file @
0ff608ed
...
...
@@ -38,6 +38,7 @@ public class ContractTask {
//每天查询一次七天内要到期的合同
@Scheduled
(
cron
=
"0 0 10 * * ?"
)
// @Scheduled(cron = "*/15 * * * * *")
public
void
contractRemind
()
{
List
<
ContractVO
>
list
=
contractService
.
selectSevenDaysContract
();
//要到期的合同
...
...
@@ -61,5 +62,4 @@ public class ContractTask {
}
}
}
}
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