| | |
| | | import cn.iocoder.yudao.module.mes.service.qc.ipqc.MesQcIpqcService; |
| | | import cn.iocoder.yudao.module.mes.service.qc.oqc.MesQcOqcService; |
| | | import cn.iocoder.yudao.module.mes.service.qc.rqc.MesQcRqcService; |
| | | import cn.iocoder.yudao.module.mes.service.qc.support.MesQcItemResolver; |
| | | import cn.iocoder.yudao.module.mdm.api.item.MdmItemApi; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.context.annotation.Lazy; |
| | |
| | | |
| | | @Resource |
| | | private MdmItemApi mdmItemApi; |
| | | |
| | | @Resource |
| | | private MesQcItemResolver qcItemResolver; |
| | | |
| | | @Resource |
| | | @Lazy |
| | |
| | | * 校验物料存在 |
| | | */ |
| | | private void validateItemExists(Long itemId) { |
| | | if (itemId != null) { |
| | | mdmItemApi.getItem(itemId).getCheckedData(); |
| | | } |
| | | // 不合格品单的物料可能来自 MDM 单据或 MES 工单,需兼容两套 ID |
| | | qcItemResolver.validateItemExists(itemId); |
| | | } |
| | | |
| | | /** |