|
|
@@ -3,7 +3,7 @@ package com.uas.platform.b2c.trade.presale.dao;
|
|
|
import com.uas.platform.b2c.trade.presale.model.StoreFocus;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
-import org.springframework.data.mongodb.repository.Query;
|
|
|
+import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
@@ -25,6 +25,46 @@ public interface StoreFocusDao extends JpaSpecificationExecutor<StoreFocus>, Jpa
|
|
|
*/
|
|
|
List<StoreFocus> findStoreFocusByUseruuAndEnuu(Long useruu, Long enuu);
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据个人的uu号和enuu号查找所有记录
|
|
|
+ *
|
|
|
+ * @param useruu 个人uu
|
|
|
+ * @param enuu 企业enuu
|
|
|
+ * @return List<StoreFocus> 返回店铺关注列表
|
|
|
+ */
|
|
|
+ @Query(value = "select s from StoreFocus s where s.useruu =:useruu and s.enuu =:enuu and s.dissociative =:dissociative")
|
|
|
+ List<StoreFocus> findStoreFocusByUseruuAndEnuuAndDissociative(@Param("useruu") Long useruu, @Param("enuu")Long enuu, @Param("dissociative")Integer dissociative);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据个人的uu号和是否是游离类型查找所有记录
|
|
|
+ *
|
|
|
+ * @param useruu 个人uu
|
|
|
+ *
|
|
|
+ * @return List<StoreFocus> 返回店铺关注列表
|
|
|
+ */
|
|
|
+ @Query(value = "select s from StoreFocus s where s.useruu =:useruu and s.dissociative =:dissociative")
|
|
|
+ List<StoreFocus> findStoreFocusByUseruuAndDissociative(@Param("useruu")Long useruu, @Param("dissociative")Integer dissociative);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据个人的uu号和enuu号查找所有记录
|
|
|
+ *
|
|
|
+ * @param useruu 个人uu
|
|
|
+ * @param dissociative dissociative 游离的信息
|
|
|
+ * @return List<StoreFocus> 返回店铺关注列表
|
|
|
+ */
|
|
|
+ @Query(value = "select count(s) from StoreFocus s where s.useruu =:useruu and s.dissociative =:dissociative")
|
|
|
+ Integer findStoreFocusCountByUseruuAndDissociative(@Param("useruu")Long useruu, @Param("dissociative")Integer dissociative);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据个人的uu号和enuu号查找所有记录
|
|
|
+ *
|
|
|
+ * @param useruu 个人uu
|
|
|
+ * @param enuu 企业enuu
|
|
|
+ * @return List<StoreFocus> 返回店铺关注列表
|
|
|
+ */
|
|
|
+ @Query(value = "select count(s) from StoreFocus s where s.useruu =:useruu and s.dissociative =:dissociative and s.enuu =:enuu")
|
|
|
+ Integer findStoreFocusCountByUseruuAndEnuuAndDissociative(@Param("useruu") Long useruu, @Param("enuu") Long enuu, @Param("dissociative") Integer dissociative);
|
|
|
+
|
|
|
/**
|
|
|
* 根据个人的uu号、enuu号、storeid查找记录
|
|
|
*
|