package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.Account;
import cn.pluss.platform.entity.AppletInfo;
import cn.pluss.platform.entity.AppletStoreUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lyf
 */
@Mapper
public interface AppletStoreUserMapper extends BaseMapper<AppletStoreUser> {

    @Select("SELECT * FROM tb_pluss_applet_store_user WHERE userId = #{userId}")
    List<AppletStoreUser> getAppletStoreByUser(@Param("userId") Integer userId);
    @Select("SELECT * FROM tb_pluss_applet_store_user WHERE userId = #{userId} AND appleStoreId = #{appleStoreId}")
    AppletStoreUser getAppletByUserStore(@Param("userId") Integer userId, @Param("appleStoreId") Integer appleStoreId);

}
