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
c5a7d765
Commit
c5a7d765
authored
Feb 27, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算提交
parent
2f490131
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
4 deletions
+67
-4
AccountController.java
...om/hungraim/ltc/account/controller/AccountController.java
+2
-1
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+5
-1
SrvTaskFeignService.java
...c/main/java/com/hungraim/ltc/api/SrvTaskFeignService.java
+19
-0
SrvTaskController.java
...hungraim/ltc/governance/controller/SrvTaskController.java
+1
-0
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+1
-2
pom.xml
system/system-admin-service/pom.xml
+6
-0
SrvTaskScheduledController.java
...raim/ltc/system/Scheduled/SrvTaskScheduledController.java
+30
-0
bootstrap.yml
system/system-admin-service/src/main/resources/bootstrap.yml
+3
-0
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/controller/AccountController.java
View file @
c5a7d765
...
@@ -202,7 +202,8 @@ public class AccountController {
...
@@ -202,7 +202,8 @@ public class AccountController {
*/
*/
@GetMapping
(
"/queryAccountsDeclareList"
)
@GetMapping
(
"/queryAccountsDeclareList"
)
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryAccountsDeclareList
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
public
Result
<
Page
<
ChDisabDetailAccountsResp
>>
queryAccountsDeclareList
(
Integer
pageNum
,
Integer
pageSize
,
SrvOrganListReq
srvOrganListReq
)
{
srvOrganListReq
.
setAccountsStatus
(
"0"
);
List
<
String
>
accountsStatusList
=
Arrays
.
asList
(
"0"
,
"1"
);
srvOrganListReq
.
setAccountsStatusList
(
accountsStatusList
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
Page
<
ChDisabDetailAccountsResp
>
chAssessDetailAccounts
=
accountService
.
queryOrganAccountsDetail
(
pageNum
,
pageSize
,
srvOrganListReq
);
return
Result
.
success
(
chAssessDetailAccounts
);
return
Result
.
success
(
chAssessDetailAccounts
);
}
}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
c5a7d765
...
@@ -493,7 +493,7 @@ public class DisableController {
...
@@ -493,7 +493,7 @@ public class DisableController {
}
}
/**
/**
* 失能人员信息列表
* 失能人员信息
退出
列表
*
*
* @param pageNum 当前页
* @param pageNum 当前页
...
@@ -513,6 +513,10 @@ public class DisableController {
...
@@ -513,6 +513,10 @@ public class DisableController {
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
}
}
/**
* 失能人员退出
*/
@RequestMapping
(
"/disableInfoExit"
)
@RequestMapping
(
"/disableInfoExit"
)
public
Result
disableInfoExit
(
Integer
disableInfoId
,
Integer
exitReasonId
,
Integer
applyId
,
Integer
srvOrganId
,
Integer
programId
,
String
exitTime
)
{
public
Result
disableInfoExit
(
Integer
disableInfoId
,
Integer
exitReasonId
,
Integer
applyId
,
Integer
srvOrganId
,
Integer
programId
,
String
exitTime
)
{
if
(
disableInfoId
==
null
||
exitReasonId
==
null
||
applyId
==
null
)
{
if
(
disableInfoId
==
null
||
exitReasonId
==
null
||
applyId
==
null
)
{
...
...
governance/src/main/java/com/hungraim/ltc/api/SrvTaskFeignService.java
0 → 100644
View file @
c5a7d765
package
com
.
hungraim
.
ltc
.
api
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
/**
* @author zwl
* @ClassName SrvTaskFeignService
* @description
* @date 2023/2/27 15:11
**/
@FeignClient
(
"LTC-GOVERNANCE-SERVICE"
)
public
interface
SrvTaskFeignService
{
@GetMapping
(
"/api.governance/srvTask/timeAllocationSrvTask"
)
Result
timeAllocationSrvTask
();
}
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvTaskController.java
View file @
c5a7d765
...
@@ -11,6 +11,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -11,6 +11,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.Date
;
import
java.util.Date
;
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
c5a7d765
...
@@ -212,11 +212,10 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -212,11 +212,10 @@ public class SrvTaskServiceImpl implements SrvTaskService {
// 生成计划任务 CH_SRV_TASK_DETAIL
// 生成计划任务 CH_SRV_TASK_DETAIL
for
(
AllocationSrvTaskVO
chSrvTask
:
chSrvTasks
)
{
for
(
AllocationSrvTaskVO
chSrvTask
:
chSrvTasks
)
{
Long
srvTaskId
=
chSrvTask
.
getSrvTaskId
();
Long
srvTaskId
=
chSrvTask
.
getSrvTaskId
();
// 根据任务id和服务时间查询是否已经生成过计划,已经生成了就不需要再生成了
// 根据任务id和服务时间查询是否已经生成过计划,已经生成了就不需要再生成了
,已退出
List
<
ChSrvTaskDetail
>
chSrvTaskDetailList
=
chSrvTaskDetailMapper
.
selectList
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
srvTaskId
));
List
<
ChSrvTaskDetail
>
chSrvTaskDetailList
=
chSrvTaskDetailMapper
.
selectList
(
new
QueryWrapper
<
ChSrvTaskDetail
>().
eq
(
"srv_task_id"
,
srvTaskId
));
if
(
CollectionUtil
.
isNotEmpty
(
chSrvTaskDetailList
)){
if
(
CollectionUtil
.
isNotEmpty
(
chSrvTaskDetailList
)){
}
}
ChSrvTaskDetail
chSrvTaskDetail
=
new
ChSrvTaskDetail
();
ChSrvTaskDetail
chSrvTaskDetail
=
new
ChSrvTaskDetail
();
chSrvTaskDetail
.
setSrvTaskId
(
srvTaskId
);
//taskId
chSrvTaskDetail
.
setSrvTaskId
(
srvTaskId
);
//taskId
...
...
system/system-admin-service/pom.xml
View file @
c5a7d765
...
@@ -65,6 +65,12 @@
...
@@ -65,6 +65,12 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.hungraim.ltc
</groupId>
<artifactId>
governance
</artifactId>
<version>
0.0.1
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/Scheduled/SrvTaskScheduledController.java
0 → 100644
View file @
c5a7d765
package
com
.
hungraim
.
ltc
.
system
.
Scheduled
;
import
com.hungraim.ltc.api.AttachFeignService
;
import
com.hungraim.ltc.api.SrvTaskFeignService
;
import
com.hungraim.ltc.util.Result
;
import
lombok.AllArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author zwl
* @ClassName SrvTaskScheduledController
* @description
* @date 2023/2/27 15:23
**/
@Component
@AllArgsConstructor
public
class
SrvTaskScheduledController
{
private
final
SrvTaskFeignService
srvTaskFeignService
;
// 表示每天3点5分执行
@Scheduled
(
cron
=
"30 50 15 * * ?"
)
public
void
timeAllocationSrvTask
()
{
Result
result
=
srvTaskFeignService
.
timeAllocationSrvTask
();
System
.
out
.
println
();
}
}
system/system-admin-service/src/main/resources/bootstrap.yml
View file @
c5a7d765
spring
:
spring
:
main
:
#允许存在多个Feign调用相同Service的接口
allow-bean-definition-overriding
:
true
devtools
:
devtools
:
restart
:
restart
:
enabled
:
true
enabled
:
true
...
...
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