|
|
@ -699,6 +699,11 @@ public class DailyPlanServiceImpl implements DailyPlanService { |
|
|
if(getSOScheduledRoutingOutData.size()==0){ |
|
|
if(getSOScheduledRoutingOutData.size()==0){ |
|
|
throw new RuntimeException("该派工单不存在"); |
|
|
throw new RuntimeException("该派工单不存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
if(dailyPlanInData.getRemark()!=null&&"发料".equals(dailyPlanInData.getRemark())){ |
|
|
|
|
|
if(getSOScheduledRoutingOutData.get(0).getCirculationSeqNo()!=null&&!"".equals(getSOScheduledRoutingOutData.get(0).getCirculationSeqNo())){ |
|
|
|
|
|
throw new RuntimeException("该派工单已经流转不能发料"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
List<SORoutingData> checkItemNoForIssue= dailyPlanMapper.checkItemNoForIssue(getSOScheduledRoutingOutData.get(0)); |
|
|
List<SORoutingData> checkItemNoForIssue= dailyPlanMapper.checkItemNoForIssue(getSOScheduledRoutingOutData.get(0)); |
|
|
if(checkItemNoForIssue.size()>0){ |
|
|
if(checkItemNoForIssue.size()>0){ |
|
|
throw new RuntimeException("只有第一道工序允许发料和退料"); |
|
|
throw new RuntimeException("只有第一道工序允许发料和退料"); |
|
|
|