啊鑫
2025-02-15 ccbf66ef68ea3c96d81dd2c456824900b5020eeb
协客云的三个接口修改
已修改1个文件
20 ■■■■ 文件已修改
src/main/java/com/gs/xky/service/XkyService.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/gs/xky/service/XkyService.java
@@ -38,15 +38,15 @@
        XkyCommonParam param = XkyCommonParam.GetInit();
        // 计算五分钟前的时间戳
        long startDate = currentTimeMillis - (65 * 60 * 1000); // 5 分钟 = 5 * 60 * 1000 毫秒
        long startDate = currentTimeMillis - (5 * 60 * 1000); // 5 分钟 = 5 * 60 * 1000 毫秒
        // 创建 BodyParam 对象并赋值
        BodyParam bodyParam = new BodyParam();
        bodyParam.setStartDate(startDate);
        bodyParam.setEndDate(currentTimeMillis);
        bodyParam.setErpCode(DataAcquisitionConfiguration.TEST_ERP_CODE);
        bodyParam.setStatus(new int[]{1});
        bodyParam.setLogisticsStatus(2);
        bodyParam.setStatus(new int[]{1, 4, 6});
//        bodyParam.setLogisticsStatus(2);
        param.setBody(bodyParam);
@@ -65,7 +65,7 @@
        deliveryNoList.forEach(deliveryNo -> {
            try {
                if ("4".equals(deliveryNo.getStatus()) || "8".equals(deliveryNo.getStatus())) {
                if ("6".equals(deliveryNo.getStatus()) || "0".equals(deliveryNo.getLogisticsStatus())) {
                    deliveryNoticeWrapper.clear();
                    updateWrapper.clear();
                    updateWrapper1.clear();
@@ -82,15 +82,15 @@
                        barcodeInformationService.remove(updateWrapper1);
                    }
                } else if ("2".equals(deliveryNo.getLogisticsStatus())) {
                    XkyDetail detail = getDetail(deliveryNo.getDeliveryNo());
                    deliveryNoticeService.saveDeliveryNotice(detail);
                    List<BarcodeDeliveryNo> barcodeDeliveryNos = GetBarcodeInformation(deliveryNo.getDeliveryNo());
                    barcodeInformationService.SaveBarcodeInformation(barcodeDeliveryNos, deliveryNo.getDeliveryNo());
                    deliveryNoticeService.callPdaReceiptBtn("送货单签收[BTNOK[PL017[" + deliveryNo.getDeliveryNo(), "");
                }
                XkyDetail detail = getDetail(deliveryNo.getDeliveryNo());
                deliveryNoticeService.saveDeliveryNotice(detail);
                List<BarcodeDeliveryNo> barcodeDeliveryNos = GetBarcodeInformation(deliveryNo.getDeliveryNo());
                barcodeInformationService.SaveBarcodeInformation(barcodeDeliveryNos, deliveryNo.getDeliveryNo());
                deliveryNoticeService.callPdaReceiptBtn("送货单签收[BTNOK[PL017[" + deliveryNo.getDeliveryNo(), "");
            } catch (IOException e) {
                throw new RuntimeException(e);
            }