| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import net.sf.ehcache.Element;
|
| | | import net.sf.json.JSONArray;
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.config.SuperHotSearchService;
|
| | | import com.yeshi.fanli.service.inter.config.SystemService;
|
| | | import com.yeshi.fanli.service.inter.goods.HonestService;
|
| | | import com.yeshi.fanli.service.inter.hongbao.HongBaoManageService;
|
| | | import com.yeshi.fanli.service.inter.lable.QualityGoodsService;
|
| | | import com.yeshi.fanli.service.inter.lable.TaoKeGoodsService;
|
| | |
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.taobao.SearchFilterUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil;
|
| | |
|
| | | import net.sf.ehcache.Element;
|
| | | import net.sf.json.JSONArray;
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | | @Controller
|
| | | @RequestMapping("api/v1/search")
|
| | |
| | |
|
| | | @Resource
|
| | | private HongBaoManageService manageService;
|
| | |
|
| | | @Resource
|
| | | private HonestService honestService;
|
| | |
|
| | | @Resource
|
| | | private TaoBaoUnionConfigService taoBaoUnionConfigService;
|
| | |
| | |
|
| | | @RequestMapping("specialSearch")
|
| | | public void specialSearch(AcceptData acceptData, long hid, int page, PrintWriter out) {
|
| | | Honest honest = honestService.getOne(hid);
|
| | | Honest honest = null;
|
| | | if (honest == null) {
|
| | | out.print(JsonUtil.loadFalseResult(""));
|
| | | return;
|
| | |
| | | }
|
| | |
|
| | | Gson gson = new GsonBuilder().create();
|
| | | data.put("words", gson.toJson(listRecommendWords));
|
| | | if (data != null)
|
| | | data.put("words", gson.toJson(listRecommendWords));
|
| | |
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|