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
dfdf5288
Commit
dfdf5288
authored
Mar 09, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务方案
parent
51e4721e
Hide 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 @
dfdf5288
...
@@ -60,7 +60,7 @@ public class ProgramSetAndProjectVo {
...
@@ -60,7 +60,7 @@ public class ProgramSetAndProjectVo {
/**
/**
* 是否配置 (是:1;否:0)
* 是否配置 (是:1;否:0)
*/
*/
private
Short
isConf
=
1
;
private
Short
isConf
;
/**
/**
* 计划频次
* 计划频次
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvProgramController.java
View file @
dfdf5288
...
@@ -144,7 +144,7 @@ public class SrvProgramController {
...
@@ -144,7 +144,7 @@ public class SrvProgramController {
}
else
{
}
else
{
List
<
ProgramSetAndProjectVo
>
programSetAndProjectVos
=
programDetailVo
.
getProgramSetAndProjectVos
();
List
<
ProgramSetAndProjectVo
>
programSetAndProjectVos
=
programDetailVo
.
getProgramSetAndProjectVos
();
for
(
ProgramSetAndProjectVo
programSetAndProjectVo
:
programSetAndProjectVos
)
{
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
);
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 @
dfdf5288
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
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.
Service
;
import
org.springframework.stereotype.
Component
;
/**
/**
* @author zwl
* @author zwl
* @ClassName SrvTaskScheduled
ServiceImpl
* @ClassName SrvTaskScheduled
Controller
* @description
* @description
* @date 2023/3/
2 14:37
* @date 2023/3/
9 21:08
**/
**/
@Service
@Component
@EnableAsync
@Slf4j
@Slf4j
public
class
SrvTaskScheduled
ServiceImpl
{
public
class
SrvTaskScheduled
Controller
{
@Autowired
@Autowired
private
SrvTaskService
srvTaskService
;
private
SrvTaskService
srvTaskService
;
@Scheduled
(
cron
=
"30
20 1
1 * * ?"
)
@Scheduled
(
cron
=
"30
50 2
1 * * ?"
)
public
void
timeAllocationSrvTask
()
{
public
void
timeAllocationSrvTask
()
{
log
.
info
(
"timeAllocationSrvTask========start"
);
log
.
info
(
"timeAllocationSrvTask========start"
);
srvTaskService
.
timeAllocationSrvTask
();
srvTaskService
.
timeAllocationSrvTask
();
log
.
info
(
"timeAllocationSrvTask========end:{}"
);
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 @
dfdf5288
...
@@ -52,14 +52,18 @@
...
@@ -52,14 +52,18 @@
CATEGORY_TYPE,
CATEGORY_TYPE,
CH_SRV_ORGAN_PROJECT.ITEM_TIMES,
CH_SRV_ORGAN_PROJECT.ITEM_TIMES,
ITEM_TIMES_TYPE,
ITEM_TIMES_TYPE,
CH_SRV_ORGAN_PROJECT.ITEM_PRICE,
CH_SRV_ORGAN_PROJECT.ITEM_PRICE
CH_SRV_ORGAN_PROJECT.IS_CONF IS_NEED
<if
test=
"programId == null"
>
,CH_SRV_ORGAN_PROJECT.IS_CONF IS_CONF
</if>
<if
test=
"programId != null"
>
<if
test=
"programId != null"
>
,
,
SET_ID,
SET_ID,
PLANNING_FREQUENCY,
PLANNING_FREQUENCY,
PLANNING_FREQUENCY_TYPE,
PLANNING_FREQUENCY_TYPE,
CH_SRV_PROGRAM_SET.REMARK
CH_SRV_PROGRAM_SET.REMARK,
NVL(CH_SRV_PROGRAM_SET.IS_CONF, '0') IS_CONF
</if>
</if>
FROM CH_SRV_ORGAN_PROJECT
FROM CH_SRV_ORGAN_PROJECT
<if
test=
"programId != null"
>
<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