|
@@ -11,8 +11,8 @@ import java.util.List;
|
|
|
|
|
|
public interface DownloadInfoRepository extends BasicJpaRepository<DownloadInfo, String> {
|
|
|
|
|
|
- @Query(value = "select info from DownloadInfo info where info.userId = ?1 AND info.eventType= ?2 AND info.status = ?3 ORDER BY info.gmtCreated DESC ")
|
|
|
- List<DownloadInfo> findByUserId(String uid, EventTypeEnum eventType, BaseStatusEnum status);
|
|
|
+ @Query(value = "select info from DownloadInfo info where info.userId = ?1 AND info.mac = ?2 AND info.eventType= ?3 AND info.status = ?4 ORDER BY info.gmtCreated DESC ")
|
|
|
+ List<DownloadInfo> findByUserId(String uid, String mac, EventTypeEnum eventType, BaseStatusEnum status);
|
|
|
|
|
|
@Query(value = "select info from DownloadInfo info where info.userId = ?1 AND info.lessonId = ?2 AND info.mac = ?3 AND info.eventType = ?4 AND info.status = ?5 ORDER BY info.gmtCreated DESC ")
|
|
|
DownloadInfo findByLessonUserId(String uid, String lessonId, String mac, EventTypeEnum eventType, BaseStatusEnum status);
|