Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
c2453662
Commit
c2453662
authored
Mar 31, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失能人员退出跑批
parent
6bc5a093
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
1 deletion
+51
-1
ApplyApplication.java
...vice/src/main/java/com/hungraim/ltc/ApplyApplication.java
+2
-0
DisableScheduledController.java
...m/hungraim/ltc/controller/DisableScheduledController.java
+44
-0
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+3
-0
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+2
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/ApplyApplication.java
View file @
c2453662
...
...
@@ -5,6 +5,7 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
/**
...
...
@@ -16,6 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableFeignClients
@EnableScheduling
public
class
ApplyApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ApplyApplication
.
class
,
args
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableScheduledController.java
0 → 100644
View file @
c2453662
package
com
.
hungraim
.
ltc
.
controller
;
import
com.hungraim.ltc.redis.RedisLock
;
import
com.hungraim.ltc.service.DisableService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author zwl
* @ClassName DisableSch
* @description
* @date 2023/3/31 15:22
**/
@Component
@EnableAsync
@Slf4j
public
class
DisableScheduledController
{
@Autowired
private
RedisLock
redisLock
;
@Autowired
private
DisableService
disableService
;
public
static
final
String
JOB_KEY
=
"redis.job.task:exitTask"
;
@Scheduled
(
cron
=
"0 12 00 * * ?"
)
public
void
disableExitTask
()
{
boolean
flag
=
redisLock
.
tryLock
(
JOB_KEY
,
1000
*
30
);
if
(
flag
){
log
.
info
(
"disableExitTask========start:{}"
);
disableService
.
disableExitTask
();
log
.
info
(
"disableExitTask========end:{}"
);
}
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
c2453662
...
...
@@ -9,6 +9,7 @@ import com.hungraim.ltc.util.Result;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -184,6 +185,8 @@ public interface DisableService {
int
disableInfoExit
(
DisableExitVO
disableExitVO
);
void
disableExitHanlder
(
Integer
exitReasonId
,
Integer
srvOrganId
,
Integer
disableInfoId
,
Date
date
);
List
<
ChDisableExit
>
getDisableExitHis
(
Integer
disableInfoId
);
Integer
selectByCertiCode
(
String
certiCode
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
c2453662
...
...
@@ -653,7 +653,8 @@ public class DisableServiceImpl implements DisableService {
* @param date 退出时间
*@return void
**/
private
void
disableExitHanlder
(
Integer
exitReasonId
,
Integer
srvOrganId
,
Integer
disableInfoId
,
Date
date
)
{
@Override
public
void
disableExitHanlder
(
Integer
exitReasonId
,
Integer
srvOrganId
,
Integer
disableInfoId
,
Date
date
)
{
// 更新方案为已终止
ChSrvProgram
chSrvProgram
=
new
ChSrvProgram
();
chSrvProgram
.
setDisabInfoId
(
Long
.
valueOf
(
disableInfoId
));
...
...
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