|
@@ -113,18 +113,16 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "系统异常");
|
|
|
}
|
|
|
String channel = secretEnum.channel;
|
|
|
- long l = DateUtils.dateStrToTimestamp(date, "yyyy-MM-dd");
|
|
|
- long limit = DateUtils.dateStrToTimestamp(limitDate, "yyyy-MM-dd");
|
|
|
- if (l > limit) {
|
|
|
+ long targetTime = DateUtils.dateStrToTimestamp(date, "yyyy-MM-dd");
|
|
|
+ long limitTime = DateUtils.dateStrToTimestamp(limitDate, "yyyy-MM-dd");
|
|
|
+ if (targetTime > limitTime) {
|
|
|
return CommonResponse.create(500, "数据不存在");
|
|
|
}
|
|
|
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);
|
|
|
}
|