Commit 5cd5915d authored by hanbing's avatar hanbing

[update] 已删除时段ID判空

parent bab761fc
...@@ -62,9 +62,11 @@ public class RunningPlanServiceImpl implements RunningPlanService { ...@@ -62,9 +62,11 @@ public class RunningPlanServiceImpl implements RunningPlanService {
List<RunningPlanDTO.DailyPlanListElement> dailyPlanList = runningPlanDTO.getDailyPlanList(); List<RunningPlanDTO.DailyPlanListElement> dailyPlanList = runningPlanDTO.getDailyPlanList();
for (RunningPlanDTO.DailyPlanListElement dailyPlanListElement : dailyPlanList) { for (RunningPlanDTO.DailyPlanListElement dailyPlanListElement : dailyPlanList) {
List<Integer> deletedSectionIds = dailyPlanListElement.getDeletedSectionIds(); List<Integer> deletedSectionIds = dailyPlanListElement.getDeletedSectionIds();
if (CollectionUtil.isNotEmpty(deletedSectionIds)) {
baseCrossSectionMapper.deleteByCrossIds(deletedSectionIds); baseCrossSectionMapper.deleteByCrossIds(deletedSectionIds);
} }
} }
}
@Override @Override
public RunningPlanDTO listRunningPlan(CrossIdBO crossIdBO) { public RunningPlanDTO listRunningPlan(CrossIdBO crossIdBO) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment