From abd0a1d82cbfedcc826007f808800a4a3db58902 Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期五, 15 九月 2023 18:22:02 +0800
Subject: [PATCH] 优化报文接口查询

---
 src/main/java/com/fzzy/otherview/sh2023/pr/SHApi2104PR.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/fzzy/otherview/sh2023/pr/SHApi2104PR.java b/src/main/java/com/fzzy/otherview/sh2023/pr/SHApi2104PR.java
index f234eda..5a2de76 100644
--- a/src/main/java/com/fzzy/otherview/sh2023/pr/SHApi2104PR.java
+++ b/src/main/java/com/fzzy/otherview/sh2023/pr/SHApi2104PR.java
@@ -112,7 +112,7 @@
     @DataResolver
     public void saveData(SH2023Api2104 data) {
         ApiInfoData infoData;
-        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2101, data.getBydh());
+        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2101, data.getBydh(),data.getKqdm());
         if (apiInfoList.size() != 0) {
             infoData = apiInfoList.get(0);
             infoData.setData(JSON.toJSONString(data));
@@ -135,7 +135,7 @@
      */
     @Expose
     public void delData(SH2023Api2104 data) {
-        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh());
+        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh(),data.getKqdm());
         apiInfoDataRep.deleteById(apiInfoList.get(0).getId());
     }
 
@@ -147,7 +147,7 @@
         if (null == data) {
             return "鏃犳暟鎹墽琛�";
         }
-        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh());
+        List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh(),data.getKqdm());
         data.setCzbz(Constant.CZBZ_D);
         apiInfoDataRep.updateStatus(apiInfoList.get(0).getId(), JSON.toJSONString(data), Constant.CZBZ_D);
         return null;
@@ -182,7 +182,7 @@
             for (SH2023Api2104 data : items) {
                 if (Constant.CZBZ_I.equals(data.getCzbz())) {
                     //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵��
-                    List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh());
+                    List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2104, data.getBydh(),data.getKqdm());
                     data.setCzbz(Constant.CZBZ_U);
                     infoData = apiInfoList.get(0);
                     infoData.setUpdateTime(new Date());

--
Gitblit v1.9.3