|
@@ -134,7 +134,7 @@ public class MeterReadRecordDao extends BaseDao<MeterReadRecord, String> impleme
|
|
|
Device deviceUpdate = new Device();
|
|
|
deviceUpdate.setId(deviceId);
|
|
|
deviceUpdate.setReadData(readData.toPlainString());
|
|
|
- deviceMapper.updateByDeviceData(deviceUpdate);
|
|
|
+ deviceMapper.updateByPrimaryKeySelective(deviceUpdate);
|
|
|
return total;
|
|
|
}
|
|
|
String month = (localDateTime.getMonthValue() +"").length() == 1 ? "0" + localDateTime.getMonthValue() : localDateTime.getMonthValue() +"";
|
|
@@ -144,7 +144,7 @@ public class MeterReadRecordDao extends BaseDao<MeterReadRecord, String> impleme
|
|
|
Device deviceUpdate = new Device();
|
|
|
deviceUpdate.setId(deviceId);
|
|
|
deviceUpdate.setReadData(readData.toPlainString());
|
|
|
- deviceMapper.updateByDeviceData(deviceUpdate);
|
|
|
+ deviceMapper.updateByPrimaryKeySelective(deviceUpdate);
|
|
|
}
|
|
|
}
|
|
|
}
|