zhuo
2025-04-13 a265e62ac86c31a7e63ead82bf5f2300ebe5108f
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.ruoyi.inspect.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.inspect.dto.InsOrderPlanDTO;
import com.ruoyi.inspect.dto.InsOrderPlanProductDto;
import com.ruoyi.inspect.pojo.InsOrderFactoryVerify;
import com.ruoyi.inspect.pojo.InsOrderFile;
import com.ruoyi.inspect.pojo.InsProduct;
import com.ruoyi.inspect.vo.InsOrderPlanTaskSwitchVo;
import com.ruoyi.inspect.vo.InsOrderPlanVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;
 
import java.util.List;
import java.util.Map;
 
/**
 * 检验任务-业务层
 */
public interface InsOrderPlanService {
    IPage<InsOrderPlanVO> selectInsOrderPlanList(Page page, InsOrderPlanDTO insOrderPlanDTO);
 
    IPage<InsOrderPlanTaskSwitchVo> inspectionOrderDetailsTaskSwitching(Page page, InsOrderPlanDTO insOrderPlanDTO);
 
    boolean claimInsOrderPlan(InsOrderPlanDTO entity);
 
    void saveInsContext(Map<String, Object> insContext,Integer currentTable,Integer sampleId,Integer orderId,String sonLaboratory);
 
    Map<String, Object> doInsOrder(Integer id, String laboratory);
 
    int upPlanUser(Integer userId, Integer orderId,String sonLaboratory);
 
    int submitPlan(Integer orderId, String laboratory, Integer verifyUser, String entrustCode);
 
    List<InsProduct> getInsProduct(InsOrderPlanProductDto insOrderPlanProductDto);
 
    List<String> checkSubmitPlan(Integer orderId, String laboratory);
 
    IPage<InsOrderFile> getFileList(Page page, InsOrderFile insOrderFile);
 
    int uploadFile(Integer orderId, MultipartFile file);
 
 
    List<String> upPlanUser2(Integer orderId);
 
    int rawMaterialVerifyPlan(Integer orderId, String laboratory, Integer type, String tell, Integer userId);
 
    /**
     * 电缆配置. 查看标识
     * @param id
     * @param laboratory
     * @return
     */
    List<Map<String, Object>> getCableTag(Integer id, String laboratory);
 
    /**
     * 原材料查看标识
     * @param id
     * @param laboratory
     * @return
     */
    List<Map<String, Object>> getRawMaterialTag(Integer id, String laboratory);
 
    /**
     * 查看重复标识
     * @param id
     * @param laboratory
     * @return
     */
    List<Map<String, Object>> getRepetitionTag(Integer id, String laboratory, String cableTag);
 
 
    /**
     * 新增不合格复测内容给
     * @param ids
     * @return
     */
    boolean addDisqualificationRetest(List<InsProduct> insProductsList);
 
    /**
     * 获取不合格复测数据
     * @return
     */
    List<InsProduct> getInsProductUnqualifiedRetest(InsOrderPlanProductDto insOrderPlanProductDto);
 
    /**
     * 保存不合格复测检验内容
     */
    void saveUnqualifiedContext(Map<String, Object> insContext,Integer currentTable,Integer currentSampleId,Integer orderId,String sonLaboratory);
 
    /**
     * 查询原材料进货验证
     * @param insOrderId
     * @return
     */
    InsOrderFactoryVerify getFactoryVerify(Integer insOrderId);
 
    /**
     * 保存原材料进货验证
     * @param factoryVerify
     * @return
     */
    boolean addFactoryVerify(InsOrderFactoryVerify factoryVerify);
 
 
    /**
     * 生成pd临时
     * @param path
     * @return
     */
    String wordToPdfTemp(String path);
}