| | |
| | | private void changeAudit(CustomerOrder customerOrder, String isAudit) { |
| | | //审核状态 通过 订单状态待计划 |
| | | if (isAudit.equals(AuditStateStringValues.ACCEPTED)) { |
| | | //TODO: 要加零件id参数 |
| | | Document document = documentMapper.selectById(customerOrder.getTechnologyDocumentId()); |
| | | Part part = partMapper.selectOne(Wrappers.<Part>lambdaQuery().eq(Part::getEngChgLevel, "1").eq(Part::getPartNo, customerOrder.getPartNo())); |
| | | Part part = partMapper.selectOne(Wrappers.<Part>lambdaQuery().eq(Part::getEngChgLevel, "1").eq(Part::getId,customerOrder.getPartId() )); |
| | | if (null == part) { |
| | | throw new RuntimeException("根据零件编号 = 【" + customerOrder.getPartNo() + "】MES本地查无匹配零件对象"); |
| | | } |