package cn.com.ty.lift.ud.userAgreement.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import  com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.ty.lift.ud.userAgreement.controller.query.UserAgreementQuery;
import cn.com.ty.lift.ud.userAgreement.mapper.entity.UserAgreement;
/**
 * 用户协议 -Repository
 * 
 * @author Xson
 * @date 2020-05-13
 */
public interface UserAgreementMapper extends BaseMapper<UserAgreement> {

	List<UserAgreement> selectByQuery(@Param("ew") Wrapper wrapper, @Param("page") UserAgreementQuery page);

    int countByQuery(@Param("ew") Wrapper wrapper);
    
    @Select("SELECT * FROM user_agreement WHERE TYPE=2 and statuz=1")
    List<UserAgreement>queryListCharge();
}
