自动化立体仓库 - WMS系统
zhangc
2025-01-07 ce43df438a4bbef5b9ffaed0a33a97db6e88fbf1
src/main/java/com/zy/asrs/task/WorkMastScheduler.java
@@ -26,7 +26,8 @@
    @Autowired
    private WorkMastHandler workMastHandler;
    @Scheduled(cron = "0/3 * * * * ? ")
    @Scheduled(fixedDelay = 60000)
    //@Scheduled(cron = "0/1 * * * * ? ")
    private void execute(){
        List<WrkMast> wrkMasts = wrkMastService.selectToBeCompleteData();
        if (wrkMasts.isEmpty()) {
@@ -36,6 +37,9 @@
            ReturnT<String> returnT = workMastHandler.start(wrkMast);
            if (!returnT.isSuccess()) {
                wrkMast.setUpdMk("X");
                if (returnT.getMsg().length() > 255) {
                    returnT.setMsg(returnT.getMsg().substring(0, 150));
                }
                wrkMast.setErrorMemo(returnT.getMsg());
                wrkMast.setErrorTime(new Date());
                if (!wrkMastService.updateById(wrkMast)) {