|
@@ -21,10 +21,14 @@ public interface DownloadInfoRepository extends BasicJpaRepository<DownloadInfo,
|
|
DownloadInfo findByLessonUserId(String uid, String lessonId, String mac);
|
|
DownloadInfo findByLessonUserId(String uid, String lessonId, String mac);
|
|
|
|
|
|
@Modifying
|
|
@Modifying
|
|
- @Query(value = "update DownloadInfo info set info.status = ?3 where info.userId = ?1 and info.lessonId = ?2 AND info.mac = ?3 ")
|
|
|
|
|
|
+ @Query(value = "update DownloadInfo info set info.status = ?4 where info.userId = ?1 and info.lessonId = ?2 AND info.mac = ?3 ")
|
|
int updateByLessonUserId(String uid, String lessonId, String mac, BaseStatusEnum status);
|
|
int updateByLessonUserId(String uid, String lessonId, String mac, BaseStatusEnum status);
|
|
|
|
|
|
@Modifying
|
|
@Modifying
|
|
@Query(value = "update DownloadInfo info set info.needUpdate = 1 where info.lessonId = ?1 AND info.status = ?2")
|
|
@Query(value = "update DownloadInfo info set info.needUpdate = 1 where info.lessonId = ?1 AND info.status = ?2")
|
|
int setUpdateByLessonId(String lessonId, BaseStatusEnum status);
|
|
int setUpdateByLessonId(String lessonId, BaseStatusEnum status);
|
|
|
|
+
|
|
|
|
+ @Modifying
|
|
|
|
+ @Query(value = "update DownloadInfo info set info.downloadStatus = ?3 where info.userId = ?1 AND info.mac = ?2")
|
|
|
|
+ int downloadFail(String uid, String mac, int failDownload);
|
|
}
|
|
}
|