| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | List<ApplyVO> selectApplyPage(IPage page, @Param("apply") ApplyVO apply); |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page 分页 |
| | | * @param apply 实体 |
| | | * @return |
| | | */ |
| | | List<ApplyVO> selectApplyPageStatis(IPage page, @Param("apply") ApplyVO apply); |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | * 查询报名人员未关联考试的ids集合 |
| | | * @return |
| | | */ |
| | | List<Long> getApplyIds(); |
| | | List<Apply> getApplyIds(@Param("apply") ApplyVO apply); |
| | | |
| | | /** |
| | | * 查询考试人数 |
| | | * @param id 考试id |
| | | * @return |
| | | */ |
| | | int getApplyDeatailNum(Long id); |
| | | int getApplyDeatailNum(@Param("id") Long id); |
| | | |
| | | /** |
| | | * 查询已报名的的人信息集合 |
| | | * @param id 考试id |
| | | * @return |
| | | */ |
| | | List<ApplyVO> getApplyDetailList(Long id); |
| | | 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); |
| | | } |