| | |
| | | //上报(更新检验状态) |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public String updateProcessInspectsById(Integer id) { |
| | | public String updateProcessInspectsById(Integer id,Integer number) { |
| | | /*更新检验单里面的检验结论*/ |
| | | //先判断检验结果 |
| | | List<Integer> results = inspectionItemMapper.getResult(id, 1); |
| | |
| | | if (processInspect.getResult() == 0) { |
| | | InspectUnaccepted processUnaccepted = InspectUnaccepted.builder() |
| | | .reason(processInspect.getMaterial() + processInspect.getTechname() + "不合格") //暂且定义为产品名称+工艺不合格 |
| | | .number(number) |
| | | .rawInspectId(id) |
| | | .type(2) //类型为过程检验 |
| | | .build(); |