|
|
@ -406,7 +406,8 @@ public class MesWorkOrderService extends BaseMesService<MesWorkOrder> implements
|
|
|
|
mesPartProdGroupDetail.setOrganizeCode(item.getOrganizeCode());
|
|
|
|
mesPartProdGroupDetail.setOrganizeCode(item.getOrganizeCode());
|
|
|
|
List<MesPartProdGroup> mesPartProdGroupList = mesPartProdGroupService.findMesPartProdGroup(mesPartProdGroupDetail);
|
|
|
|
List<MesPartProdGroup> mesPartProdGroupList = mesPartProdGroupService.findMesPartProdGroup(mesPartProdGroupDetail);
|
|
|
|
if(CollectionUtils.isEmpty(mesPartProdGroupList)){
|
|
|
|
if(CollectionUtils.isEmpty(mesPartProdGroupList)){
|
|
|
|
MesException.throwMesBusiException("生产线代码【%s】零件号【%s】对应的零件生产组信息没有维护");
|
|
|
|
MesException.throwMesBusiException("生产线代码【%s】零件号【%s】对应的零件生产组信息没有维护",
|
|
|
|
|
|
|
|
item.getWorkCenterCode(),item.getPartNo());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
MesPartProdGroup mesPartProdGroup = mesPartProdGroupList.iterator().next();
|
|
|
|
MesPartProdGroup mesPartProdGroup = mesPartProdGroupList.iterator().next();
|
|
|
|
return mesPartProdGroup;
|
|
|
|
return mesPartProdGroup;
|
|
|
|