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/push/sh2023/SH2023PushService12.java | 504 +++++--------------------------------------------------
1 files changed, 46 insertions(+), 458 deletions(-)
diff --git a/src/main/java/com/fzzy/push/sh2023/SH2023PushService12.java b/src/main/java/com/fzzy/push/sh2023/SH2023PushService12.java
index b880006..0855589 100644
--- a/src/main/java/com/fzzy/push/sh2023/SH2023PushService12.java
+++ b/src/main/java/com/fzzy/push/sh2023/SH2023PushService12.java
@@ -1,17 +1,13 @@
package com.fzzy.push.sh2023;
-import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.data.PushProtocol;
-import com.fzzy.api.dto.ResponseDto;
-import com.fzzy.api.entity.*;
-import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.service.PushService12;
-import com.fzzy.api.view.repository.*;
+import com.fzzy.push.impl.ComPushService12;
+import com.fzzy.push.impl.ComPushService99;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
-import java.util.List;
/**
* 涓婃捣甯傚钩鍙�2023鐗�-鍩虹鏁版嵁涓婁紶
@@ -27,32 +23,9 @@
@Autowired
private SH2023ApiRemoteService apiRemoteService;
@Autowired
- private Api1201Rep api1201Rep;
+ private ComPushService12 pushService12;
@Autowired
- private Api1202Rep api1202Rep;
- @Autowired
- private Api1203Rep api1203Rep;
- @Autowired
- private Api1204Rep api1204Rep;
- @Autowired
- private Api1205Rep api1205Rep;
- @Autowired
- private Api1206Rep api1206Rep;
- @Autowired
- private Api1207Rep api1207Rep;
- @Autowired
- private Api1208Rep api1208Rep;
- @Autowired
- private Api1209Rep api1209Rep;
- @Autowired
- private Api1210Rep api1210Rep;
- @Autowired
- private Api1211Rep api1211Rep;
- @Autowired
- private Api1212Rep api1212Rep;
- @Autowired
- private ApiInfoDataRep apiInfoDataRep;
-
+ private ComPushService99 pushService99;
@Override
public String getProtocol() {
return PushProtocol.SB_SH_2023.getCode();
@@ -62,434 +35,49 @@
public void pushData(ApiParam param) {
log.info("------->>>>绮璐攢 鎺ュ彛妯″潡涓婃姤寮�濮�");
-// //鎺ㄩ�佸悎鍚屼俊鎭�
-// this.pushData1201(apiRemoteService, param);
-// //绮鍏ュ簱淇℃伅
-// this.pushData1202(apiRemoteService, param);
-// //绮鍏ュ簱妫�楠屼俊鎭�
-// this.pushData1203(apiRemoteService, param);
-// //绮鍏ュ簱缁撶畻淇℃伅
-// this.pushData1204(apiRemoteService, param);
-// //绮鍑哄簱淇℃伅
-// this.pushData1205(apiRemoteService, param);
-// //绮鍑哄簱缁撶畻淇℃伅
-// this.pushData1206(apiRemoteService, param);
-// //鍊掍粨鍊掑嚭
-// this.pushData1207(apiRemoteService, param);
-// //绮搴撳瓨
-// this.pushData1208(apiRemoteService, param);
-// //鎹熸孩鍗�
-// this.pushData1209(apiRemoteService, param);
-// //绮鎬ц川杞彉鍗�
-// this.pushData1210(apiRemoteService, param);
-// //璐﹂潰搴撳瓨
-// this.pushData1211(apiRemoteService, param);
-// //瀹㈡埛淇℃伅
-// this.pushData1212(apiRemoteService, param);
+ //瀹㈡埛淇℃伅
+ pushService12.pushData1212(apiRemoteService, param);
+
+ //鍚堝悓
+ pushService12.pushData1201(apiRemoteService, param);
+
+ //鍏ュ簱鏁版嵁 + 鍏ュ簱杩囩
+ pushService12.pushData1202(apiRemoteService, param);
+
+ //鍏ュ簱璐ㄦ
+ pushService12.pushData1203(apiRemoteService, param);
+
+ //鍏ュ簱缁撶畻
+ pushService12.pushData1204(apiRemoteService, param);
+
+ //鍑哄簱鏁版嵁 + 鍑哄簱杩囩
+ pushService12.pushData1205(apiRemoteService, param);
+
+ //鍑哄簱缁撶畻
+ pushService12.pushData1206(apiRemoteService, param);
+
+ //鍊掍粨
+ pushService12.pushData1207(apiRemoteService, param);
+
+ //鎹熸孩鍗�
+ pushService12.pushData1209(apiRemoteService, param);
+
+ //绮搴撳瓨鏁版嵁
+ pushService12.pushData1208(apiRemoteService, param);
+
+ //鎬ц川杞彉
+ pushService12.pushData1210(apiRemoteService, param);
+
+ //璐﹂潰搴撳瓨
+ pushService12.pushData1211(apiRemoteService, param);
+
+ //鏂囦欢
+ pushService12.pushData1109(apiRemoteService, param);
+
+ pushService99.pushData2101(apiRemoteService, param);
+ pushService99.pushData2102(apiRemoteService, param);
+ pushService99.pushData2104(apiRemoteService, param);
log.info("------->>>>绮璐攢 鎺ュ彛妯″潡涓婃姤缁撴潫");
- }
-
- /**
- * 1201 鍚堝悓淇℃伅
- */
- public void pushData1201(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_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1201);
-
- 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);
- }
- }
- }
- }
-
- /**
- * 1202 绮鍏ュ簱淇℃伅
- */
- public void pushData1202(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮鍏ュ簱淇℃伅
- List<Api1202> list = api1202Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮鍏ュ簱淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1202);
-
- ResponseDto responseDto;
- for (Api1202 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);
- //鏇存柊鐘舵��
- api1202Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1203 绮鍏ュ簱妫�楠屼俊鎭�
- */
- public void pushData1203(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮鍏ュ簱妫�楠屼俊鎭�
- List<Api1203> list = api1203Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮鍏ュ簱妫�楠屼俊鎭紝涓嶆帹閫�-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1203);
-
- ResponseDto responseDto;
- for (Api1203 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);
- //鏇存柊鐘舵��
- api1203Rep.save(data);
- }
- }
- }
-
- }
-
- /**
- * 1204 绮鍏ュ簱缁撶畻淇℃伅
- */
- public void pushData1204(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮鍏ュ簱缁撶畻淇℃伅
- List<Api1204> list = api1204Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮鍏ュ簱缁撶畻淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1204);
-
- ResponseDto responseDto;
- for (Api1204 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);
- //鏇存柊鐘舵��
- api1204Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1205 绮鍑哄簱淇℃伅
- */
- public void pushData1205(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮鍑哄簱淇℃伅
- List<Api1205> list = api1205Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮鍑哄簱淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1205);
-
- ResponseDto responseDto;
- for (Api1205 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);
- //鏇存柊鐘舵��
- api1205Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1206 绮鍑哄簱缁撶畻淇℃伅
- */
- public void pushData1206(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮鍑哄簱缁撶畻淇℃伅
- List<Api1206> list = api1206Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮鍑哄簱缁撶畻淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1206);
- ResponseDto responseDto;
- for (Api1206 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);
- //鏇存柊鐘舵��
- api1206Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1207 鍊掍粨鍊掑嚭
- */
- public void pushData1207(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇鍊掍粨淇℃伅
- List<Api1207> list = api1207Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌鍊掍粨淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1207);
-
- ResponseDto responseDto;
- for (Api1207 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);
- //鏇存柊鐘舵��
- api1207Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1208 绮搴撳瓨
- */
- public void pushData1208(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇绮搴撳瓨淇℃伅
- List<Api1208> list = api1208Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮搴撳瓨淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1208);
-
- ResponseDto responseDto;
- for (Api1208 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);
- //鏇存柊鐘舵��
- api1208Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1209 鎹熸孩鍗�
- */
- public void pushData1209(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇鎹熺泭鍗曚俊鎭�
- List<Api1209> list = api1209Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮搴撳瓨淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1209);
-
- ResponseDto responseDto;
- for (Api1209 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);
- //鏇存柊鐘舵��
- api1209Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1210 绮鎬ц川杞彉鍗�
- */
- public void pushData1210(ApiRemoteService apiRemoteService, ApiParam param) {
- //绮鎬ц川杞彉鍗�
- List<Api1210> list = api1210Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮搴撳瓨淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1210);
-
- ResponseDto responseDto;
- for (Api1210 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);
- //鏇存柊鐘舵��
- api1210Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1211 璐﹂潰搴撳瓨
- */
- public void pushData1211(ApiRemoteService apiRemoteService, ApiParam param) {
- //TODO
- //绮鎬ц川杞彉鍗�
- List<Api1211> list = api1211Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌绮搴撳瓨淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1210);
-
- ResponseDto responseDto;
- for (Api1211 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);
- //鏇存柊鐘舵��
- api1211Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 1212 瀹㈡埛淇℃伅
- */
- public void pushData1212(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇瀹㈡埛淇℃伅
- List<Api1212> list = api1212Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
-
- if (null == list || list.isEmpty()) {
- log.error("-----涓婃捣甯傚钩鍙�2023鐗堬細鏈幏鍙栧埌瀹㈡埛淇℃伅锛屼笉鎺ㄩ��-----");
- return;
- }
- param.setInteCategory(Constant.API_CATEGORY_12);
- param.setInteId(SH2023Constant.SH_2023_API_CODE_1212);
-
- ResponseDto responseDto;
- for (Api1212 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);
- //鏇存柊鐘舵��
- api1212Rep.save(data);
- }
- }
- }
- }
-
- /**
- * 2101 妫�鏂ゅ崟
- */
- public void pushData2101(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇 妫�鏂ゅ崟淇℃伅
-// List<ApiInfoData> items = apiInfoDataRep.getDataByInteId(SH2023Constant.SH_2023_API_CODE_2101);
-//
-// param.setInteCategory(Constant.API_CATEGORY_12);
-// param.setInteId(SH2023Constant.SH_2023_API_CODE_2101);
-//
-// ResponseDto responseDto;
-// SH2023Api2101 shApi2101;
-// for (ApiInfoData infoData : items) {
-// shApi2101 = JSONObject.parseObject(infoData.getData(), SH2023Api2101.class);
-// shApi2101.setCzbz(infoData.getCzbz());
-// shApi2101.setZhgxsj(infoData.getUpdateTime());
-// param.setBizId(infoData.getDataId());
-// responseDto = apiRemoteService.pushData(param, shApi2101);
-// if (responseDto.getSuccess() == 0) {
-// if (Constant.CZBZ_I.equals(infoData.getCzbz())) {
-// infoData.setCzbz(Constant.CZBZ_U);
-// apiInfoDataRep.save(infoData);
-// }
-// }
-// }
- }
-
- /**
- * 2102 鍊掍粨鍊掑叆
- */
- public void pushData2102(ApiRemoteService apiRemoteService, ApiParam param) {
- //TODO
-
- }
-
- /**
- * 2104 甯傚偍椹宠繍鍗�
- */
- public void pushData2104(ApiRemoteService apiRemoteService, ApiParam param) {
- //鑾峰彇 妫�鏂ゅ崟淇℃伅
-// List<ApiInfoData> items = apiInfoDataRep.getDataByInteId(SH2023Constant.SH_2023_API_CODE_2104);
-
-// param.setInteCategory(Constant.API_CATEGORY_12);
-// param.setInteId(SH2023Constant.SH_2023_API_CODE_2104);
-//
-// ResponseDto responseDto;
-// SH2023Api2104 shApi2104;
-// for (ApiInfoData infoData : items) {
-// shApi2104 = JSONObject.parseObject(infoData.getData(), SH2023Api2104.class);
-// shApi2104.setCzbz(infoData.getCzbz());
-// shApi2104.setZhgxsj(infoData.getUpdateTime());
-//
-// param.setBizId(infoData.getDataId());
-// responseDto = apiRemoteService.pushData(param, shApi2104);
-// if (responseDto.getSuccess() == 0) {
-// if (Constant.CZBZ_I.equals(infoData.getCzbz())) {
-// infoData.setCzbz(Constant.CZBZ_U);
-// apiInfoDataRep.save(infoData);
-// }
-// }
-// }
}
}
--
Gitblit v1.9.3