|
@@ -47,8 +47,8 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
@Autowired
|
|
|
private ODPSManager odpsManager;
|
|
|
|
|
|
- @ApolloJsonValue("${limitDate:2024-10-31}")
|
|
|
- private String limitDate;
|
|
|
+ @ApolloJsonValue("${canViewReportDate:2024-10-31}")
|
|
|
+ private String canViewReportDate;
|
|
|
|
|
|
private Map<String, ReplyStrategyService> strategyServiceMap;
|
|
|
|
|
@@ -109,12 +109,12 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
if (secretEnum == null) {
|
|
|
return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "获取secret失败");
|
|
|
}
|
|
|
- if (!DateUtils.isValidDate(limitDate)) {
|
|
|
+ if (!DateUtils.isValidDate(canViewReportDate)) {
|
|
|
return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "系统异常");
|
|
|
}
|
|
|
String channel = secretEnum.channel;
|
|
|
long targetTime = DateUtils.dateStrToTimestamp(date, "yyyy-MM-dd");
|
|
|
- long limitTime = DateUtils.dateStrToTimestamp(limitDate, "yyyy-MM-dd");
|
|
|
+ long limitTime = DateUtils.dateStrToTimestamp(canViewReportDate, "yyyy-MM-dd");
|
|
|
if (targetTime > limitTime) {
|
|
|
return CommonResponse.create(500, "数据不存在");
|
|
|
}
|