Browse Source

委外添加库位

master
shenzhouyu 1 month ago
parent
commit
581d04b245
  1. 16
      src/main/java/com/gaotao/modules/outsourcing/service/impl/OutsourcingNotifyServiceImpl.java

16
src/main/java/com/gaotao/modules/outsourcing/service/impl/OutsourcingNotifyServiceImpl.java

@ -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;
})

Loading…
Cancel
Save