|
|
@ -1429,7 +1429,7 @@ public class MesWorkOrderService implements IMesWorkOrderService {
|
|
|
|
if (!CollectionUtils.isEmpty(mesProductOneVersions)) {
|
|
|
|
if (!CollectionUtils.isEmpty(mesProductOneVersions)) {
|
|
|
|
mesProductVersion = mesProductOneVersions.get(0);
|
|
|
|
mesProductVersion = mesProductOneVersions.get(0);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (mesProductOneVersions.size() > 1) {
|
|
|
|
if (mesProductVersions.size() > 1) {
|
|
|
|
MesPcnException.throwMesBusiException("物料【%s】生产版本【%s】对应多条非0001版本的信息", item.getPartNo(), item.getProductVersion());
|
|
|
|
MesPcnException.throwMesBusiException("物料【%s】生产版本【%s】对应多条非0001版本的信息", item.getPartNo(), item.getProductVersion());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mesProductVersion = mesProductVersions.get(0);
|
|
|
|
mesProductVersion = mesProductVersions.get(0);
|
|
|
|