From 36a64089b81c11f9880b5043d4efa763f99433e6 Mon Sep 17 00:00:00 2001 From: haha Date: Wed, 18 Oct 2023 22:43:43 +0800 Subject: [PATCH] update code --- .../web/controller/ProjectPhotographyController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectPhotographyController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectPhotographyController.java index a05dd7af..3acc817b 100644 --- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectPhotographyController.java +++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProjectPhotographyController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.redis.RedisCache; import com.yanzhu.jh.video.domain.SurProjectPhotography; import com.yanzhu.jh.video.service.ISurProjectPhotographyService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -21,7 +22,11 @@ public class ProjectPhotographyController extends BaseController { ISurProjectPhotographyService photographyService; @Autowired private RedisCache redisCache; - public AjaxResult listPhotography(SurProjectPhotography where){ + + @GetMapping("/listPhotography") + public AjaxResult listPhotography(long projectId){ + SurProjectPhotography where =new SurProjectPhotography(); + where.setProjectId(projectId); String key="bgscreen_photography_listPhotography_"+where.getProjectId(); Object obj=redisCache.getCacheObject(key); if(obj!=null){