Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
d0a5ece1
Commit
d0a5ece1
authored
Jul 30, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ExtPlanController:业务代码迁入(2.x版本->4.1版本)--已全部编译通过
parent
d15e5f24
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
270 additions
and
3 deletions
+270
-3
ExtDistributeRecordVO.java
...a/com/yonde/dcs/plan/common/vo/ExtDistributeRecordVO.java
+6
-0
ExtPlanController.java
...com/yonde/dcs/plan/core/controller/ExtPlanController.java
+39
-0
ExtPlanService.java
.../java/com/yonde/dcs/plan/core/service/ExtPlanService.java
+24
-0
ExtPlanServiceImpl.java
.../yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
+201
-3
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/vo/ExtDistributeRecordVO.java
View file @
d0a5ece1
...
@@ -100,6 +100,12 @@ public class ExtDistributeRecordVO extends IdOnlyVO implements IdVO ,DxObjFileLi
...
@@ -100,6 +100,12 @@ public class ExtDistributeRecordVO extends IdOnlyVO implements IdVO ,DxObjFileLi
@JsonIgnore
@JsonIgnore
private
DxLogicDeleteVOEmbeddable
dxLogicDeleteEmbeddable
;
private
DxLogicDeleteVOEmbeddable
dxLogicDeleteEmbeddable
;
/**
* 分发记录对象Link模型集合
*/
@RelationProperty
(
refProperty
=
"source"
)
private
List
<
ExtDisReocredLinkVO
>
extDisReocredLink
;
/**
/**
* 显示名称
* 显示名称
*/
*/
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/controller/ExtPlanController.java
View file @
d0a5ece1
...
@@ -57,6 +57,45 @@ public class ExtPlanController<V extends ExtPlanVO, S extends ExtPlanService<V>>
...
@@ -57,6 +57,45 @@ public class ExtPlanController<V extends ExtPlanVO, S extends ExtPlanService<V>>
return
apiResult
;
return
apiResult
;
}
}
/**
* 修改计划状态
*
* @param state
* @param ids
* @return
*/
@ApiOperation
(
"计划驱动编制任务"
)
@GetMapping
(
value
=
"/changeState"
)
public
ApiResult
changeState
(
@RequestParam
String
state
,
@RequestParam
List
<
Long
>
ids
)
{
extPlanService
.
extChangeState
(
state
,
ids
);
return
ApiResult
.
ok
(
"启动计划成功"
);
}
/**
* 校验计划答复状态
*
* @param id
* @return
*/
@ApiOperation
(
"校验计划答复状态"
)
@GetMapping
(
value
=
"/checkReplayState"
)
public
ApiResult
checkReplayState
(
@RequestParam
Long
id
)
{
return
extPlanService
.
checkReplayState
(
id
);
}
/**
* 导出计划
* @param response
* @param ids
* @throws IOException
*/
@ApiOperation
(
value
=
"导出计划"
,
notes
=
"导出计划"
,
httpMethod
=
"GET"
)
@GetMapping
(
value
=
"/exportPlan"
)
public
void
exportPlan
(
HttpServletResponse
response
,
@RequestParam
(
"ids"
)
List
<
Long
>
ids
){
extPlanService
.
exportPlan
(
response
,
ids
);
}
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/ExtPlanService.java
View file @
d0a5ece1
...
@@ -43,4 +43,28 @@ public interface ExtPlanService<V extends ExtPlanVO> extends ExtPlanServiceShado
...
@@ -43,4 +43,28 @@ public interface ExtPlanService<V extends ExtPlanVO> extends ExtPlanServiceShado
ApiResult
insertPlan
(
MultipartFile
uploadFile
,
Long
projectId
);
ApiResult
insertPlan
(
MultipartFile
uploadFile
,
Long
projectId
);
/**
* 计划驱动编制任务
*
* @param state
* @param ids
*/
void
extChangeState
(
String
state
,
List
<
Long
>
ids
);
/**
* 校验答复状态
*
* @param id
* @return
*/
ApiResult
checkReplayState
(
Long
id
);
/**
* 导出计划
*
* @param response
* @param ids
*/
void
exportPlan
(
HttpServletResponse
response
,
List
<
Long
>
ids
);
}
}
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
View file @
d0a5ece1
This diff is collapsed.
Click to expand it.
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