From 72e7feddac4d5ff64ce28f08e95643f10f00af3d Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 04 三月 2024 21:40:50 +0800 Subject: [PATCH] 入库信息默认值 --- src/main/java/com/fzzy/push/sh2023/SH2023PushService14.java | 91 ++++++++++++++++++++++----------------------- 1 files changed, 45 insertions(+), 46 deletions(-) diff --git a/src/main/java/com/fzzy/push/sh2023/SH2023PushService14.java b/src/main/java/com/fzzy/push/sh2023/SH2023PushService14.java index 03e700a..bd8d7c3 100644 --- a/src/main/java/com/fzzy/push/sh2023/SH2023PushService14.java +++ b/src/main/java/com/fzzy/push/sh2023/SH2023PushService14.java @@ -6,12 +6,11 @@ import com.fzzy.api.dto.ResponseDto; import com.fzzy.api.entity.*; import com.fzzy.api.service.ApiRemoteService; -import com.fzzy.api.service.PushService11; +import com.fzzy.api.service.PushService14; import com.fzzy.api.view.repository.*; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; - import java.util.List; /** @@ -22,7 +21,7 @@ */ @Slf4j @Component -public class SH2023PushService14 implements PushService11 { +public class SH2023PushService14 implements PushService14 { @Autowired @@ -205,27 +204,27 @@ */ public void pushData2203(ApiRemoteService apiRemoteService, ApiParam param) { //鑾峰彇浜ゆ槗涓績鍚堝悓 - List<Api1201> list = api1201Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); - - if (null == list || list.isEmpty()) { - log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌杞崲璁″垝鏄庣粏锛屼笉鎺ㄩ��-----"); - return; - } - param.setInteCategory(Constant.API_CATEGORY_14); - param.setInteId(SH2023Constant.SH_2023_API_CODE_2203); - - ResponseDto responseDto; - for (Api1201 data : list) { - param.setBizId(data.getBizId()); - responseDto = apiRemoteService.pushData(param, data); - if (responseDto.getSuccess() == 0) { - if (Constant.CZBZ_I.equals(data.getCzbz())) { - data.setCzbz(Constant.CZBZ_U); - //鏇存柊鐘舵�� - api1201Rep.save(data); - } - } - } +// List<Api1201> list = api1201Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); +// +// if (null == list || list.isEmpty()) { +// log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌杞崲璁″垝鏄庣粏锛屼笉鎺ㄩ��-----"); +// return; +// } +// param.setInteCategory(Constant.API_CATEGORY_14); +// param.setInteId(SH2023Constant.SH_2023_API_CODE_2203); +// +// ResponseDto responseDto; +// for (Api1201 data : list) { +// param.setBizId(data.getBizId()); +// responseDto = apiRemoteService.pushData(param, data); +// if (responseDto.getSuccess() == 0) { +// if (Constant.CZBZ_I.equals(data.getCzbz())) { +// data.setCzbz(Constant.CZBZ_U); +// //鏇存柊鐘舵�� +// api1201Rep.save(data); +// } +// } +// } } /** @@ -233,27 +232,27 @@ */ public void pushData2204(ApiRemoteService apiRemoteService, ApiParam param) { //鑾峰彇瀹氬寲姘存楠� - List<Api1310> list = api1310Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); - - if (null == list || list.isEmpty()) { - log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌瀹氬寲姘存楠岋紝涓嶆帹閫�-----"); - return; - } - param.setInteCategory(Constant.API_CATEGORY_14); - param.setInteId(SH2023Constant.SH_2023_API_CODE_2204); - - ResponseDto responseDto; - for (Api1310 data : list) { - param.setBizId(data.getBizId()); - responseDto = apiRemoteService.pushData(param, data); - if (responseDto.getSuccess() == 0) { - if (Constant.CZBZ_I.equals(data.getCzbz())) { - - data.setCzbz(Constant.CZBZ_U); - //鏇存柊鐘舵�� - api1310Rep.save(data); - } - } - } +// List<Api1310> list = api1310Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); +// +// if (null == list || list.isEmpty()) { +// log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌瀹氬寲姘存楠岋紝涓嶆帹閫�-----"); +// return; +// } +// param.setInteCategory(Constant.API_CATEGORY_14); +// param.setInteId(SH2023Constant.SH_2023_API_CODE_2204); +// +// ResponseDto responseDto; +// for (Api1310 data : list) { +// param.setBizId(data.getBizId()); +// responseDto = apiRemoteService.pushData(param, data); +// if (responseDto.getSuccess() == 0) { +// if (Constant.CZBZ_I.equals(data.getCzbz())) { +// +// data.setCzbz(Constant.CZBZ_U); +// //鏇存柊鐘舵�� +// api1310Rep.save(data); +// } +// } +// } } } -- Gitblit v1.9.3