Merge branch 'dev' of http://62.234.3.186:3000/sxyanzhu/jhprjv2 into dev
commit
c52ea9d74e
|
@ -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){
|
||||||
|
|
Loading…
Reference in New Issue