|
|
@ -177,7 +177,8 @@ public class MesBomService extends BaseMesService<MesBom> implements IMesBomServ
|
|
|
|
if (CollectionUtils.isEmpty(mesBoms)) {
|
|
|
|
if (CollectionUtils.isEmpty(mesBoms)) {
|
|
|
|
MesException.throwMesBusiException("物料【%s】生产版本【%s】对应bom信息不存在", partNo, bomVersion);
|
|
|
|
MesException.throwMesBusiException("物料【%s】生产版本【%s】对应bom信息不存在", partNo, bomVersion);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return mesBoms;
|
|
|
|
MesBom next = mesBoms.iterator().next();
|
|
|
|
|
|
|
|
return mesBoms.stream().collect(Collectors.groupingBy(t -> t.getBomCode().toUpperCase() + t.getEffStartTime())).get(next.getBomCode().toUpperCase() + next.getEffStartTime());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|