| | |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | |
| | | |
| | | private static QiChaChaUtil qiChaChaUtil; |
| | | |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | |
| | | HttpResponse execute = get.execute(); |
| | | String body = execute.body(); |
| | | JSONObject jsonObject = JSONObject.parseObject(body); |
| | | jsonObject.put("query_type",0); |
| | | if("200".equals(jsonObject.get("Status"))){ |
| | | String string = jsonObject.toString(); |
| | | getInstance().redisCache.setCacheObject("qichacha_"+companyName,string,24, TimeUnit.HOURS); |
| | |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | Object 成都农夫明道餐饮管理有限责任公司 = getQiChaChaCompanyExceptionCheck("成都易睿博科技有限公司"); |
| | | System.out.println(成都农夫明道餐饮管理有限责任公司); |
| | | } |
| | | |
| | | |
| | | } |