package com.yxproject.start.mapper;

import com.yxproject.start.entity.FailedCardEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangyusheng on 2018/10/30 9:42
 */
@Mapper
public interface FailedCardMapper {
    /**
     * 新增废证
     * @param failedCardEntity
     * @return
     */
//    @InsertProvider(type=com.yxproject.start.SqlProvider.SqlProvider.class,method="saveFailedinfoEntity")
////    @Options(useGeneratedKeys=true,keyProperty="failedinfoid")
    public void saveFailedCardEntity(FailedCardEntity failedCardEntity);

    /**
     * 更新废证
     * @param failedCardEntity
     */
//    @UpdateProvider(type=com.yxproject.start.SqlProvider.SqlProvider.class,method="updateFailedinfoEntity")
    public void updateFailedCardEntity(FailedCardEntity failedCardEntity);

    /**
     * 查询废证详情
     * @return
     */
//    @SelectProvider(type=com.yxproject.start.SqlProvider.SqlProvider.class,method="selectFailedinfoBycolumnName")
    public List<Map<String,Object>> selectFailedCardEntityByState(int state);





}
