|
@@ -155,8 +155,8 @@ public class SbMeasureLogServiceImpl extends BaseServiceImpl<SbMeasureLogMapper,
|
|
|
}
|
|
|
sbInfo.setCheckDate(model.getLastDate());
|
|
|
Integer checkPeriod = 0;// 默认12个月
|
|
|
- if(sbInfo.getCheckPeriod() != null){
|
|
|
- checkPeriod = sbInfo.getCheckPeriod();
|
|
|
+ if(model.getCheckPeriod() != null){
|
|
|
+ checkPeriod = model.getCheckPeriod();
|
|
|
}else{
|
|
|
throw new BusinessException("检定设备的检定周期未设置,无法计算下次检定日期,请先设置");
|
|
|
}
|