From 84e6dc37bf0079f14fa4f69e892ece977d8b785f Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期三, 25 十月 2023 12:13:05 +0800 Subject: [PATCH] 类名修改 --- src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1107PR.java | 46 ++++++++++++++++++++++------------------------ 1 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1107PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1107PR.java index 407ba0b..59d6835 100644 --- a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1107PR.java +++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1107PR.java @@ -24,13 +24,12 @@ import java.util.List; /** - * 璐т綅淇℃伅 + * 寤掗棿淇℃伅 * * @Author:YAN */ @Component public class WhjlApi1107PR { - @Autowired private ApiCommonService apiCommonService; @@ -41,32 +40,32 @@ /** * 鑾峰彇鍒楄〃淇℃伅 - * whjlApi1107PR#listData + * whjlApi1106PR#listData * * @return */ @DataProvider public List<WhjlApi1107> listData() { - List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1107); + List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1106); if (null == result || result.isEmpty()) { return null; } List<WhjlApi1107> list = new ArrayList<>(); - WhjlApi1107 whjlApi1107; + WhjlApi1107 whjlApi1106; for (ApiInfoData infoData : result) { - whjlApi1107 = JSONObject.parseObject(infoData.getData(), WhjlApi1107.class); - whjlApi1107.setKqdm(infoData.getKqdm()); - whjlApi1107.setCzbz(infoData.getCzbz()); - whjlApi1107.setUpdateTime(infoData.getUpdateTime()); - whjlApi1107.setBizId(infoData.getDataId()); - list.add(whjlApi1107); + whjlApi1106 = JSONObject.parseObject(infoData.getData(), WhjlApi1107.class); + whjlApi1106.setKqdm(infoData.getKqdm()); + whjlApi1106.setCzbz(infoData.getCzbz()); + whjlApi1106.setUpdateTime(infoData.getUpdateTime()); + whjlApi1106.setBizId(infoData.getDataId()); + list.add(whjlApi1106); } return list; } /** * 鏇存柊鎴栦慨鏀� - * whjlApi1107PR#saveData + * whjlApi1106PR#saveData * * @param data * @return @@ -77,7 +76,7 @@ infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_11); - infoData.setInteId(WhjlConstant.API_CODE_1107); + infoData.setInteId(WhjlConstant.API_CODE_1106); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); infoData.setData(JSON.toJSONString(data)); @@ -89,7 +88,7 @@ /** * 鍒犻櫎 - * whjlApi1107PR#delData + * whjlApi1106PR#delData * * @param data * @return @@ -102,14 +101,14 @@ /** * 涓婁紶 - * whjlApi1107PR#pushData + * whjlApi1106PR#pushData * * @param items * @return */ @Expose public String pushData(List<WhjlApi1107> items) { - ResponseDto responseDto; + String result = ""; String kqdm = items.get(0).getKqdm(); @@ -120,7 +119,7 @@ } //灏佽鍙傛暟 - ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_11, WhjlConstant.API_CODE_1107); + ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_11, WhjlConstant.API_CODE_1106); //鑾峰彇瀹炵幇鎺ュ彛 ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol()); @@ -128,19 +127,18 @@ return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; } - //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� - responseDto = apiService.pushData(param, apiConf, items); - if (responseDto.getSuccess() == 0) { - //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� - ApiInfoData infoData; - for (WhjlApi1107 data : items) { + ResponseDto responseDto; + ApiInfoData infoData; + for (WhjlApi1107 data : items) { + responseDto = apiService.pushData(param, apiConf, data); + if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); infoData.setInteType(WhjlConstant.API_CATEGORY_11); - infoData.setInteId(WhjlConstant.API_CODE_1107); + infoData.setInteId(WhjlConstant.API_CODE_1106); infoData.setUpdateTime(new Date()); infoData.setDataId(data.getBizId()); -- Gitblit v1.9.3