|
|
|
@ -398,10 +398,10 @@ public class MesBoxingErrorProofingService implements IMesBoxingErrorProofingSer
|
|
|
|
|
MesPcnException.throwMesBusiException("条码【%s】零件号【%s】和箱零件【%s】不匹配,请检查数据!", mesPackageDetail.getSerialNumber(), nextMesProduceSn.getPartNo(), partNo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//查询加工记录
|
|
|
|
|
List<MesProductionRecord> productionRecordList = mesProductionRecordService.findProductionRecordList(mesPackageDetail.getOrganizeCode(), mesPackageDetail.getSerialNumber());
|
|
|
|
|
//工艺校验
|
|
|
|
|
if(!Objects.isNull(packingDefine) && !Objects.isNull(packingDefine.getCheckCraftFlag()) && CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue() == packingDefine.getCheckCraftFlag()){
|
|
|
|
|
//查询加工记录
|
|
|
|
|
List<MesProductionRecord> productionRecordList = mesProductionRecordService.findProductionRecordList(mesPackageDetail.getOrganizeCode(), mesPackageDetail.getSerialNumber());
|
|
|
|
|
if(CollectionUtils.isEmpty(productionRecordList)){
|
|
|
|
|
MesPcnException.throwMesBusiException("条码【%s】校验装箱防错对应工艺失败,加工记录信息不存在,请检查数据!", mesPackageDetail.getSerialNumber());
|
|
|
|
|
}
|
|
|
|
|