0529 ljc 修改删除阶段npe错误
This commit is contained in:
parent
9d6dfdbe16
commit
952d863a61
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user