任务管理中返回的数据类型Bool-》Boolean

main
Comair 1 year ago
parent d5e9f8bd39
commit d5fea3c5ca
  1. 11
      shkj-wms/src/main/java/com/shkj/wms/controller/busin/TaskController.java

@ -9,7 +9,6 @@ import com.shkj.wms.plc.PlcEventTask;
import com.shkj.wms.plc.PlcEventTmpTask;
import com.shkj.wms.scheduled.ScheduledTasks;
import com.shkj.wms.service.IBusinEnptyContainerService;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@ -39,7 +38,7 @@ public class TaskController extends BaseController {
@Log(title = "手动调度任务流程",businessType = BusinessType.UPDATE)
@PostMapping("/exeTask")
@RepeatSubmit
public Result<Bool> exeTask(){
public Result<Boolean> exeTask(){
scheduledTasks.task();
return Result.ok();
}
@ -50,7 +49,7 @@ public class TaskController extends BaseController {
@Log(title = "执行PLC相关任务",businessType = BusinessType.UPDATE)
@PostMapping("/exePlcTmpTask")
@RepeatSubmit
public Result<Bool> exePlcTmpTask(){
public Result<Boolean> exePlcTmpTask(){
plcEventTmpTask.init();
return Result.ok();
}
@ -61,7 +60,7 @@ public class TaskController extends BaseController {
@Log(title = "执行PLC相关任务",businessType = BusinessType.UPDATE)
@PostMapping("/exePlcTask")
@RepeatSubmit
public Result<Bool> exePlcTask(){
public Result<Boolean> exePlcTask(){
plcEventTask.init();
return Result.ok();
}
@ -72,7 +71,7 @@ public class TaskController extends BaseController {
@Log(title = "空治具出库流程",businessType = BusinessType.UPDATE)
@PostMapping("/exeEmptyContainerFromWare")
@RepeatSubmit
public Result<Bool> exeEmptyContainerFromWare(){
public Result<Boolean> exeEmptyContainerFromWare(){
iBusinEnptyContainerService.emptyContainerFromWare();
return Result.ok();
}
@ -83,7 +82,7 @@ public class TaskController extends BaseController {
@Log(title = "空治具出库流程",businessType = BusinessType.UPDATE)
@PostMapping("/intask")
@RepeatSubmit
public Result<Bool> intask(Long taskId,Long containerId){
public Result<Boolean> intask(Long taskId,Long containerId){
scheduledTasks.inTask(taskId,containerId);
return Result.ok();
}

Loading…
Cancel
Save