Authored by wangnan

自动客服 fix

1 package com.yoho.search.restapi.others; 1 package com.yoho.search.restapi.others;
2 2
3 -import java.util.Map;  
4 -  
5 -import javax.servlet.http.HttpServletRequest;  
6 - 3 +import com.yoho.search.common.cache.aop.SearchCacheAble;
  4 +import com.yoho.search.common.utils.HttpServletRequestUtils;
  5 +import com.yoho.search.models.SearchApiResult;
  6 +import com.yoho.search.service.service.IRobotQuestionService;
7 import org.springframework.beans.factory.annotation.Autowired; 7 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.stereotype.Controller; 8 import org.springframework.stereotype.Controller;
9 import org.springframework.web.bind.annotation.RequestMapping; 9 import org.springframework.web.bind.annotation.RequestMapping;
10 import org.springframework.web.bind.annotation.RequestMethod; 10 import org.springframework.web.bind.annotation.RequestMethod;
11 import org.springframework.web.bind.annotation.ResponseBody; 11 import org.springframework.web.bind.annotation.ResponseBody;
12 12
13 -import com.yoho.search.common.cache.aop.SearchCacheAble;  
14 -import com.yoho.search.common.utils.HttpServletRequestUtils;  
15 -import com.yoho.search.models.SearchApiResult;  
16 -import com.yoho.search.service.service.IRobotQuestionService; 13 +import javax.servlet.http.HttpServletRequest;
  14 +import java.util.Map;
17 15
18 /** 16 /**
19 * Created by wangnan on 2016/12/13. 17 * Created by wangnan on 2016/12/13.
@@ -30,7 +28,7 @@ public class RobotQuestionController { @@ -30,7 +28,7 @@ public class RobotQuestionController {
30 * @param request 28 * @param request
31 * @return 29 * @return
32 */ 30 */
33 - @SearchCacheAble(cacheInMinute = 10, cacheName = "ROBOT_QUESTION") 31 + @SearchCacheAble(cacheInMinute = 1, cacheName = "ROBOT_QUESTION")
34 @RequestMapping(method = RequestMethod.GET, value = "/robotquestion") 32 @RequestMapping(method = RequestMethod.GET, value = "/robotquestion")
35 @ResponseBody 33 @ResponseBody
36 public SearchApiResult searchRobotQuestion(HttpServletRequest request) { 34 public SearchApiResult searchRobotQuestion(HttpServletRequest request) {