TVipAreaCardCustInfoRelDao.java 2.87 KB
package com.zteits.bill.dao;
import com.zteits.bill.domain.TVipAreaCardCustInfoRel;
import com.zteits.bill.domain.TVipAreaCardCustInfoRelExample;
import com.zteits.bill.domain.TVipCardCustInfo;
import com.zteits.clouds.api.dto.bill.param.DeleteAreaCardByCustCardNoReq;
import com.zteits.clouds.api.dto.bill.vipcard.param.QueryVipCardPlNoListRequest;
import com.zteits.clouds.api.dto.bill.vipcard.param.VipCardInfoReq;

import java.util.List;

public interface TVipAreaCardCustInfoRelDao {

    /**
     * 保存
     * @param tVipAreaCardCustInfoRel
     * @return
     */
    int saveTVipAreaCardCustInfoRel(TVipAreaCardCustInfoRel tVipAreaCardCustInfoRel);

    /**
     * 批量保存保存
     * @param tVipAreaCardCustInfoRels
     * @return
     */
    int bathSaveTVipAreaCardCustInfoRel(List<TVipAreaCardCustInfoRel> tVipAreaCardCustInfoRels);


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


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

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

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

    /**
     * 根据custCardNos查询关联车场信息
     * @param custCardNos
     * @return
     */
    List<TVipAreaCardCustInfoRel> queryTVipAreaCardCustInfoRel(List<String> custCardNos);

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

    /**
     * 根据车场编号查询热门车场
     * @param request
     * @return
     */
    List<String> queryHotParkListForVipCard(QueryVipCardPlNoListRequest request);

    /**
     * 修改PC置为失效卡的推送状态
     * @param request
     * @return
     */
    int updateAreaCardPushState(DeleteAreaCardByCustCardNoReq request);

    /**
     * 根据停车场编号与车牌号码查询当前有效的会员车信息
     * @param request
     * @return
     */
    TVipCardCustInfo queryCardCustInfoByParkcodeAndCarnumber(VipCardInfoReq request);

    /**
     * 动态分页查询
     * @param request
     * @return
     */
    //PageInfo<TVipAreaCardCustInfoRel> queryTVipAreaCardCustInfoRelForPage(TVipAreaCardCustInfoRelRequest request);



    /**
     * 查询该车场是否已经同步
     * @param
     * @return
     * @Author: xiejianpeng
     * @Date: 2020/9/21 13:25
     *
     */
    Integer queryParkAreaCardCountByPlNo(String plNo);
}