提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.dal.mysql.category; |
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.category.BpmCategoryPageReqVO; |
|
7 |
import com.iailab.module.bpm.dal.dataobject.definition.BpmCategoryDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
import java.util.Collection; |
|
11 |
import java.util.List; |
|
12 |
|
|
13 |
/** |
|
14 |
* BPM 流程分类 Mapper |
|
15 |
* |
|
16 |
* @author iailab |
|
17 |
*/ |
|
18 |
@Mapper |
|
19 |
public interface BpmCategoryMapper extends BaseMapperX<BpmCategoryDO> { |
|
20 |
|
|
21 |
default PageResult<BpmCategoryDO> selectPage(BpmCategoryPageReqVO reqVO) { |
|
22 |
return selectPage(reqVO, new LambdaQueryWrapperX<BpmCategoryDO>() |
|
23 |
.likeIfPresent(BpmCategoryDO::getName, reqVO.getName()) |
|
24 |
.likeIfPresent(BpmCategoryDO::getCode, reqVO.getCode()) |
|
25 |
.eqIfPresent(BpmCategoryDO::getStatus, reqVO.getStatus()) |
|
26 |
.betweenIfPresent(BpmCategoryDO::getCreateTime, reqVO.getCreateTime()) |
|
27 |
.orderByAsc(BpmCategoryDO::getSort)); |
|
28 |
} |
|
29 |
|
|
30 |
default BpmCategoryDO selectByName(String name) { |
|
31 |
return selectOne(BpmCategoryDO::getName, name); |
|
32 |
} |
|
33 |
|
|
34 |
default BpmCategoryDO selectByCode(String code) { |
|
35 |
return selectOne(BpmCategoryDO::getCode, code); |
|
36 |
} |
|
37 |
|
|
38 |
default List<BpmCategoryDO> selectListByCode(Collection<String> codes) { |
|
39 |
return selectList(BpmCategoryDO::getCode, codes); |
|
40 |
} |
|
41 |
|
|
42 |
default List<BpmCategoryDO> selectListByStatus(Integer status) { |
|
43 |
return selectList(BpmCategoryDO::getStatus, status); |
|
44 |
} |
|
45 |
|
|
46 |
} |