Commit f7f22054 by “zcwang”

add: 测试待办

parent 740576ad
......@@ -191,7 +191,7 @@ public class ChangeFlowBiz {
* 创建代办
* @param entity
*/
private void createSupplierTodoTask(ChangeRecord entity) {
public void createSupplierTodoTask(ChangeRecord entity) {
String changeCommander = entity.getChangeCommander();
if (StringUtils.isNotEmpty(changeCommander)) {
String flowId = String.valueOf(entity.getFlowId());
......@@ -208,7 +208,7 @@ public class ChangeFlowBiz {
* 完成代办
* @param entity
*/
private void finishSupplierTodoTask(ChangeRecord entity) {
public void finishSupplierTodoTask(ChangeRecord entity) {
String changeCommander = entity.getChangeCommander();
String flowId = String.valueOf(entity.getFlowId());
log.info("[finishSupplierTodoTask] taskFlowId={}, supplierId={}", flowId, changeCommander);
......
......@@ -6,7 +6,7 @@ package com.netease.mail.yanxuan.change.common.enums;
* @author dmx
*/
public enum SupplierTodoTaskTypeEnum {
QC_CHANGE(200, "变更工单处理");
QC_CHANGE(101, "变更工单处理");
SupplierTodoTaskTypeEnum(Integer value, String desc) {
this.value = value;
......
/**
* @(#)TestController.java, 2022/11/28.
* <p/>
* Copyright 2022 Netease, Inc. All rights reserved.
* NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.netease.mail.yanxuan.change.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.netease.mail.yanxuan.change.biz.biz.ChangeFlowBiz;
import com.netease.mail.yanxuan.change.common.bean.AjaxResult;
import com.netease.mail.yanxuan.change.dal.entity.ChangeRecord;
import lombok.extern.slf4j.Slf4j;
/**
* @Author zcwang
* @Date 2022/11/28
*/
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
@Autowired
private ChangeFlowBiz changeFlowBiz;
@PostMapping("/createToDo")
public AjaxResult<Void> createTodoTask(ChangeRecord entity) {
log.info("[createToDoTask] entity:{}", JSON.toJSONString(entity));
changeFlowBiz.createSupplierTodoTask(entity);
return AjaxResult.success();
}
@PostMapping("/finishToDo")
public AjaxResult<Void> finishTodoTask(ChangeRecord entity) {
log.info("[createToDoTask] entity:{}", JSON.toJSONString(entity));
changeFlowBiz.createSupplierTodoTask(entity);
return AjaxResult.success();
}
}
\ 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