basic-server/src/main/java/com/ruoyi/basic/mapper/StandardTreeMapper.java
@@ -6,9 +6,10 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.basic.dto.*;
import com.ruoyi.basic.pojo.IfsInventoryQuantity;
import com.ruoyi.basic.pojo.StandardMethodList;
import com.ruoyi.basic.pojo.StandardProductList;
import com.ruoyi.basic.pojo.StandardTree;
import com.ruoyi.basic.vo.IfsInventoryQuantityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -20,11 +21,40 @@
 * @createDate 2024-03-01 15:06:44
 * @Entity com.ruoyi.basic.pojo.StandardTree
 */
@Mapper
public interface StandardTreeMapper extends BaseMapper<StandardTree> {
    List<FactoryDto> selectStandardTreeList();
    List<StandardLibraryTreeRowDto> selectStandardLibraryTree();
    List<StandardTree> selectStandardTreeList2(String sampleType);
    /**
     * 行业改名:级联更新标准库配置中的行业名称,并重建两级规范路径
     */
    int updateProductListIndustry(@Param("oldName") String oldName, @Param("newName") String newName);
    /**
     * 标准改名:级联更新标准库配置中的标准名称,并重建两级规范路径
     */
    int updateProductListStandard(@Param("industry") String industry, @Param("oldName") String oldName, @Param("newName") String newName);
    /**
     * 行业改名:级联更新未完成订单的行业名称
     */
    int updateInsOrderIndustry(@Param("oldName") String oldName, @Param("newName") String newName);
    int updateInsSampleIndustry(@Param("oldName") String oldName, @Param("newName") String newName);
    int updateInsProductIndustry(@Param("oldName") String oldName, @Param("newName") String newName);
    /**
     * 标准改名:级联更新未完成订单的标准名称
     */
    int updateInsOrderStandard(@Param("industry") String industry, @Param("oldName") String oldName, @Param("newName") String newName);
    int updateInsSampleStandard(@Param("industry") String industry, @Param("oldName") String oldName, @Param("newName") String newName);
    int updateInsProductStandard(@Param("industry") String industry, @Param("oldName") String oldName, @Param("newName") String newName);
    StandardProductList selectStandardProductById(Integer id);
@@ -33,6 +63,11 @@
    List<StandardProductList> selectStandardProductListByTree(@Param("tree") String tree, @Param("sample") String sample, @Param("model") String model, @Param("trees") String trees, @Param("laboratory") String laboratory);
    List<StandardProductList> selectStandardProductListByTree2(@Param("tree") String tree, @Param("sample") String sample, @Param("model") String model, @Param("trees") String trees, @Param("laboratory") String laboratory);
    /**
     * 按行业查询基础检验项,生成两级标准配置(sample=标准、model=NULL、tree=规范路径)
     */
    List<StandardProductList> selectStandardProductListByIndustry(@Param("industry") String industry, @Param("standard") String standard, @Param("tree") String tree);
    List<SampleTypeDto> getStandardTree2();
@@ -47,8 +82,8 @@
    List<FactoryDto> selectStandardTreeListByPartNo(@Param("partNo") String partNo);
    IPage<IfsInventoryQuantity> selectIfsPage(IPage<IfsInventoryQuantity> page,
                                              @Param("ew") QueryWrapper<IfsInventoryQuantity> ew);
    IPage<IfsInventoryQuantityVO> selectIfsPage(IPage<IfsInventoryQuantity> page,
                                                @Param("ew") QueryWrapper<IfsInventoryQuantity> ew);
    IPage<IfsInventoryQuantityDto> getIfsByStateOne(IPage<IfsInventoryQuantityDto> page,
                                                    @Param("ew") QueryWrapper<IfsInventoryQuantityDto> ew);