feat: 增加搬运任务业务防重能力(任务3)

This commit is contained in:
zhouz
2026-08-17 10:36:13 +08:00
parent 0331aca1a9
commit b55f8dfe13
5 changed files with 61 additions and 1 deletions

View File

@@ -51,6 +51,12 @@ public interface TransportTaskApi {
@Operation(summary = "根据 taskCode 查询任务")
CommonResult<TaskInfoDTO> getTaskByCode(@RequestParam("taskCode") String taskCode);
@GetMapping(PREFIX + "/getUnfinishedTaskByBiz")
@Operation(summary = "根据业务标识查询未完成任务")
CommonResult<TaskInfoDTO> getUnfinishedTaskByBiz(@RequestParam("ownerService") String ownerService,
@RequestParam("bizType") String bizType,
@RequestParam("bizId") String bizId);
@GetMapping(PREFIX + "/getRunningTaskByMaterialId")
@Operation(summary = "根据 materialId 和 ownerService 查询运行中任务")
CommonResult<List<TaskInfoDTO>> getRunningTaskByMaterialId(@RequestParam("materialId") Long materialId,