潘志宝
9 天以前 9d5be382e52f9ac57199d5ef75cc23f925a4cdb0
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
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.QueryWrapperX;
import com.iailab.module.bpm.controller.admin.definition.vo.form.BpmFormPageReqVO;
import com.iailab.module.bpm.dal.dataobject.definition.BpmFormDO;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * 动态表单 Mapper
 *
 * @author hou
 */
@Mapper
public interface BpmFormMapper extends BaseMapperX<BpmFormDO> {
 
    default PageResult<BpmFormDO> selectPage(BpmFormPageReqVO reqVO) {
        return selectPage(reqVO, new QueryWrapperX<BpmFormDO>()
                .likeIfPresent("name", reqVO.getName())
                .orderByDesc("id"));
    }
 
}