0529 ljc 修改删除阶段npe错误

This commit is contained in:
HopeLi 2025-05-30 11:39:00 +08:00
parent 9d6dfdbe16
commit 952d863a61

View File

@ -403,7 +403,10 @@ public class StageServiceImpl extends ServiceImpl<PipStageDao, PipStage> impleme
updateList.add(stage); updateList.add(stage);
} }
} }
stageDao.updateBatch(updateList); //如果删除的为最后一个新增阶段则无需更新前面阶段的sort值
if (!CollectionUtils.isEmpty(updateList)){
stageDao.updateBatch(updateList);
}
stageDao.deleteById(stageId); stageDao.deleteById(stageId);
} }