#
1
2025-05-11 ddb1d3cc65d174d768912ee08f4d08d719c197d0
src/main/java/com/zy/asrs/task/TaskLogScheduler.java
@@ -54,17 +54,19 @@
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute() throws IOException {
        for (TaskWrk taskWrk : taskWrkService.selectToBeHistoryData()) {
        List<TaskWrk> taskWrkList = taskWrkService.selectToBeHistoryData();
        for (TaskWrk taskWrk : taskWrkList) {
            JSONObject jsonObject = null;
            String response = null;
            boolean success = false;
            HashMap<String, Object> map = new HashMap<>();
            try {
                map.put("taskNo", taskWrk.getTaskNo());
                map.put("status",taskWrk.getStatus());
                map.put("ioType", taskWrk.getIoType());
                map.put("barcode", taskWrk.getBarcode());
                map.put("reportTime", new Date());
                map.put("taskNo",taskWrk.getTaskNo());
                map.put("taskStatus",taskWrk.getStatus());
                map.put("ioType",taskWrk.getIoTypeWms());
                map.put("barCode",taskWrk.getBarcode());
                map.put("reportTime",new Date());
                map.put("weight",taskWrk.getScWeight().doubleValue());
                response = new HttpHandler.Builder()
                        .setUri(wmsUrl)
                        .setPath(taskStatusFeedbackPath)