1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package com.ruoyi.basic.service;
 
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.basic.dto.CopyStandardProductListDto;
import com.ruoyi.basic.dto.InsSampleReceiveDto;
import com.ruoyi.basic.dto.ResetTreeDragDTO;
import com.ruoyi.basic.pojo.StandardProductList;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author Administrator
 * @description 针对表【standard_product_list(标准树下的检验项目)】的数据库操作Service
 * @createDate 2024-03-05 10:33:29
 */
public interface StandardProductListService extends IService<StandardProductList> {
 
    int upStandardProductList(StandardProductList list);
 
    List<StandardProductList> selectStandardProductList(InsSampleReceiveDto insSample);
 
    /**
     * 根据检验标准和标准树节点生成检验项目,并同步该节点下已保存的项目配置。
     *
     * <p>该方法会删除目标节点(或其子节点)的旧记录后重新批量保存,因此并非只读查询。</p>
     *
     * @param id 检验标准 ID
     * @param tree 标准树路径,使用 {@code " - "} 分隔层级
     * @return {@code productList} 为生成后的检验项目列表,{@code total} 为列表数量
     */
    Map<String, Object> selectStandardProductListByMethodId(Integer id, String tree);
 
    IPage<StandardProductList> selectStandardProductByMethodId(Integer id, String tree, Integer page, String laboratory, String item, String items);
 
    Map<String, List<?>> selectStandardProductEnumByMethodId(Integer id, String tree, String item);
 
    boolean updateSection(StandardProductList list);
 
    /**
     * 标准库拖拽
     * @param resetTreeDragDTO
     */
    void resetTreeDrag(ResetTreeDragDTO resetTreeDragDTO);
 
    /**
     * 标准库拖拽
     * @param standardProductLists
     */
    void resetTreeDragBatch(List<StandardProductList> standardProductLists);
 
    /**
     * 检验项要求值对比
     * @param copyStandardProductListDto
     * @return
     */
    List<StandardProductList> copyStandardProductList(CopyStandardProductListDto copyStandardProductListDto);
 
    /**
     * 检验项要求值对比一个
     * @param copyStandardProductListDto
     * @return
     */
    List<StandardProductList> copyStandardProductOne(CopyStandardProductListDto copyStandardProductListDto);
 
    /**
     * 检验项复制排序
     * @param copyStandardProductListDto
     * @return
     */
    boolean copyStandardProductSort(CopyStandardProductListDto copyStandardProductListDto);
}