#
1
2025-05-10 2cf9b53834bf61455fffd322b0201b3d0080577a
src/main/java/com/zy/asrs/task/TaskLogScheduler.java
@@ -54,16 +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("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)