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.group.BpmUserGroupPageReqVO;
|
import com.iailab.module.bpm.dal.dataobject.definition.BpmUserGroupDO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
import java.util.List;
|
|
/**
|
* 用户组 Mapper
|
*
|
* @author iailab
|
*/
|
@Mapper
|
public interface BpmUserGroupMapper extends BaseMapperX<BpmUserGroupDO> {
|
|
default PageResult<BpmUserGroupDO> selectPage(BpmUserGroupPageReqVO reqVO) {
|
return selectPage(reqVO, new LambdaQueryWrapperX<BpmUserGroupDO>()
|
.likeIfPresent(BpmUserGroupDO::getName, reqVO.getName())
|
.eqIfPresent(BpmUserGroupDO::getStatus, reqVO.getStatus())
|
.betweenIfPresent(BpmUserGroupDO::getCreateTime, reqVO.getCreateTime())
|
.orderByDesc(BpmUserGroupDO::getId));
|
}
|
|
default List<BpmUserGroupDO> selectListByStatus(Integer status) {
|
return selectList(BpmUserGroupDO::getStatus, status);
|
}
|
|
}
|