zwl
2025-05-14 1b160b340bd6fe5f34cedbd01c80b9530d530d91
src/main/java/com/zy/asrs/task/TaskLogScheduler.java
@@ -81,14 +81,17 @@
                        .build()
                        .doPost();
                JSONObject jsonObject = JSON.parseObject(response);
                TaskWrkLog taskWrkLog = new TaskWrkLog(taskWrk);
                if (!wrkLogService.insert(taskWrkLog)) {
                    throw new CoolException("转历史档失败" + taskWrkLog);
                if(jsonObject.getInteger("ReturnStatus")==0){
                    TaskWrkLog taskWrkLog = new TaskWrkLog(taskWrk);
                    if (!wrkLogService.insert(taskWrkLog)) {
                        throw new CoolException("转历史档失败" + taskWrkLog);
                    }
                    if (!taskWrkService.deleteById(taskWrk)) {
                        throw new CoolException("任务档删除失败" + taskWrkLog);
                    }
                    bool = true;
                }
                if (!taskWrkService.deleteById(taskWrk)) {
                    throw new CoolException("任务档删除失败" + taskWrkLog);
                }
                bool = true;
            } catch (Exception e) {
                log.error(e.getMessage(), e);
                log.error("wcs手动完成任务上报wms失败{},返回值={}", taskWrk, response);