逻辑修改

tags/yfai-mes-ext-v1.0
jun 11 months ago
parent 7f89951056
commit 0fa4ff86be

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

Loading…
Cancel
Save