Commit 1199a9af by 王志超

feat: 子工单topoId替换

parent b3d17586
Pipeline #86356 passed with stages
in 1 minute 40 seconds
......@@ -34,16 +34,6 @@ public class ChangeSubFlowController {
private ChangeSubFlowBiz changeSubFlowBiz;
/**
* 发起变更执行工单
*
* @return
*/
@PostMapping("/create")
public AjaxResult<String> createAndSubmit(@RequestBody @Valid ChangeSubFlowCreateReq changeSubFlowCreateReq) {
return AjaxResult.success(changeSubFlowBiz.createAndSubmit(changeSubFlowCreateReq));
}
/**
* 变更行动工单列表查询,new
*
* @param page 页码
......
......@@ -8,6 +8,8 @@ package com.netease.mail.yanxuan.change.web.controller;
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.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -29,6 +31,8 @@ import com.netease.mail.yanxuan.change.integration.qc.meta.QcCategoryVO;
import lombok.extern.slf4j.Slf4j;
import javax.validation.Valid;
/**
* @Author zcwang
* @Date 2022/11/28
......@@ -47,6 +51,9 @@ public class TestController {
@Autowired
private QCService qcService;
@Autowired
private ChangeSubFlowBiz changeSubFlowBiz;
// @PostMapping("/submit")
// public AjaxResult<Void> submit(Long id) {
// ChangeRecord record = changeFlowService.getById(id);
......@@ -102,4 +109,14 @@ public class TestController {
public AjaxResult<List<QcCategoryVO>> getQc(@RequestParam("itemId") Long 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