package com.diaoyun.zion.chinafrica.dao;




import com.diaoyun.zion.chinafrica.entity.TbCfToiCouponEntityExtends;
import com.diaoyun.zion.chinafrica.entity.TbCfToicouponEntity;
import com.diaoyun.zion.master.dao.BaseDao;

import java.util.List;

/**
 * Dao
 *
 * @author lipengjun
 * @date 2019-11-20 19:37:20
 */
public interface TbCfToiCouponDao extends BaseDao<TbCfToicouponEntity> {



    List<TbCfToiCouponEntityExtends> queryCouponByUserId(String userId);

    int changeCoupnStatus(String userId, String couponId);
    /**
     * 更改使用状态
     * @param userId
     * @param couponId
     * @return
     */
    int updateEnableFlag(String userId, String couponId, Integer invalid);
}
