Commit 1199a9af by 王志超

feat: 子工单topoId替换

parent b3d17586
Pipeline #86356 passed with stages
in 1 minute 40 seconds
...@@ -34,16 +34,6 @@ public class ChangeSubFlowController { ...@@ -34,16 +34,6 @@ public class ChangeSubFlowController {
private ChangeSubFlowBiz changeSubFlowBiz; private ChangeSubFlowBiz changeSubFlowBiz;
/** /**
* 发起变更执行工单
*
* @return
*/
@PostMapping("/create")
public AjaxResult<String> createAndSubmit(@RequestBody @Valid ChangeSubFlowCreateReq changeSubFlowCreateReq) {
return AjaxResult.success(changeSubFlowBiz.createAndSubmit(changeSubFlowCreateReq));
}
/**
* 变更行动工单列表查询,new * 变更行动工单列表查询,new
* *
* @param page 页码 * @param page 页码
......
...@@ -8,6 +8,8 @@ package com.netease.mail.yanxuan.change.web.controller; ...@@ -8,6 +8,8 @@ package com.netease.mail.yanxuan.change.web.controller;
import java.util.List; import java.util.List;
import com.netease.mail.yanxuan.change.biz.biz.ChangeSubFlowBiz;
import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeSubFlowCreateReq;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -29,6 +31,8 @@ import com.netease.mail.yanxuan.change.integration.qc.meta.QcCategoryVO; ...@@ -29,6 +31,8 @@ import com.netease.mail.yanxuan.change.integration.qc.meta.QcCategoryVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import javax.validation.Valid;
/** /**
* @Author zcwang * @Author zcwang
* @Date 2022/11/28 * @Date 2022/11/28
...@@ -47,6 +51,9 @@ public class TestController { ...@@ -47,6 +51,9 @@ public class TestController {
@Autowired @Autowired
private QCService qcService; private QCService qcService;
@Autowired
private ChangeSubFlowBiz changeSubFlowBiz;
// @PostMapping("/submit") // @PostMapping("/submit")
// public AjaxResult<Void> submit(Long id) { // public AjaxResult<Void> submit(Long id) {
// ChangeRecord record = changeFlowService.getById(id); // ChangeRecord record = changeFlowService.getById(id);
...@@ -102,4 +109,14 @@ public class TestController { ...@@ -102,4 +109,14 @@ public class TestController {
public AjaxResult<List<QcCategoryVO>> getQc(@RequestParam("itemId") Long itemId) { public AjaxResult<List<QcCategoryVO>> getQc(@RequestParam("itemId") Long itemId) {
return AjaxResult.success(qcService.getQcCategoryListByItemId(itemId)); return AjaxResult.success(qcService.getQcCategoryListByItemId(itemId));
} }
/**
* 发起变更执行工单
*
* @return
*/
@PostMapping("/create")
public AjaxResult<String> createAndSubmit(@RequestBody @Valid ChangeSubFlowCreateReq changeSubFlowCreateReq) {
return AjaxResult.success(changeSubFlowBiz.createAndSubmit(changeSubFlowCreateReq));
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment