|
@@ -168,10 +168,12 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
for (CheckStandard standard:checkStandards){
|
|
|
checkIds.add(standard.getId());
|
|
|
}
|
|
|
- Weekend<CheckStandardSpare> weekend3 = new Weekend<>(CheckStandardSpare.class);
|
|
|
- WeekendCriteria<CheckStandardSpare, Object> weekendCriteria3 = weekend3.weekendCriteria();
|
|
|
- weekendCriteria3.andIn(CheckStandardSpare::getCheckId, checkIds);
|
|
|
- checkStandardSpareMapper.deleteByExample(weekend3);
|
|
|
+ if (checkIds!=null&&checkIds.size()>0) {
|
|
|
+ Weekend<CheckStandardSpare> weekend3 = new Weekend<>(CheckStandardSpare.class);
|
|
|
+ WeekendCriteria<CheckStandardSpare, Object> weekendCriteria3 = weekend3.weekendCriteria();
|
|
|
+ weekendCriteria3.andIn(CheckStandardSpare::getCheckId, checkIds);
|
|
|
+ checkStandardSpareMapper.deleteByExample(weekend3);
|
|
|
+ }
|
|
|
|
|
|
checkStandardMapper.deleteByExample(weekend1);
|
|
|
//删除保养任务
|