潘志宝
8 天以前 f3de04db06bae67537d093017e28863ee685f8a3
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.bpm.dal.mysql.oa;
H 2
3 import com.iailab.framework.common.pojo.PageResult;
4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
6 import com.iailab.module.bpm.controller.admin.oa.vo.BpmOALeavePageReqVO;
7 import com.iailab.module.bpm.dal.dataobject.oa.BpmOALeaveDO;
8 import org.apache.ibatis.annotations.Mapper;
9
10 /**
11  * 请假申请 Mapper
12  *
13  * @author jason
14  * @author iailab
15  */
16 @Mapper
17 public interface BpmOALeaveMapper extends BaseMapperX<BpmOALeaveDO> {
18
19     default PageResult<BpmOALeaveDO> selectPage(Long userId, BpmOALeavePageReqVO reqVO) {
20         return selectPage(reqVO, new LambdaQueryWrapperX<BpmOALeaveDO>()
21                 .eqIfPresent(BpmOALeaveDO::getUserId, userId)
22                 .eqIfPresent(BpmOALeaveDO::getStatus, reqVO.getStatus())
23                 .eqIfPresent(BpmOALeaveDO::getType, reqVO.getType())
24                 .likeIfPresent(BpmOALeaveDO::getReason, reqVO.getReason())
25                 .betweenIfPresent(BpmOALeaveDO::getCreateTime, reqVO.getCreateTime())
26                 .orderByDesc(BpmOALeaveDO::getId));
27     }
28
29 }