小程序店铺相关

This commit is contained in:
liuyingfang
2023-06-17 14:39:54 +08:00
parent 766351e0f6
commit d5b9107c6e
11 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package cn.pluss.platform.mapper;
import cn.pluss.platform.entity.AppletStore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface AppletStoreMapper extends BaseMapper<AppletStore> {
}

View File

@@ -0,0 +1,25 @@
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);
}