zouyu
2025-09-24 2bb12b1ca40b29b7edcf06ef3f3d6de24dde1c4c
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
package com.ruoyi.inspect.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.basic.pojo.IfsInventoryQuantity;
import com.ruoyi.inspect.dto.ReportPageDto;
import com.ruoyi.inspect.pojo.InsOrder;
import com.ruoyi.inspect.pojo.InsReport;
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Map;
 
/**
* @author Administrator
* @description 针对表【ins_report(检验报告)】的数据库操作Service
* @createDate 2024-03-17 22:10:02
*/
public interface InsReportService extends IService<InsReport> {
 
    Map<String,Object> pageInsReport(Page page, ReportPageDto reportPageDto);
 
    void wordToPdf(String path,String sealUrl, boolean isRawMater);
 
    int inReport(String url, Integer id);
 
    int upReportUrl(Integer id);
 
    //提交
    int writeReport(Integer id, Integer userId, Integer submitUserId);
 
    //审核
    int examineReport(Integer id, Integer isExamine, String examineTell, Integer userId);
 
    //批准
    int ratifyReport(Integer id, Integer isRatify, String ratifyTell);
 
    int wordInsertUrl(Map<String, Object> map, String url);
 
    String downAll(String ids);
 
    int upAll(MultipartFile file) throws IOException;
 
    /**
     *
     * @param insOrder 检验单信息
     * @param registerInsResults 是否登记检验结果
     * @param hasExemption 是否免检
     */
    void isRawMaterial(InsOrder insOrder,Boolean registerInsResults,Boolean hasExemption);
 
    Long getUnqualifiedCount(InsOrder insOrder);
 
    /**
     * 退回到检验任务
     * @param id
     * @return
     */
    boolean sendBackTask(Integer id);
 
    /**
     * 报告导出
     * @param dto
     * @param response
     */
    void reportAllExport(ReportPageDto dto, HttpServletResponse response) throws UnsupportedEncodingException;
}