|
@@ -44,6 +44,9 @@ public class MeterReadingServiceImpl implements MeterReadingService {
|
|
|
log.info("开始删除抄表记录:{}",id);
|
|
|
// 获取抄表记录
|
|
|
SwWaterUsageEntryDo swWaterUsageEntryDo = swWaterUsageEntryService.getById(id);
|
|
|
+ if(swWaterUsageEntryDo==null){
|
|
|
+ throw new CustomException("该抄表记录已删除");
|
|
|
+ }
|
|
|
// 本次记录由换表生成无法删除
|
|
|
if("9".equals(swWaterUsageEntryDo.getReadingsource())){
|
|
|
throw new CustomException("本次抄表记录由换表生成无法删除");
|