提交 | 用户 | 时间
|
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.group.BpmUserGroupPageReqVO; |
|
7 |
import com.iailab.module.bpm.dal.dataobject.definition.BpmUserGroupDO; |
|
8 |
import org.apache.ibatis.annotations.Mapper; |
|
9 |
|
|
10 |
import java.util.List; |
|
11 |
|
|
12 |
/** |
|
13 |
* 用户组 Mapper |
|
14 |
* |
|
15 |
* @author iailab |
|
16 |
*/ |
|
17 |
@Mapper |
|
18 |
public interface BpmUserGroupMapper extends BaseMapperX<BpmUserGroupDO> { |
|
19 |
|
|
20 |
default PageResult<BpmUserGroupDO> selectPage(BpmUserGroupPageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<BpmUserGroupDO>() |
|
22 |
.likeIfPresent(BpmUserGroupDO::getName, reqVO.getName()) |
|
23 |
.eqIfPresent(BpmUserGroupDO::getStatus, reqVO.getStatus()) |
|
24 |
.betweenIfPresent(BpmUserGroupDO::getCreateTime, reqVO.getCreateTime()) |
|
25 |
.orderByDesc(BpmUserGroupDO::getId)); |
|
26 |
} |
|
27 |
|
|
28 |
default List<BpmUserGroupDO> selectListByStatus(Integer status) { |
|
29 |
return selectList(BpmUserGroupDO::getStatus, status); |
|
30 |
} |
|
31 |
|
|
32 |
} |