fuliqi
2024-12-09 2587568bec69f9b9956851da73d626c39bc720db
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
package com.ycl.platform.mapper;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ycl.platform.domain.entity.Report;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycl.platform.domain.query.ReportQuery;
import com.ycl.platform.domain.vo.ReportVO;
import com.ycl.platform.domain.form.ReportForm;
 
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;
 
/**
 * 报备 Mapper 接口
 *
 * @author xp
 * @since 2024-03-19
 */
@Mapper
public interface ReportMapper extends BaseMapper<Report> {
 
    IPage<ReportVO> page(IPage page, @Param("query") ReportQuery query);
 
    /**
     * 审核记录
     *
     * @param id
     * @return
     */
    List<ReportVO> examineRecord(@Param("id") Integer id);
 
    List<String> selectNumberList(String status, String date);
 
    /**
     * 查询工单是否报备过
     *
     * @param serialNumber 国标码
     * @return
     */
    Report checkPointReported(@Param("serialNumber") String serialNumber);
 
    /**
     * 获取同一批次号的报备
     *
     * @param pid
     * @return
     */
    List<Report> getTogether(@Param("pid") String pid);
 
    /**
     * 国标码查设备
     *
     * @param gb
     * @return
     */
    List<ReportVO> getListByGb(@Param("gb") String gb);
}