维护养护BUG修改

master
yangzhe123 2025-09-08 11:47:23 +08:00
parent f145875da0
commit aba8027886
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class MentenceStService extends ServiceImpl<MentenceStMapper, MentenceSt>
public boolean deleteById(Serializable id) { public boolean deleteById(Serializable id) {
LambdaQueryWrapper<MentenceStDetail> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<MentenceStDetail> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(MentenceStDetail::getId, id); queryWrapper.eq(MentenceStDetail::getMentenceStId, id);
Long count = mentenceStDetailMapper.selectCount(queryWrapper); Long count = mentenceStDetailMapper.selectCount(queryWrapper);
if(count > 0) { if(count > 0) {
throw new IllegalArgumentException("存在养护项目,无法删除"); throw new IllegalArgumentException("存在养护项目,无法删除");