XiaoRuby
2023-08-22 62e0e2910b2858a60e5fa4ffda2590c05b0caf9d
standard-server/src/main/java/com/yuanchu/limslaboratory/service/impl/ProductServiceImpl.java
@@ -44,7 +44,7 @@
    @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);
@@ -59,5 +59,21 @@
        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);
        MyUtil.PrintLog(product.toString());
        return productMapper.updateById(product);
    }
    @Override
    public void deleteList(String ids) {
        productMapper.deleteList(ids);
    }
}