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

import cn.ey.biz.framework.mybatis.core.mapper.BaseMapperX;
import cn.ey.biz.module.system.dal.dataobject.abac.AbacDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface AbacMapper extends BaseMapperX<AbacDO> {

    @Select("SELECT COUNT(*) FROM system_abac WHERE update_time > #{maxUpdateTime}")
    Long selectABACCountByUpdateTimeGt(Date maxUpdateTime);
}
