TVipAreaCardDao.java 1.69 KB
package com.zteits.bill.dao;
import com.github.pagehelper.PageInfo;
import com.zteits.bill.domain.TVipAreaCard;
import com.zteits.bill.domain.TVipAreaCardExample;
import com.zteits.clouds.api.dto.bill.param.TVipAreaCardRequest;

import java.util.List;

public interface TVipAreaCardDao {

    /**
     * 保存
     * @param tVipAreaCard
     * @return
     */
    int saveTVipAreaCard(TVipAreaCard tVipAreaCard);


    /**
     * 动态更新
     * @param record 需要更新的信息
     * @param example 更新时的where条件
     * @return
     */
    int updateByExampleSelective(TVipAreaCard record, TVipAreaCardExample example);


    /**
     * 根据主键更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TVipAreaCard record);

    /**
     * 动态查询
     * @param example
     * @return
     */
    List<TVipAreaCard> selectByExample(TVipAreaCardExample example);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    TVipAreaCard queryByPrimaryKey(Long id);


    /**
     * 动态查询
     * @param request
     * @return
     */
    List<TVipAreaCard> queryTVipAreaCard(TVipAreaCardRequest request);

    /**
     * 逻辑批量删除
     * @param ids
     * @param opId
     * @param opName
     * @return
     */
    int batchDeleteTVipAreaCardByPrimaryKey(List<Long> ids, String opId, String opName);

    /**
     * 动态分页查询
     * @param request
     * @return
     */
    PageInfo<TVipAreaCard> queryTVipAreaCardForPage(TVipAreaCardRequest request);
     /**
      * 通过卡编码查询卡规则信息
      * @Auther: wangfs
      * @param
      * @return
      */
    TVipAreaCard queryTVipAreaCardByCardNo(String cardNo );

}