|
|
@ -216,7 +216,7 @@ public class MesYfReportServiceImpl implements IMesYfReportService {
|
|
|
|
private MesWorkCenter getWorkCenter(MesProduceSn produceSn) {
|
|
|
|
private MesWorkCenter getWorkCenter(MesProduceSn produceSn) {
|
|
|
|
MesWorkCenter workCenter = workCenterRepository.getByProperty(
|
|
|
|
MesWorkCenter workCenter = workCenterRepository.getByProperty(
|
|
|
|
new String[]{MesExtConstWords.ORGANIZE_CODE, MesExtConstWords.IS_DELETED, MesExtConstWords.IS_VALID, MesExtConstWords.WORK_CENTER_CODE},
|
|
|
|
new String[]{MesExtConstWords.ORGANIZE_CODE, MesExtConstWords.IS_DELETED, MesExtConstWords.IS_VALID, MesExtConstWords.WORK_CENTER_CODE},
|
|
|
|
new Object[]{produceSn.getOrganizeCode(), CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(), CommonEnumUtil.IS_VAILD.VAILD.getValue(), produceSn.getWorkCenterCode()});
|
|
|
|
new Object[]{produceSn.getOrganizeCode(), CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), CommonEnumUtil.IS_VAILD.VAILD.getValue(), produceSn.getWorkCenterCode()});
|
|
|
|
if (null == workCenter) MesException.throwMesBusiException("条码[%s]关联的生产线[%s]信息不存在", produceSn.getProductSn(), produceSn.getWorkCenterCode());
|
|
|
|
if (null == workCenter) MesException.throwMesBusiException("条码[%s]关联的生产线[%s]信息不存在", produceSn.getProductSn(), produceSn.getWorkCenterCode());
|
|
|
|
return workCenter;
|
|
|
|
return workCenter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|