|
@@ -109,7 +109,7 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
if (secretEnum == null) {
|
|
|
return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "获取secret失败");
|
|
|
}
|
|
|
- if(!DateUtils.isValidDate(limitDate)){
|
|
|
+ if (!DateUtils.isValidDate(limitDate)) {
|
|
|
return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "系统异常");
|
|
|
}
|
|
|
String channel = secretEnum.channel;
|
|
@@ -118,11 +118,13 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
if (l > limit) {
|
|
|
return CommonResponse.create(500, "数据不存在");
|
|
|
}
|
|
|
- String dt = date.replace("-", "");
|
|
|
+ String dt = date.replace("-", "").substring(0, 8);
|
|
|
String sql = String.format("SELECT * FROM alg_growth_3rd_gh_reply_uv_report WHERE dt = %s AND channel = %s",
|
|
|
dt, channel);
|
|
|
+ System.out.println(sql);
|
|
|
List<ReportUvVo> res = new ArrayList<>();
|
|
|
List<Record> recordList = odpsManager.query(sql);
|
|
|
+ System.out.println(recordList);
|
|
|
if (CollectionUtils.isEmpty(recordList)) {
|
|
|
return CommonResponse.success(res);
|
|
|
}
|