|
@@ -132,9 +132,12 @@ public class LocationController { |
|
@@ -132,9 +132,12 @@ public class LocationController { |
132
|
int i1 = locationMapper.updateByPrimaryKeySelective(location);
|
132
|
int i1 = locationMapper.updateByPrimaryKeySelective(location);
|
133
|
log.info("楼层编辑:{}", i1);
|
133
|
log.info("楼层编辑:{}", i1);
|
134
|
}else {
|
134
|
}else {
|
|
|
135
|
+ // 修改水表
|
|
|
136
|
+ locationMapper.updateByPrimaryKeySelective(location);
|
135
|
// 查询旧表 实时数据
|
137
|
// 查询旧表 实时数据
|
136
|
WaterMeter realTime = waterMeterService.findRealTime(wmId);
|
138
|
WaterMeter realTime = waterMeterService.findRealTime(wmId);
|
137
|
log.info("旧表累计充值量:{}",realTime.getWmSacc());
|
139
|
log.info("旧表累计充值量:{}",realTime.getWmSacc());
|
|
|
140
|
+ log.info("旧表累计消费量:{}",realTime.getWmLacc());
|
138
|
// 充值新表
|
141
|
// 充值新表
|
139
|
Map<String, Object> datas = new HashMap<>();
|
142
|
Map<String, Object> datas = new HashMap<>();
|
140
|
datas.put("MtId", location.getWmid());
|
143
|
datas.put("MtId", location.getWmid());
|
|
@@ -143,7 +146,7 @@ public class LocationController { |
|
@@ -143,7 +146,7 @@ public class LocationController { |
143
|
datas.put("Add_addmode", "3");
|
146
|
datas.put("Add_addmode", "3");
|
144
|
String status = HttpsUtils.httpRequest("http://123.56.159.203:8023/mtfmset/allWMadd", datas);
|
147
|
String status = HttpsUtils.httpRequest("http://123.56.159.203:8023/mtfmset/allWMadd", datas);
|
145
|
datas.put("status", status);
|
148
|
datas.put("status", status);
|
146
|
- log.info("新表充值:{}",status);
|
149
|
+ log.info("新表充值返回状态:{}",status);
|
147
|
log.info("充值成功更新水表");
|
150
|
log.info("充值成功更新水表");
|
148
|
}
|
151
|
}
|
149
|
waterMeterSacc.setWmId(location.getWmid());
|
152
|
waterMeterSacc.setWmId(location.getWmid());
|