|
@@ -62,7 +62,7 @@ public class WeightImpl implements IWeight {
|
|
|
@Value("${dataCenter.service.batchWeight}")
|
|
|
private String batchWeightService;
|
|
|
//发送每次称重服务
|
|
|
- @Value("${dataCenter.service.batchWeight}")
|
|
|
+ @Value("${dataCenter.service.everyTimeWeight}")
|
|
|
private String everyTimeWeightService;
|
|
|
//重量批次计算间隔
|
|
|
@Value("${weight.batch_interval}")
|
|
@@ -115,14 +115,15 @@ public class WeightImpl implements IWeight {
|
|
|
}
|
|
|
|
|
|
private void sendEveryTimeWeightToCenter(ProdWeightEntity newWeightEntity) {
|
|
|
- System.out.println("发送每次称重数据到数据中心" + newWeightEntity);
|
|
|
+ System.out.println("发送每次称重数据到数据中心>>" + newWeightEntity);
|
|
|
+ System.out.println("everyTimeWeightService>>"+everyTimeWeightService);
|
|
|
//发送数据
|
|
|
_doPostSimple(everyTimeWeightService, JSON.toJSONString(newWeightEntity));
|
|
|
}
|
|
|
|
|
|
//发送批次数据到数据中心
|
|
|
private void sendBatchWeightToCenter(ProdBatchWeightEntity updateBatchWeightEntity) {
|
|
|
- System.out.println("发送批次数据到数据中心" + updateBatchWeightEntity);
|
|
|
+ System.out.println("发送批次数据到数据中心>>" + updateBatchWeightEntity);
|
|
|
//发送数据
|
|
|
_doPostSimple(batchWeightService, JSON.toJSONString(updateBatchWeightEntity));
|
|
|
}
|
|
@@ -211,7 +212,6 @@ public class WeightImpl implements IWeight {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//发送简单数据
|
|
|
private void _doPostSimple(String apiService, String data) {
|
|
|
String url = ipAddr + port + apiService;
|