|
@@ -397,6 +397,7 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService {
|
|
setMeterLastDataToCache(waterMeter.getDeviceId(),measuringData);
|
|
setMeterLastDataToCache(waterMeter.getDeviceId(),measuringData);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
if(e instanceof ServiceException){
|
|
if(e instanceof ServiceException){
|
|
|
|
+ e.printStackTrace();
|
|
log.error("抄表失败",e);
|
|
log.error("抄表失败",e);
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
@@ -432,8 +433,11 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
protected String getReadingFromMeterData(WaterMeter waterMeter, Map<String, MeasuringData> measuringData){
|
|
protected String getReadingFromMeterData(WaterMeter waterMeter, Map<String, MeasuringData> measuringData){
|
|
|
|
+ String readingValue = "" ;
|
|
MeasuringData readingData = measuringData.get(waterMeter.getReadingMeasuringCode());
|
|
MeasuringData readingData = measuringData.get(waterMeter.getReadingMeasuringCode());
|
|
- String readingValue = readingData.getMeasuringVaule();
|
|
|
|
|
|
+ if(readingData != null ){
|
|
|
|
+ readingValue = readingData.getMeasuringVaule();
|
|
|
|
+ }
|
|
return readingValue ;
|
|
return readingValue ;
|
|
}
|
|
}
|
|
protected BigDecimal calculateTodayCost(String currentReading,BigDecimal lastValid,MeterReadRecord record){
|
|
protected BigDecimal calculateTodayCost(String currentReading,BigDecimal lastValid,MeterReadRecord record){
|