package com.iailab.module.bpm.dal.mysql.definition; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.bpm.controller.admin.definition.vo.expression.BpmProcessExpressionPageReqVO; import com.iailab.module.bpm.dal.dataobject.definition.BpmProcessExpressionDO; import org.apache.ibatis.annotations.Mapper; /** * BPM 流程表达式 Mapper * * @author iailab */ @Mapper public interface BpmProcessExpressionMapper extends BaseMapperX { default PageResult selectPage(BpmProcessExpressionPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(BpmProcessExpressionDO::getName, reqVO.getName()) .eqIfPresent(BpmProcessExpressionDO::getStatus, reqVO.getStatus()) .betweenIfPresent(BpmProcessExpressionDO::getCreateTime, reqVO.getCreateTime()) .orderByDesc(BpmProcessExpressionDO::getId)); } }