Commit c879b5f0 authored by duanruiming's avatar duanruiming

[update] 测试,当前相位未关联方案,方案id为-1

parent 26520725
...@@ -385,7 +385,13 @@ public class PlanSendServiceImpl implements PlanSendService { ...@@ -385,7 +385,13 @@ public class PlanSendServiceImpl implements PlanSendService {
baseCrossPhaseMapper.deleteByCrossId(crossId); baseCrossPhaseMapper.deleteByCrossId(crossId);
// 更新方案ID // 更新方案ID
for (CrossPhasePO crossPhasePO : crossPhaseList) { for (CrossPhasePO crossPhasePO : crossPhaseList) {
crossPhasePO.setPlanId(oldNewSchemeId.get(crossPhasePO.getPlanId())); // 当前相位未关联方案,方案id为-1
Integer planId = crossPhasePO.getPlanId();
if (planId == -1) {
crossPhasePO.setPlanId(-1);
} else {
crossPhasePO.setPlanId(oldNewSchemeId.get(planId));
}
} }
baseCrossPhaseMapper.insertBatch(crossPhaseList); baseCrossPhaseMapper.insertBatch(crossPhaseList);
......
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