From 954480166aad6d24c9e9889906a0edf762f0da2a Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 10 二月 2025 16:32:56 +0800
Subject: [PATCH] 优化库存同步

---
 src/main/java/com/fzzy/api/view/pr/Api1301PR.java |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/fzzy/api/view/pr/Api1301PR.java b/src/main/java/com/fzzy/api/view/pr/Api1301PR.java
index 5a7f644..6c7f55a 100644
--- a/src/main/java/com/fzzy/api/view/pr/Api1301PR.java
+++ b/src/main/java/com/fzzy/api/view/pr/Api1301PR.java
@@ -115,9 +115,6 @@
         Api1301 data = new Api1301();
         BeanUtils.copyProperties(entity, data);
 
-        if (StringUtils.isEmpty(data.getId())) {
-            data.setId(ContextUtil.getUUID());
-        }
         api1301Rep.save(data);
     }
 
@@ -130,7 +127,7 @@
     @Expose
     public String delData(Api1301 data) {
 
-        api1301Rep.deleteById(data.getId());
+        api1301Rep.deleteById(data.getFxdbm());
 
         return null;
     }
@@ -170,9 +167,6 @@
         ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
         if (null == apiService) return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触";
 
-        if (PushProtocol.SB_SH_2023.getCode().equals(apiConf.getPushProtocol())) {
-            return pushDataList(items, apiService, apiConf);
-        }
         return pushDataSingle(items, apiService, apiConf);
     }
 
@@ -197,9 +191,8 @@
             responseDto = apiService.pushData(param, apiConf, d);
             result += responseDto.toString();
             if (responseDto.getSuccess() == 0) {
-                //todo 浠h〃涓婁紶鎴愬姛 ,鍚庢湡闇�瑕佷繚瀛樻棩蹇�
-                if ("i".equals(d.getCzbz())) {
-                    d.setCzbz("u");
+                if (Constant.CZBZ_I.equals(d.getCzbz())) {
+                    d.setCzbz(Constant.CZBZ_U);
                     api1301Rep.save(d);
                 }
             }

--
Gitblit v1.9.3