package cn.ey.biz.module.system.dal.mapper.timesheet;

import cn.ey.biz.common.pojo.PageParam;
import cn.ey.biz.common.pojo.PageResult;
import cn.ey.biz.framework.mybatis.core.mapper.BaseMapperX;
import cn.ey.biz.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.ey.biz.module.system.dal.dataobject.timesheet.TimesheetApproveRuleDO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TimesheetApproveRuleMapper extends BaseMapperX<TimesheetApproveRuleDO> {

    default PageResult<TimesheetApproveRuleDO> selectPage(PageParam pageParam) {
        return selectPage(pageParam, new LambdaQueryWrapperX<TimesheetApproveRuleDO>()
                .orderByDesc(TimesheetApproveRuleDO::getApproveRuleId));
    }

}
