缓存优化

This commit is contained in:
2025-01-06 18:10:25 +08:00
parent cbb2d5f77a
commit 9b3de4624a

View File

@@ -22,7 +22,7 @@ public interface CourseDetailsDao extends BaseMapper<CourseDetails> {
* @param price 全剧价格
* @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<CourseDetails> findByCourseId(@Param("id") Long id, @Param("userId") Long userId);