package com.bonus.core.account.v4.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.core.account.v4.web.model.AccCard;
import com.bonus.core.account.vo.AccCardBaseInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AccCardMapper extends BaseMapper<AccCard> {
   @Select({"SELECT ci.cust_num, ac.serial_num FROM acc_card ac LEFT JOIN cust_info ci ON ac.cust_id = ci.cust_id where  ac.card_status in (1,4)"})
   List<AccCardBaseInfoVO> listAccCardBaseInfo();
}
