Refactor document workflow and related UI state
This commit is contained in:
@@ -22,7 +22,10 @@
|
||||
<groupId>cn.nl.cloud</groupId>
|
||||
<artifactId>nl-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.nl.cloud</groupId>
|
||||
<artifactId>nl-spring-boot-starter-execute</artifactId>
|
||||
</dependency>
|
||||
<!-- Web 相关 -->
|
||||
<dependency>
|
||||
<groupId>org.springdoc</groupId> <!-- 接口文档:使用最新版本的 Swagger 模型 -->
|
||||
|
||||
@@ -32,10 +32,6 @@
|
||||
<artifactId>nl-module-lms-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.nl.cloud</groupId>
|
||||
<artifactId>nl-spring-boot-starter-execute</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 业务组件 -->
|
||||
<dependency>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user