智慧保安后台管理-外网-验收版本
Administrator
2021-09-13 0d99d26f39e055ee17fdbf2c5cbd1daf695c4310
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package org.springblade.modules.apply.mapper;
 
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.apply.entity.Apply;
import org.springblade.modules.apply.excel.ApplyExcel;
import org.springblade.modules.apply.excel.ApplyInfoExcel;
import org.springblade.modules.apply.vo.ApplyPaPerVO;
import org.springblade.modules.apply.vo.ApplyVO;
 
import java.util.List;
 
/**
 * 考试报名Mapper 接口
 * @author zhongrj
 */
public interface ApplyMapper extends BaseMapper<Apply> {
 
 
    /**
     * 自定义分页
     *
     * @param page  分页
     * @param apply 实体
     * @return
     */
    List<ApplyVO> selectApplyPage(IPage page, @Param("apply") ApplyVO apply);
 
    /**
     * 自定义分页
     *
     * @param page  分页
     * @param apply 实体
     * @return
     */
    List<ApplyVO> selectApplyPageStatis(IPage page, @Param("apply") ApplyVO apply);
 
    /**
     * 详情
     *
     * @param apply 考试报名信息对象
     */
    ApplyVO selectApplyInfo(@Param("apply") Apply apply);
 
    /**
     * 获取准考证前缀相同的数量
     * @param result 前缀
     * @return
     */
    int getCandidateNoCount(@Param("result")String result);
 
    /**
     * 获取公司集体报名的人数
     * @param applyCode
     * @return
     */
    Integer getApplyNum(@Param("applyCode") String applyCode);
 
    /**
     * 获取准考证信息(正式考试)
     * @param apply
     * @return
     */
    ApplyPaPerVO getApplyInfo(@Param("apply")Apply apply);
 
    /**
     * 导出报名数数据
     * @param apply 报名对象
     * @return
     */
    List<ApplyInfoExcel> getApplyExcelList(@Param("apply")Apply apply);
 
    /**
     * 获取准考证信息(模拟考试)
     * @param apply
     * @return
     */
    ApplyPaPerVO getTrainApplyInfo(@Param("apply")Apply apply);
 
    /**
     * 查询人员是否已报名
     * @param apply
     * @return
     */
    Integer getIsApply(@Param("apply")Apply apply);
 
    /**
     * 查询人员是否已报名
     * @param apply
     * @return
     */
    List<Apply> getSecurityApplyInfo(@Param("apply")Apply apply);
 
    /**
     * 查询报名人员未关联考试的ids集合
     * @return
     */
    List<Apply> getApplyIds(@Param("apply") ApplyVO apply);
 
    /**
     * 查询考试人数
     * @param id 考试id
     * @return
     */
    int getApplyDeatailNum(@Param("id") Long id);
 
    /**
     * 查询已报名的的人信息集合
     * @param id 考试id
     * @return
     */
    List<ApplyVO> getApplyDetailList(@Param("id") Long id);
 
    /**
     * 查询保安员个人报名信息
     * @param apply 报名信息
     * @return
     */
    @SqlParser(filter = true)
    ApplyVO getSecurityApplyDetail(@Param("apply") ApplyVO apply);
 
    /**
     * 查询培训考试人数
     * @param id 考试id
     * @return
     */
    int getTrainDeatailNum(@Param("id") Long id);
 
    /**
     * 查询已培训报名的的人信息集合
     * @param id 考试id
     * @return
     */
    List<ApplyVO> getTrainDetailList(@Param("id") Long id);
 
    /**
     * 查询报名信息,取最新的一条(即当前userId,)applyId最大的一条记录
     * @param userId
     * @return
     */
    Apply getMaxApplyIdByUserIdInfo(@Param("userId") Long userId);
}