Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
3144c27b
Commit
3144c27b
authored
Apr 19, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加任务提交
parent
3f9096f1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
EmergencyTaskController.java
...amos/fas/business/controller/EmergencyTaskController.java
+13
-2
PlanStepServiceImpl.java
...n/amos/fas/business/service/impl/PlanStepServiceImpl.java
+7
-0
IPlanStepService.java
...oin/amos/fas/business/service/intfc/IPlanStepService.java
+2
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/EmergencyTaskController.java
View file @
3144c27b
...
...
@@ -7,8 +7,8 @@ import com.yeejoin.amos.fas.business.dao.mapper.EmergencyTaskRoleMapper;
import
com.yeejoin.amos.fas.business.feign.JcsFeign
;
import
com.yeejoin.amos.fas.business.service.intfc.IDictService
;
import
com.yeejoin.amos.fas.business.service.intfc.IEmergencyTaskService
;
import
com.yeejoin.amos.fas.business.service.intfc.IPlanStepService
;
import
com.yeejoin.amos.fas.business.vo.EmergencyRelationVo
;
import
com.yeejoin.amos.fas.common.enums.PlanTypeEnum
;
import
com.yeejoin.amos.fas.config.Permission
;
import
com.yeejoin.amos.fas.core.common.request.CommonPageable
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
...
...
@@ -55,6 +55,9 @@ public class EmergencyTaskController extends BaseController{
@Autowired
private
EmergencyTaskMapper
emergencyTaskMapper
;
@Autowired
private
IPlanStepService
planStepService
;
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"岗位人员树"
,
notes
=
"岗位人员树"
)
@RequestMapping
(
value
=
"/tree"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
tree
(){
...
...
@@ -156,13 +159,21 @@ public class EmergencyTaskController extends BaseController{
return
CommonResponseUtil
.
success
();
}
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增
树人员节点"
,
notes
=
"新增树人员节点
"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增
应急任务配置"
,
notes
=
"新增应急任务配置
"
)
@PostMapping
(
value
=
"/saveTaskConfig"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
saveTaskConfig
(
@RequestBody
EmergencyTaskContent
emergencyTaskContent
){
iEmergencyTaskService
.
saveTaskConfig
(
emergencyTaskContent
);
return
CommonResponseUtil
.
success
();
}
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询流程节点"
,
notes
=
"查询流程节点"
)
@GetMapping
(
value
=
"/findStep"
)
public
CommonResponse
findStep
(
@RequestParam
String
planType
){
planStepService
.
getPlanStepByParam
(
planType
);
return
CommonResponseUtil
.
success
(
planStepService
.
getPlanStepByParam
(
planType
));
}
@Permission
@ApiOperation
(
value
=
"根据ID删除数据"
,
notes
=
"根据ID删除数据"
)
@DeleteMapping
(
value
=
"/deleteById"
,
produces
=
"application/json;charset=UTF-8"
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanStepServiceImpl.java
View file @
3144c27b
...
...
@@ -64,6 +64,13 @@ public class PlanStepServiceImpl implements IPlanStepService {
}
@Override
public
List
<
PlanStepJsonVO
>
getPlanStepByParam
(
String
planType
)
{
String
json
=
emergencyTaskRoleMapper
.
getPlanStepInfoByType
(
planType
);
List
<
PlanStepJsonVO
>
result
=
JSONObject
.
parseArray
(
json
,
PlanStepJsonVO
.
class
);
return
result
;
}
@Override
public
void
initPlanStep
()
{
redisTemplate
.
delete
(
"planStep"
);
redisTemplate
.
opsForValue
().
set
(
"planStep"
,
getPlanStep
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanStepService.java
View file @
3144c27b
...
...
@@ -26,6 +26,8 @@ public interface IPlanStepService {
String
getPlanStep
();
List
<
PlanStepJsonVO
>
getPlanStepByParam
(
String
planType
);
void
initPlanStep
();
void
initPlanTask
();
...
...
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