From 9f6dacf7b39e5aeba37d8faf575c9e56d8cbe51a Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期六, 11 十月 2025 13:35:42 +0800
Subject: [PATCH] 武汉黄陂军粮-质检报告共享接口同步及推送

---
 src/main/java/com/fzzy/push/impl/ComPushService12.java |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/fzzy/push/impl/ComPushService12.java b/src/main/java/com/fzzy/push/impl/ComPushService12.java
index 85ac8ea..d18ea29 100644
--- a/src/main/java/com/fzzy/push/impl/ComPushService12.java
+++ b/src/main/java/com/fzzy/push/impl/ComPushService12.java
@@ -46,7 +46,8 @@
     private Api1211Rep api1211Rep;
     @Autowired
     private Api1212Rep api1212Rep;
-
+    @Autowired
+    private Api1213Rep api1213Rep;
     /**
      * 1109 鏂囦欢淇℃伅鍚屾
      */
@@ -70,7 +71,7 @@
 
             if (responseDto.getSuccess() == 0) {
                 if (Constant.CZBZ_I.equals(data.getCzbz())) {
-                    api1201Rep.updateStatus(data.getId(), Constant.CZBZ_U);
+                    api1109Rep.updateStatus(data.getId(), Constant.CZBZ_U);
                 }
             }
         }
@@ -427,4 +428,32 @@
             }
         }
     }
+
+    /**
+     * 1213 灏佷粨纭鍗�
+     */
+    public void pushData1213(ApiRemoteService apiRemoteService, ApiParam param) {
+        //鑾峰彇瀹㈡埛淇℃伅
+        List<Api1213> list = api1213Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
+
+        if (null == list || list.isEmpty()) {
+            log.error("-----鏈幏鍙栧埌瀹㈡埛淇℃伅锛屼笉鎺ㄩ��-----");
+            return;
+        }
+        param.setInteCategory(Constant.API_CATEGORY_12);
+        param.setInteId(Constant.API_CODE_1213);
+
+        ResponseDto responseDto;
+        for (Api1213 data : list) {
+            param.setBizId(data.getBizId());
+            responseDto = apiRemoteService.pushData(param, data);
+            if (responseDto.getSuccess() == 0) {
+                if (Constant.CZBZ_I.equals(data.getCzbz())) {
+                    data.setCzbz(Constant.CZBZ_U);
+                    //鏇存柊鐘舵��
+                    api1213Rep.save(data);
+                }
+            }
+        }
+    }
 }

--
Gitblit v1.9.3