123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366 |
- package com.caimei365.user.mapper;
- import com.caimei365.user.model.dto.ShopUpdateDto;
- import com.caimei365.user.model.po.ShopCertPo;
- import com.caimei365.user.model.po.UserPo;
- import com.caimei365.user.model.vo.*;
- import org.apache.ibatis.annotations.MapKey;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- import java.util.Map;
- /**
- * Description
- *
- * @author : Aslee
- * @date : 2021/3/16
- */
- @Mapper
- public interface ShopMapper {
- /**
- * 供应商快捷登录
- * @param userId
- * @return
- */
- UserLoginVo getShopByUserId(Integer userId);
- /**
- * 根据Id查询供应商
- * @param shopId 供应商Id
- * @return ShopVo
- */
- ShopVo getShopById(Integer shopId);
- /**
- * 修改供应商信息保存用户
- * @param user 用户数据
- */
- void updateShopUserByUpdateInfo(UserPo user);
- /**
- * 修改供应商信息保存供应商
- * @param shop 供应商数据
- */
- void updateShopByUpdateInfo(ShopUpdateDto shop);
- /**
- * 根据供应商Id和资质证书类型Id获取供应商资质证书
- * @param shopId 供应商Id
- * @param shopCertTypeId 资质证书类型Id
- * @return String
- */
- List<String> getShopCert(Integer shopId, Integer shopCertTypeId);
- /**
- * 根据供应商Id删除供应商资质证书数据
- * @param shopId 供应商Id
- */
- void deleteShopCertByShopId(Integer shopId);
- /**
- * 保存供应商资质证书
- * @param shopCert 资质证书数据
- */
- void insertShopCert(ShopCertPo shopCert);
- /**
- * 供应商首页数据
- * @param shopId 供应商Id
- */
- ShopHomeVo getShopHomeData(Integer shopId);
- /**
- * 公司资质照片
- */
- List<String> getShopCertById(Integer shopId, int shopCertTypeId);
- /**
- * 医疗器械经营许可
- */
- String medicalPracticeLicense(Integer shopId);
- /**
- * 供应商商品类别
- * @param shopId
- * @param category
- * @return
- */
- List<CmShopCategoryVo> getShopCategory(@Param("shopId") Integer shopId, @Param("category") String category);
- /**
- * 修改排序
- * @param id
- * @param sort
- */
- void updateCategorySort(@Param("id") Integer id, @Param("sort") Integer sort);
- /**
- * 获取供应商商品分类信息
- * @param id
- * @return
- */
- CmShopCategoryVo getShopCategoryById(@Param("id") Integer id);
- /**
- * 供应商类别商品
- * @param categoryId
- * @return
- */
- List<ProductItemVo> getCategoryProductById(@Param("categoryId") Integer categoryId);
- /**
- * 选择商品
- * @param shopId
- * @param name
- * @return
- */
- List<ProductItemVo> getShopProductList(@Param("shopId") Integer shopId, @Param("name") String name);
- /**
- * 供应商已选择商品
- * @param shopId
- * @param categoryId
- * @return
- */
- List<Integer> getCategoryProductIdList(@Param("shopId") Integer shopId, @Param("categoryId") Integer categoryId);
- /**
- * 添加供应商类别
- * @param cmShopCategory
- */
- void insertCategory(CmShopCategoryVo cmShopCategory);
- /**
- * 添加供应商类别商品
- * @param categoryId
- * @param productId
- */
- void insertCategoryProduct(@Param("categoryId") Integer categoryId, @Param("productId") Integer productId);
- /**
- * 修改类别信息
- * @param cmShopCategory
- */
- void updateCategory(CmShopCategoryVo cmShopCategory);
- /**
- * 删除类别商品
- * @param categoryId
- * @param productIdList
- */
- void updateCategoryProduct(@Param("categoryId") Integer categoryId, @Param("productIdList") List<Integer> productIdList);
- /**
- * 该列别瞎所有商品
- * @param categoryId
- * @return
- */
- List<Integer> getCategoryProductIds(@Param("categoryId") Integer categoryId);
- /**
- * 删除供应商商品类别
- * @param id
- */
- void deleteCategory(@Param("id") Integer id);
- /**
- * 供应商首页-轮播图片
- */
- List<ShopBannerVo> getShopHomeImages(@Param("shopId") Integer shopId, @Param("title") String title);
- /**
- * 排序
- * @param id
- * @param sort
- */
- void updateShopBannerSort(@Param("id") Integer id, @Param("sort") Integer sort);
- /**
- * 店铺促销活动
- */
- PromotionsVo getShopPromotionsByShopId(Integer shopId);
- /**
- * 促销赠品
- */
- List<ProductItemVo> getPromotionsGifts(Integer promotionsId);
- /**
- * 统计商品数量
- *
- * @param shopId 供应商id
- * @param productOrganize 上架平台
- * @param validFlag 商品状态
- */
- Integer getShopProductCount(@Param("shopId") Integer shopId, @Param("productOrganize") Integer productOrganize, @Param("validFlag") Integer validFlag);
- /**
- * 统计前五的商品销售信息
- */
- @MapKey("productId")
- List<Map<String, Object>> getSalesRankingList(@Param("shopId") Integer shopId, @Param("organizeId") Integer organizeId);
- /**
- * 获取商品信息
- */
- ProductItemVo getProductShown(Integer productId);
- /**
- * 销售统计
- */
- @MapKey("orderQuantity")
- Map<String, Object> getSalesStatistics(Integer shopId, Integer organizeId, String startTime, String endTime);
- /**
- * 是否为营销供应商
- * @param shopId
- * @return
- */
- Integer getShopIsMark(@Param("shopId") Integer shopId);
- /**
- * 轮播图片数量
- */
- int getShopHomeImageCount(Integer shopId);
- /**
- * 新增轮播图
- */
- void insertShopHomeImage(ShopBannerVo shopBanner);
- /**
- * 更新轮播图
- */
- void updateShopHomeImage(ShopBannerVo shopBanner);
- /**
- * 删除轮播图
- */
- void deleteShopHomeImage(Integer id);
- /**
- * 获取报表对应的供应商信息
- * @param shopId
- * @param type
- * @return
- */
- CmMarketShopVo getShopInfoById(@Param("shopId") Integer shopId, @Param("type") Integer type, @Param("marketReportId") Integer marketReportId);
- /**
- * 营销供应商报表Id
- * @param marketId
- * @param startTime
- * @param endTime
- * @return
- */
- List<Integer> getMarketReportIds(@Param("marketId") Integer marketId, @Param("type") Integer type, @Param("marketReportId") Integer marketReportId, @Param("startTime") String startTime, @Param("endTime") String endTime);
- /**
- * 获取阶段描述
- * @param marketReportIds
- * @return
- */
- List<StageVo> getMarketStage(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取漏洞模型数据
- * @param marketReportIds
- * @return
- */
- List<FunnelModelVo> getMarketFunnelModel(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取推文数据
- * @param marketReportIds
- * @return
- */
- List<ArticleReadVolumeVo> getMarketArticleReadVolume(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取展现量数据
- * @param marketReportIds
- * @return
- */
- List<ImpressionsVo> getMarketImpressions(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取点击量数据
- * @param marketReportIds
- * @return
- */
- List<ReadVolumeVo> getMarketReadVolume(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取SEO汇总数据
- * @param marketReportIds
- * @return
- */
- List<SummaryVo> getMarketSummary(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取访问量数据
- * @param marketReportIds
- * @return
- */
- List<VisitsVo> getMarketVisits(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取访客来源分布数据
- * @param marketReportIds
- * @return
- */
- List<ProportionVo> getMarketProportion(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取页面平均访问时长数据
- * @param marketReportIds
- * @return
- */
- List<PageDurationVo> getMarketPageDuration(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取广告图点击量数据
- * @param marketReportIds
- * @return
- */
- List<AdvertHitsVo> getMarketAdvertHits(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 获取咨询数量数据
- * @param marketReportIds
- * @return
- */
- List<CmMarketRemarkVo> getMarketRemark(@Param("marketReportIds") List<Integer> marketReportIds);
- /**
- * 供应商包含的标签词
- * @param shopId
- * @return
- */
- List<String> getShopKeyword(@Param("shopId") Integer shopId);
- /**
- * 访问供应商相关用户所在地区
- * @param startTime
- * @param endTime
- * @param labels
- * @return
- */
- List<String> getRegion(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("labels") List<String> labels);
- /**
- * 用户身份
- * @param startTime
- * @param endTime
- * @param labels
- * @return
- */
- List<ReturnEntityVo> getUserIdentity(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("labels") List<String> labels);
- /**
- * 机构类型
- * @param startTime
- * @param endTime
- * @param labels
- * @return
- */
- List<ReturnEntityVo> getClubType(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("labels") List<String> labels);
- /**
- * 供应商下有报表的月份集合
- * @param shopId
- * @return
- */
- List<String> getMarketReportDataList(@Param("shopId") Integer shopId);
- }
|