|
|
@ -1791,9 +1791,9 @@ public class DailyPlanServiceImpl implements DailyPlanService { |
|
|
} |
|
|
} |
|
|
@Override |
|
|
@Override |
|
|
public ShopOrderData selectShopOrder(DailyPlanInData dailyPlanInData) { |
|
|
public ShopOrderData selectShopOrder(DailyPlanInData dailyPlanInData) { |
|
|
if (!StringUtils.hasText(dailyPlanInData.getSite())){ |
|
|
|
|
|
throw new RuntimeException("工厂编码为空!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (!StringUtils.hasText(dailyPlanInData.getSite())){ |
|
|
|
|
|
// throw new RuntimeException("工厂编码为空!"); |
|
|
|
|
|
// } |
|
|
if (Objects.isNull(dailyPlanInData.getSeqNo())){ |
|
|
if (Objects.isNull(dailyPlanInData.getSeqNo())){ |
|
|
throw new RuntimeException("请输入派工单号"); |
|
|
throw new RuntimeException("请输入派工单号"); |
|
|
} |
|
|
} |
|
|
@ -1801,6 +1801,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { |
|
|
if(null == soScheduledRoutingOutDataList || soScheduledRoutingOutDataList.isEmpty()){ |
|
|
if(null == soScheduledRoutingOutDataList || soScheduledRoutingOutDataList.isEmpty()){ |
|
|
throw new RuntimeException("该派工单不存在"); |
|
|
throw new RuntimeException("该派工单不存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
dailyPlanInData.setSite(soScheduledRoutingOutDataList.get(0).getSite()); |
|
|
SOScheduledRoutingOutData soScheduledRouting = soScheduledRoutingOutDataList.get(0); |
|
|
SOScheduledRoutingOutData soScheduledRouting = soScheduledRoutingOutDataList.get(0); |
|
|
if (!"日计划派工单".equals(soScheduledRouting.getScheduleType())){ |
|
|
if (!"日计划派工单".equals(soScheduledRouting.getScheduleType())){ |
|
|
throw new RuntimeException("只有硫化生产需要模具"); |
|
|
throw new RuntimeException("只有硫化生产需要模具"); |
|
|
|