Refactor document workflow and related UI state

This commit is contained in:
2026-07-16 19:07:09 +08:00
parent 1d12732646
commit d429a09531
22 changed files with 795 additions and 378 deletions

View File

@@ -1,20 +0,0 @@
package cn.code.nl.module.lms;
import cn.code.nl.framework.execute.biz.api.lms.LmsTaskCommonApi;
import cn.code.nl.framework.execute.biz.dto.TaskStatusCallApiReqDTO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
/**
*
* @Author: liyongde
* @Date: 2026/7/15 15:25
*/
@RestController // 提供 RESTful API 接口,给 Feign 调用
@Validated
public class DemoApi implements LmsTaskCommonApi {
@Override
public void doHandlePicked(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
}
}

View File

@@ -0,0 +1,80 @@
package cn.code.nl.module.lms.demo;
import cn.code.nl.framework.common.pojo.CommonResult;
import cn.code.nl.framework.execute.biz.api.lms.LmsTaskCommonApi;
import cn.code.nl.framework.execute.biz.dto.TaskStatusCallApiReqDTO;
import cn.code.nl.framework.execute.biz.vo.AcsApplyActionRespVO;
import com.alibaba.fastjson.JSON;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
import static cn.code.nl.framework.common.pojo.CommonResult.success;
/**
*
* @Author: liyongde
* @Date: 2026/7/15 15:25
*/
@RestController // 提供 RESTful API 接口,给 Feign 调用
@Validated
public class DemoApi implements LmsTaskCommonApi {
@Override
public CommonResult<AcsApplyActionRespVO> doHandlePicked(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
// 内层data赋值 "success"
return success(respVO);
}
@Override
public CommonResult<AcsApplyActionRespVO> doHandleApplyAgain(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
DemoRespVO demoRespVO = new DemoRespVO();
demoRespVO.setTargetPoint("A_10001");
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
// 内层data赋值 "success"
respVO.setData(JSON.parseObject(JSON.toJSONString(demoRespVO)));
return success(respVO);
}
@Override
public CommonResult<AcsApplyActionRespVO> doHandleRequestRelease(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
return success(respVO);
}
@Override
public CommonResult<AcsApplyActionRespVO> doHandleRequestPick(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
return success(respVO);
}
@Override
public CommonResult<AcsApplyActionRespVO> doHandleRequestLeave(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
return success(respVO);
}
@Override
public CommonResult<AcsApplyActionRespVO> doHandleRequestEnter(TaskStatusCallApiReqDTO taskStatusCallApiReqDTO) {
// 构建外层VO
AcsApplyActionRespVO respVO = new AcsApplyActionRespVO();
respVO.setTaskId(10001L);
respVO.setTaskCode("ACS20260716001");
return success(respVO);
}
}

View File

@@ -0,0 +1,13 @@
package cn.code.nl.module.lms.demo;
import lombok.Data;
/**
*
* @Author: liyongde
* @Date: 2026/7/16 17:51
*/
@Data
public class DemoRespVO {
private String targetPoint;
}

View File

@@ -1,4 +1,4 @@
package cn.code.nl.module.lms;
package cn.code.nl.module.lms.demo;
import cn.code.nl.framework.execute.core.AbstractTask;
import cn.code.nl.framework.execute.core.dto.TaskExecuteDTO;
@@ -23,4 +23,9 @@ public class DemoTask extends AbstractTask {
public void doHandleCancel(TaskExecuteDTO taskExecuteDTO) {
}
@Override
public String againApply(TaskExecuteDTO taskExecuteDTO) {
return "A_0001";
}
}