oppadmin 4 years ago
parent
commit
9f5c59c370

+ 2 - 2
smart-city-platform/src/main/java/com/bz/smart_city/quartz/service/impl/AmountSynDayServiceImpl.java

@@ -47,7 +47,7 @@ public class AmountSynDayServiceImpl implements AmountSynByDayService, Initializ
     @Value("1")
     private BigInteger createBy;
 
-    @Value("${amount.syn.day.url}")
+    @Value("${Sync.Data.Url}")
     private String amountDaySynUrl;
 
     @Resource
@@ -163,7 +163,7 @@ public class AmountSynDayServiceImpl implements AmountSynByDayService, Initializ
 
             String context=JSON.toJSON(amountDaySynParamDto).toString();
             try {
-                String result= HttpClientUtils.doPostWithJson(amountDaySynUrl,context);
+                String result= HttpClientUtils.doPostWithJson(amountDaySynUrl+"/api/syncData/meterReadData",context);
                 log.info("每天同步水量请求结果"+result);
 
                 JSONObject jsonObject= JSON.parseObject(result);

+ 2 - 2
smart-city-platform/src/main/java/com/bz/smart_city/quartz/service/impl/AmountSynServiceImpl.java

@@ -45,7 +45,7 @@ public class AmountSynServiceImpl implements AmountSynService , InitializingBean
     @Value("1")
     private BigInteger createBy;
 
-    @Value("${amount.syn.url}")
+    @Value("${Sync.Data.Url}")
     private String amountSynUrl;
 
     @Resource
@@ -173,7 +173,7 @@ public class AmountSynServiceImpl implements AmountSynService , InitializingBean
 
             String context=JSON.toJSON(amountSynParamDto).toString();
             try {
-                String result= HttpClientUtils.doPostWithJson(amountSynUrl,context);
+                String result= HttpClientUtils.doPostWithJson(amountSynUrl+"/api/syncData/clearingData",context);
                 log.info("同步水量请求结果"+result);
 
                 JSONObject jsonObject= JSON.parseObject(result);

+ 2 - 2
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/pay/PayFeeServiceImp.java

@@ -65,7 +65,7 @@ public class PayFeeServiceImp implements PayFeeService {
     @Resource
     private PayControlRecordMapper payControlRecordMapper;
 
-    @Value("${pay.valve.conmond.url}")
+    @Value("${Sync.Data.Url}")
     private String payValveCommondUrl;
 
     /**
@@ -1346,7 +1346,7 @@ public class PayFeeServiceImp implements PayFeeService {
         parmJson.put("customerNo",payValveStateInfo.getCustomerNo());
         String context=parmJson.toString();
         try {
-            String result= HttpClientUtils.doPostWithJson(payValveCommondUrl,context);
+            String result= HttpClientUtils.doPostWithJson(payValveCommondUrl+"/platform/sendCommond",context);
             log.info("开关阀请求结果"+result);
             JSONObject jsonObject= JSON.parseObject(result);
             Integer status= jsonObject.getInteger("status");

+ 2 - 5
smart-city-platform/src/main/resources/application-188sit.properties

@@ -136,9 +136,6 @@ invoice.query.url=http://nnfpbox.nuonuocs.cn/shop/buyer/allow/ecOd/queryElectric
 #银行代收客户id
 payfee.bank.customerId=47
 
-#每天水量同步接口
-amount.syn.day.url=http://114.135.61.188:58080/api/syncData/meterReadData
-#水量同步接口
-amount.syn.url=http://114.135.61.188:58080/api/syncData/clearingData
+#抄表数据同步接口
+Sync.Data.Url=http://114.135.61.188:58080
 
-pay.valve.conmond.url = http://ip:port/platform/sendCommond 

+ 0 - 5
smart-city-platform/src/main/resources/application-prd.properties

@@ -172,9 +172,4 @@ Sync.Data.Url=http://114.135.61.188:58080
 
 #银行代收客户id
 payfee.bank.customerId=47
-#每天水量同步接口
-amount.syn.day.url=http://114.135.61.188:58080/api/syncData/meterReadData
-#水量同步接口
-amount.syn.url=http://114.135.61.188:58080/api/syncData/clearingData
 
-pay.valve.conmond.url = http://ip:port/platform/sendCommond 

+ 0 - 5
smart-city-platform/src/main/resources/application-sit.properties

@@ -142,9 +142,4 @@ Sync.Data.Url=http://114.135.61.188:58080
 #银行代收客户id
 payfee.bank.customerId=47
 
-#每天水量同步接口
-amount.syn.day.url=http://114.135.61.188:58080/api/syncData/meterReadData
-#水量同步接口
-amount.syn.url=http://114.135.61.188:58080/api/syncData/clearingData
 
-pay.valve.conmond.url = http://ip:port/platform/sendCommond 

+ 0 - 5
smart-city-platform/src/main/resources/application-uat.properties

@@ -146,9 +146,4 @@ invoice.query.url=http://nnfpbox.nuonuocs.cn/shop/buyer/allow/ecOd/queryElectric
 #银行代收客户id
 payfee.bank.customerId=47
 
-#每天水量同步接口
-amount.syn.day.url=http://114.135.61.188:58080/api/syncData/meterReadData
-#水量同步接口
-amount.syn.url=http://114.135.61.188:58080/api/syncData/clearingData
 
-pay.valve.conmond.url = http://ip:port/platform/sendCommond