CardMapper.java 721 Bytes
Newer Older
1 2 3 4
package cn.wisenergy.mapper;

import cn.wisenergy.model.app.CardInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
import org.apache.ibatis.annotations.Param;
6

7
import java.util.List;
8

9 10 11
/**
 * @author 86187
 */
12 13 14
public interface CardMapper extends BaseMapper<CardInfo> {
    /**
     * 添加充值卡子卡
15 16
     *
     * @param cardInfos
17 18
     * @return
     */
19 20
    int add(List<CardInfo> cardInfos);

21 22 23 24 25 26 27
    /**
     * 编辑
     * @param cardInfo 信息
     * @return 结果
     */
    int edit(CardInfo cardInfo);

28 29 30 31 32 33 34
    /**
     * 根据密码获取充值卡信息
     *
     * @param secretKey 密码
     * @return 充值卡信息
     */
    CardInfo getBySecretKey(@Param("secretKey") String secretKey);
35
}