缓存优化
This commit is contained in:
@@ -22,7 +22,7 @@ public interface CourseDetailsDao extends BaseMapper<CourseDetails> {
|
|||||||
* @param price 全剧价格
|
* @param price 全剧价格
|
||||||
* @param wholesalePrice 10集价格
|
* @param wholesalePrice 10集价格
|
||||||
*/
|
*/
|
||||||
@Cacheable(cacheNames = "courseSets", key = "#courseId")
|
@Cacheable(cacheNames = "courseSets", key = "#courseId + '-' + #isPrice")
|
||||||
List<CourseDetailsSetVo> courseSets(@Param("courseId") Long courseId, Integer isPrice, BigDecimal wholesalePrice);
|
List<CourseDetailsSetVo> courseSets(@Param("courseId") Long courseId, Integer isPrice, BigDecimal wholesalePrice);
|
||||||
|
|
||||||
List<CourseDetails> findByCourseId(@Param("id") Long id, @Param("userId") Long userId);
|
List<CourseDetails> findByCourseId(@Param("id") Long id, @Param("userId") Long userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user