|
|
@@ -67,8 +67,8 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
|
|
|
void addLike(Long id, int num);
|
|
|
|
|
|
@Query(value = "select distinct c from Collection c join Like l on l.collectionId = c.id " +
|
|
|
- "where l.userId = ?1 and l.del = false and c.del = false")
|
|
|
- List<Collection> userLikes(Long userId);
|
|
|
+ "where l.userId = ?1 and l.del = false and c.del = false and c.companyId = ?2")
|
|
|
+ List<Collection> userLikes(Long userId, Long companyId);
|
|
|
|
|
|
List<Collection> findByScheduleSaleTrueAndOnShelfFalseAndStartTimeBeforeAndDelFalse(LocalDateTime time);
|
|
|
|