|
@@ -162,7 +162,7 @@ public class SceneCensusService extends TmSceneCensusServiceImpl {
|
|
|
public Map<String , Object> getPvUvHistoryFromKankan(LocalDate start , LocalDate end , String sceneNum){
|
|
|
Map<String , Object> result = new HashMap<>();
|
|
|
if(null == start || null == end || StringUtils.isBlank(sceneNum)){
|
|
|
- log.info("入参缺失,无法去四维看看获取场景的pv统计数据");
|
|
|
+ log.info("入参缺失,无法去指房宝获取场景的pv统计数据");
|
|
|
return result;
|
|
|
}
|
|
|
List<Map<String, Object>> scenePvList = new ArrayList<>();
|
|
@@ -201,7 +201,7 @@ public class SceneCensusService extends TmSceneCensusServiceImpl {
|
|
|
public List<Map<String, Object>> getHotHistoryFromKankan(LocalDate start , LocalDate end , String sceneNum) {
|
|
|
List<Map<String, Object>> hotVisitList = new ArrayList<>();
|
|
|
if (null == start || null == end || StringUtils.isBlank(sceneNum)) {
|
|
|
- log.info("入参缺失,无法去四维看看获取场景的pv统计数据");
|
|
|
+ log.info("入参缺失,无法去指房宝获取场景的pv统计数据");
|
|
|
return hotVisitList;
|
|
|
}
|
|
|
String url = kankanHost + KANKAN_QUERY_PATH;
|
|
@@ -241,23 +241,23 @@ public class SceneCensusService extends TmSceneCensusServiceImpl {
|
|
|
|
|
|
public JSONArray parseKanKanRsp(JSONObject result) {
|
|
|
if (null == result) {
|
|
|
- throw new CommonBaseException(ResultCodeEnum.D101, "四维看看返回数据异常");
|
|
|
+ throw new CommonBaseException(ResultCodeEnum.D101, "指房宝返回数据异常");
|
|
|
}
|
|
|
log.info("看看获取场景列表返回:{}", result.toJSONString());
|
|
|
int code = -10;
|
|
|
if (result.containsKey("code")) {
|
|
|
code = (int) result.get("code");
|
|
|
if (code != 200) {
|
|
|
- throw new CommonBaseException(ResultCodeEnum.D101, "调用四维看看失败");
|
|
|
+ throw new CommonBaseException(ResultCodeEnum.D101, "调用指房宝失败");
|
|
|
}
|
|
|
JSONArray data = result.getJSONArray("message");
|
|
|
if (null == data) {
|
|
|
- throw new CommonBaseException(ResultCodeEnum.D101, "四维看看返回数据异常-缺data");
|
|
|
+ throw new CommonBaseException(ResultCodeEnum.D101, "指房宝返回数据异常-缺data");
|
|
|
}
|
|
|
- log.debug("查询到四维看看的统计数据:{}", data.toJSONString());
|
|
|
+ log.debug("查询到指房宝的统计数据:{}", data.toJSONString());
|
|
|
return data;
|
|
|
} else {
|
|
|
- throw new CommonBaseException(ResultCodeEnum.D101, "调用四维看看失败");
|
|
|
+ throw new CommonBaseException(ResultCodeEnum.D101, "调用指房宝失败");
|
|
|
}
|
|
|
}
|
|
|
|