| | |
| | | |
| | | @Override |
| | | public void deleteProductInformation(List<Integer> SpecificationsId) { |
| | | for (Integer materialId : SpecificationsId){ |
| | | for (Integer materialId : SpecificationsId) { |
| | | LambdaUpdateWrapper<Product> wrapper = new LambdaUpdateWrapper<>(); |
| | | wrapper.eq(Product::getSpecifications_id, materialId); |
| | | wrapper.set(Product::getState, 0); |
| | |
| | | return productMapper.pageProductInformation(specificationsId); |
| | | } |
| | | |
| | | //填写标准值与内控值,鼠标移开保存 |
| | | @Override |
| | | public Integer write(Integer id, String required, String internal) { |
| | | Product product = new Product(); |
| | | product.setId(id); |
| | | product.setRequired(required); |
| | | product.setInternal(internal); |
| | | productMapper.updateById(product); |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | } |