From 1e0ffb4026328506fa3fe77fc6d9554dc667b681 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 08 十一月 2024 16:59:02 +0800
Subject: [PATCH] 普宁配置文件
---
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
index 9000ae5..4d2c4b7 100644
--- a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
+++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
@@ -7,6 +7,7 @@
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
+import com.fzzy.api.data.SyncProtocol;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
@@ -122,6 +123,9 @@
String result = "";
List<WhjlShareApi2001> list;
for (ApiConfs apiConf : apiConfs) {
+ if(!apiConf.getSyncProtocol().equals(SyncProtocol.FZZY_V40_WHJL.getCode())){
+ continue;
+ }
apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
if (null == apiService) {
continue;
@@ -133,16 +137,16 @@
if (responseDto.getSuccess() == 0) {
list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2001.class);
if(null != list && list.size() > 0){
- for (WhjlShareApi2001 whjlShareApi2001 : list) {
- whjlShareApi2001.setCzbz(Constant.CZBZ_U);
+ for (WhjlShareApi2001 shareData : list) {
+ shareData.setCzbz(Constant.CZBZ_U);
infoData = new ApiInfoData();
- infoData.setId(whjlShareApi2001.getSbflbm());
+ infoData.setId(shareData.getSbflbm());
infoData.setKqdm(apiConf.getKqdm());
infoData.setInteType(WhjlConstant.API_CATEGORY_20);
infoData.setInteId(WhjlConstant.API_CODE_2001);
infoData.setUpdateTime(new Date());
- infoData.setDataId(whjlShareApi2001.getSbflbm());
- infoData.setData(JSON.toJSONString(whjlShareApi2001));
+ infoData.setDataId(shareData.getSbflbm());
+ infoData.setData(JSON.toJSONString(shareData));
infoData.setCzbz(Constant.CZBZ_U);
apiInfoDataRep.save(infoData);
}
--
Gitblit v1.9.3