| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | |
| | | //检验 |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public String check(Integer id, String value) { |
| | | public Integer check(Integer id, String value) { |
| | | InspectionProduct inspectionProduct = inspectionProductMapper.selectById(id); |
| | | //判断检测值是否满足标准值和内控值的要求,如果不满足则检验结论为不合格0 |
| | | String required = inspectionProduct.getRequired();//标准值 |
| | |
| | | inspectionProduct.setTestState(1); |
| | | } |
| | | inspectionProductMapper.updateById(inspectionProduct); |
| | | return "提交成功!"; |
| | | return inspectionProduct.getTestState(); |
| | | } |
| | | |
| | | //上报 |