| | |
| | | rawInsProductMapper.update(new RawInsProduct(), updateWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void batchAddInsProduct(Integer id, List<RawInsProductVo> rawInsProducts) { |
| | | List<RawInsProduct> rawInsProductList = new ArrayList<>(); |
| | | rawInsProducts.forEach(i -> { |
| | | RawInsProduct rawInsProduct1 = new RawInsProduct(); |
| | | BeanUtils.copyProperties(i, rawInsProduct1); |
| | | rawInsProduct1.setRawInspectId(id); |
| | | rawInsProduct1.setState(1); |
| | | rawInsProductList.add(rawInsProduct1); |
| | | }); |
| | | rawInsProductMapper.insertBatchSomeColumn(rawInsProductList); |
| | | } |
| | | |
| | | /*判断检测值是否满足标准值和内控值的要求,如果不满足则检验结论为不合格*/ |
| | | //如果是±的操作 |
| | | private int conValues(String standardValueStr, String controlValueStr, String detectionValueStr) { |