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/WhjlApi1112PR.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1111PR.java b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1112PR.java similarity index 91% rename from src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1111PR.java rename to src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1112PR.java index e33729b..52d5571 100644 --- a/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1111PR.java +++ b/src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1112PR.java @@ -15,7 +15,7 @@ import com.fzzy.api.service.ApiRemoteService; import com.fzzy.api.view.repository.ApiInfoDataRep; import com.fzzy.otherview.whhpjl.WhjlConstant; -import com.fzzy.otherview.whhpjl.dto.WhjlApi1111; +import com.fzzy.otherview.whhpjl.dto.WhjlApi1112; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -29,7 +29,7 @@ * @Author:YAN */ @Component -public class WhjlApi1111PR { +public class WhjlApi1112PR { @Autowired @@ -46,15 +46,15 @@ * @return */ @DataProvider - public List<WhjlApi1111> listData() { + public List<WhjlApi1112> listData() { List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1111); if (null == result || result.isEmpty()) { return null; } - List<WhjlApi1111> list = new ArrayList<>(); - WhjlApi1111 whjlApi1111; + List<WhjlApi1112> list = new ArrayList<>(); + WhjlApi1112 whjlApi1111; for (ApiInfoData infoData : result) { - whjlApi1111 = JSONObject.parseObject(infoData.getData(), WhjlApi1111.class); + whjlApi1111 = JSONObject.parseObject(infoData.getData(), WhjlApi1112.class); whjlApi1111.setKqdm(infoData.getKqdm()); whjlApi1111.setCzbz(infoData.getCzbz()); whjlApi1111.setUpdateTime(infoData.getUpdateTime()); @@ -72,7 +72,7 @@ * @return */ @DataResolver - public void saveData(WhjlApi1111 data) { + public void saveData(WhjlApi1112 data) { ApiInfoData infoData = new ApiInfoData(); infoData.setId(data.getBizId()); infoData.setKqdm(data.getKqdm()); @@ -95,7 +95,7 @@ * @return */ @Expose - public String delData(WhjlApi1111 data) { + public String delData(WhjlApi1112 data) { apiInfoDataRep.deleteById(data.getBizId()); return null; } @@ -108,7 +108,7 @@ * @return */ @Expose - public String pushData(List<WhjlApi1111> items) { + public String pushData(List<WhjlApi1112> items) { String result = ""; @@ -130,7 +130,7 @@ ApiInfoData infoData; ResponseDto responseDto; - for (WhjlApi1111 data : items) { + for (WhjlApi1112 data : items) { responseDto = apiService.pushData(param, apiConf, data); if (responseDto.getSuccess() == 0) { if (Constant.CZBZ_I.equals(data.getCzbz())) { -- Gitblit v1.9.3