zhuo
2025-02-17 9733594dd881627b4c00665e6f9bfbf08c1cacec
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
package com.ruoyi.inspect.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.inspect.dto.ProductResultDto2;
import com.ruoyi.inspect.dto.SampleProductRawAnalysisDto;
import com.ruoyi.inspect.pojo.InsProduct;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
* @author Administrator
* @description 针对表【ins_product(检验项目)】的数据库操作Mapper
* @createDate 2024-03-08 09:45:03
* @Entity com.yuanchu.mom.pojo.InsProduct
*/
public interface InsProductMapper extends BaseMapper<InsProduct> {
 
    int selectOrderManDay(Integer orderId);
 
    Map<String, String> selectUserById(Integer userId);
 
    List<ProductResultDto2> getProductAndResult(Integer sampleId);
 
    int updateInspected(@Param("id") Integer id);
 
    List<InsProduct> selectFiberInsProduct(List<Integer> ids, String laboratory);
 
    IPage<InsProduct> selectNoProducts(Page page, Integer orderId, List<Integer> noIds);
 
    int selectInsProductCountByOrderId(Integer orderId);
 
    /**
     * 根据样品id查询检验项目
     * @param sampleIds
     * @return
     */
    List<SampleProductRawAnalysisDto> selectListBySampleIds(@Param("sampleIds") List<Integer> sampleIds);
 
    /**
     * 查询所有的检验项
     * @param sampleIds
     * @return
     */
    List<String> selectItemNameBySampleIds(@Param("sampleIds") List<Integer> sampleIds);
 
    /**
     * 根据订单id查询不合格项
     * @param orderId
     * @return
     */
    List<String> selectUnqualifiedList(Integer orderId);
 
    /**
     * 查询判断是否有不判定项目,和全都是判定项
     * @param orderId
     * @return
     */
    int selectNoJudge(Integer orderId);
}