| | |
| | | package com.yuanchu.limslaboratory.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.yuanchu.limslaboratory.pojo.InspectionProductList; |
| | | import com.yuanchu.limslaboratory.mapper.InspectionProductListMapper; |
| | | import com.yuanchu.limslaboratory.pojo.Product; |
| | |
| | | @Resource |
| | | InspectionProductListMapper inspectionProductListMapper; |
| | | |
| | | |
| | | |
| | | //根据检验样品id删除样品里的检验项目 |
| | | @Override |
| | | public int addInspectionProductList(List<InspectionProductList> list) { |
| | | return inspectionProductListMapper.addInspectionProductList(list); |
| | | public int delInspectionProductList(int inspectionMaterialListId) { |
| | | UpdateWrapper<InspectionProductList> wrapper = new UpdateWrapper<>(); |
| | | wrapper.eq("inspectionMaterialListId", inspectionMaterialListId).set("state", 0); |
| | | return inspectionProductListMapper.update(new InspectionProductList(),wrapper); |
| | | } |
| | | } |