维护养护BUG修改
parent
f145875da0
commit
aba8027886
|
|
@ -36,7 +36,7 @@ public class MentenceStService extends ServiceImpl<MentenceStMapper, MentenceSt>
|
|||
|
||||
public boolean deleteById(Serializable id) {
|
||||
LambdaQueryWrapper<MentenceStDetail> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(MentenceStDetail::getId, id);
|
||||
queryWrapper.eq(MentenceStDetail::getMentenceStId, id);
|
||||
Long count = mentenceStDetailMapper.selectCount(queryWrapper);
|
||||
if(count > 0) {
|
||||
throw new IllegalArgumentException("存在养护项目,无法删除");
|
||||
|
|
|
|||
Loading…
Reference in New Issue