...
|
...
|
@@ -15,10 +15,10 @@ public interface PublicUserAttentionRepository extends JpaRepository<PublicUserA |
|
|
int countByTargetIdInAndUidInAndAttentionTypeIsAndSrcChannelIsAndCreateTimeBetween(List<Integer> targetIds,List<Integer> uids,Integer attentionType,Integer srcChannel, Long startTime,Long endTIme);
|
|
|
|
|
|
@Query(value = "select new com.yoho.datasync.fullsync.dal.repository.pcms.model.UidAndAttention(uid, count(id))" +
|
|
|
" from PublicUserAttention where createTime > :startTime and create_time <:endTime and attentionType=1 and status=1 group by uid")
|
|
|
" from PublicUserAttention where createTime > :startTime and create_time <=:endTime and attentionType=1 and status=1 group by uid")
|
|
|
List<UidAndAttention> selectUidAttenCount(@Param("startTime")Long startTime, @Param("endTime")Long endTime);
|
|
|
|
|
|
@Query(value = "select new com.yoho.datasync.fullsync.dal.repository.pcms.model.UidAndAttention(targetId, count(id),authorType)" +
|
|
|
" from PublicUserAttention where createTime > :startTime and create_time <:endTime and attentionType=1 and status=1 group by targetId,authorType")
|
|
|
" from PublicUserAttention where createTime > :startTime and create_time <=:endTime and attentionType=1 and status=1 group by targetId,authorType")
|
|
|
List<UidAndAttention> selectUidFansCount(@Param("startTime")Long startTime, @Param("endTime")Long endTime);
|
|
|
} |
...
|
...
|
|