dev_xds
姜玉琦 2023-10-20 17:55:58 +08:00
commit c52ea9d74e
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import com.ruoyi.common.core.redis.RedisCache;
import com.yanzhu.jh.video.domain.SurProjectPhotography; import com.yanzhu.jh.video.domain.SurProjectPhotography;
import com.yanzhu.jh.video.service.ISurProjectPhotographyService; import com.yanzhu.jh.video.service.ISurProjectPhotographyService;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -21,7 +22,11 @@ public class ProjectPhotographyController extends BaseController {
ISurProjectPhotographyService photographyService; ISurProjectPhotographyService photographyService;
@Autowired @Autowired
private RedisCache redisCache; 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(); String key="bgscreen_photography_listPhotography_"+where.getProjectId();
Object obj=redisCache.getCacheObject(key); Object obj=redisCache.getCacheObject(key);
if(obj!=null){ if(obj!=null){