houzhongjian
4 天以前 f4f9405f99cb35e2fd6cfeae4c54617304228fda
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.bpm.dal.mysql.definition;
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.definition.vo.listener.BpmProcessListenerPageReqVO;
7 import com.iailab.module.bpm.dal.dataobject.definition.BpmProcessListenerDO;
8 import org.apache.ibatis.annotations.Mapper;
9
10 /**
11  * BPM 流程监听器 Mapper
12  *
13  * @author iailab
14  */
15 @Mapper
16 public interface BpmProcessListenerMapper extends BaseMapperX<BpmProcessListenerDO> {
17
18     default PageResult<BpmProcessListenerDO> selectPage(BpmProcessListenerPageReqVO reqVO) {
19         return selectPage(reqVO, new LambdaQueryWrapperX<BpmProcessListenerDO>()
20                 .likeIfPresent(BpmProcessListenerDO::getName, reqVO.getName())
21                 .eqIfPresent(BpmProcessListenerDO::getType, reqVO.getType())
22                 .eqIfPresent(BpmProcessListenerDO::getEvent, reqVO.getEvent())
23                 .eqIfPresent(BpmProcessListenerDO::getStatus, reqVO.getStatus())
24                 .orderByDesc(BpmProcessListenerDO::getId));
25     }
26
27 }