diff --git a/src/main/java/club/joylink/rtss/services/RunPlanDraftService.java b/src/main/java/club/joylink/rtss/services/RunPlanDraftService.java index c6e65a52f..ca051e33a 100644 --- a/src/main/java/club/joylink/rtss/services/RunPlanDraftService.java +++ b/src/main/java/club/joylink/rtss/services/RunPlanDraftService.java @@ -796,13 +796,12 @@ public class RunPlanDraftService implements IRunPlanDraftService { // tripVO.setIsInbound(true); tripVO.setIsReentry(false); // tripVO.setIsOutbound(false); - } else if (i == 0) { - tripVO.setIsReentry(true); -// tripVO.setIsInbound(false); } else { -// tripVO.setIsInbound(false); - tripVO.setIsReentry(true); -// tripVO.setIsOutbound(false); + if (tripVO.getIsInbound() != null && tripVO.getIsInbound()) { //入库计划 + tripVO.setIsReentry(false); + } else { //非入库计划 + tripVO.setIsReentry(true); + } } } //是否为备用车