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
abc68df9
Commit
abc68df9
authored
Mar 09, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_nursing_records_20230214' into dev_ch_master
parents
33aab16f
dfdf5288
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
12 deletions
+28
-12
ProgramSetAndProjectVo.java
...ngraim/ltc/pojo/vo/governance/ProgramSetAndProjectVo.java
+1
-1
SrvProgramController.java
...graim/ltc/governance/controller/SrvProgramController.java
+1
-1
SrvTaskScheduledController.java
...ltc/governance/controller/SrvTaskScheduledController.java
+19
-7
ChSrvOrganProjectMapper.xml
...ungraim/ltc/governance/mapper/ChSrvOrganProjectMapper.xml
+7
-3
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/ProgramSetAndProjectVo.java
View file @
abc68df9
...
...
@@ -60,7 +60,7 @@ public class ProgramSetAndProjectVo {
/**
* 是否配置 (是:1;否:0)
*/
private
Short
isConf
=
1
;
private
Short
isConf
;
/**
* 计划频次
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
abc68df9
...
...
@@ -144,7 +144,7 @@ public class SrvProgramController {
}
else
{
List
<
ProgramSetAndProjectVo
>
programSetAndProjectVos
=
programDetailVo
.
getProgramSetAndProjectVos
();
for
(
ProgramSetAndProjectVo
programSetAndProjectVo
:
programSetAndProjectVos
)
{
if
(
programSetAndProjectVo
.
getIsConf
().
intValue
()
==
1
&&
programSetAndProjectVo
.
getPlanningFrequency
()
==
null
)
{
if
(
programSetAndProjectVo
.
getIsConf
().
intValue
()
==
1
&&
programSetAndProjectVo
.
getPlanningFrequency
()
==
null
&&
programSetAndProjectVo
.
getPlanningFrequencyType
()!=
2
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/
service/SrvTaskScheduledServiceImpl
.java
→
governance/src/main/java/com/hungraim/ltc/governance/
controller/SrvTaskScheduledController
.java
View file @
abc68df9
package
com
.
hungraim
.
ltc
.
governance
.
service
;
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
import
com.hungraim.ltc.governance.service.SrvTaskService
;
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.
Service
;
import
org.springframework.stereotype.
Component
;
/**
* @author zwl
* @ClassName SrvTaskScheduled
ServiceImpl
* @ClassName SrvTaskScheduled
Controller
* @description
* @date 2023/3/
2 14:37
* @date 2023/3/
9 21:08
**/
@Service
@Component
@EnableAsync
@Slf4j
public
class
SrvTaskScheduled
ServiceImpl
{
public
class
SrvTaskScheduled
Controller
{
@Autowired
private
SrvTaskService
srvTaskService
;
@Scheduled
(
cron
=
"30
20 1
1 * * ?"
)
@Scheduled
(
cron
=
"30
50 2
1 * * ?"
)
public
void
timeAllocationSrvTask
()
{
log
.
info
(
"timeAllocationSrvTask========start"
);
srvTaskService
.
timeAllocationSrvTask
();
log
.
info
(
"timeAllocationSrvTask========end:{}"
);
}
@Scheduled
(
cron
=
"30 45 21 * * ?"
)
public
void
test111
()
{
log
.
info
(
"timeAllocationSrvTask========start"
);
srvTaskService
.
timeAllocationSrvTask
();
log
.
info
(
"timeAllocationSrvTask========end:{}"
);
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvOrganProjectMapper.xml
View file @
abc68df9
...
...
@@ -52,14 +52,18 @@
CATEGORY_TYPE,
CH_SRV_ORGAN_PROJECT.ITEM_TIMES,
ITEM_TIMES_TYPE,
CH_SRV_ORGAN_PROJECT.ITEM_PRICE,
CH_SRV_ORGAN_PROJECT.IS_CONF IS_NEED
CH_SRV_ORGAN_PROJECT.ITEM_PRICE
<if
test=
"programId == null"
>
,CH_SRV_ORGAN_PROJECT.IS_CONF IS_CONF
</if>
<if
test=
"programId != null"
>
,
SET_ID,
PLANNING_FREQUENCY,
PLANNING_FREQUENCY_TYPE,
CH_SRV_PROGRAM_SET.REMARK
CH_SRV_PROGRAM_SET.REMARK,
NVL(CH_SRV_PROGRAM_SET.IS_CONF, '0') IS_CONF
</if>
FROM CH_SRV_ORGAN_PROJECT
<if
test=
"programId != null"
>
...
...
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