|
|
|
@ -285,19 +285,7 @@ public class OutsourcingNotifyServiceImpl implements OutsourcingNotifyService { |
|
|
|
IfsInventoryPart inventoryPart = new IfsInventoryPart(); |
|
|
|
inventoryPart.setSite(parentItem.getSite()); |
|
|
|
inventoryPart.setPartNo(parentItem.getFgPartNo()); |
|
|
|
List<IfsInventoryPart> rows = null; |
|
|
|
try { |
|
|
|
rows = ifsApiService.getIfsInventoryPart(inventoryPart); |
|
|
|
} catch (Exception e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
String productionArea; |
|
|
|
if(parentItem.getFgPartNo().startsWith("3")||parentItem.getFgPartNo().startsWith("7")) { |
|
|
|
productionArea = "Z112"; |
|
|
|
}else { |
|
|
|
productionArea = outsourcingNotifyMapper.getProductAreaByPlanner(parentItem.getSite(), rows.get(0).getPlannerBuyer()); |
|
|
|
} |
|
|
|
parentItem.setProductionArea(productionArea!=null?productionArea:"Z301"); |
|
|
|
parentItem.setProductionArea("Z107"); |
|
|
|
parentItem.setPushWmsFlag("N"); |
|
|
|
parentItem.setTransportFlag("N"); |
|
|
|
parentItem.setOutWorkOrderFlag("N"); |
|
|
|
@ -355,7 +343,7 @@ public class OutsourcingNotifyServiceImpl implements OutsourcingNotifyService { |
|
|
|
if(StringUtils.isNotBlank(parentType)){ |
|
|
|
child.setOrderType(parentType); |
|
|
|
}else{ |
|
|
|
child.setOrderType("shoporder"); |
|
|
|
child.setOrderType("poorder"); |
|
|
|
} |
|
|
|
return child; |
|
|
|
}) |
|
|
|
|