缓存优化
This commit is contained in:
parent
cbb2d5f77a
commit
9b3de4624a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue