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){