Commit 5a25f9cd authored by wanghao's avatar wanghao

1 预计老化结束时间调整

parent 114a80ab
......@@ -117,7 +117,7 @@ public class AllCommandHandler {
public Date getAgingEndTime() {
List<SysConfig> sysConfigs = configService.selectAgingStageTime();
int milliseconds = getAgingMilliseconds(sysConfigs);
return DateUtils.addMilliseconds(new Date(), milliseconds);
return DateUtils.addMinutes(new Date(), milliseconds);
}
private int getAgingMilliseconds(List<SysConfig> sysConfigs) {
......@@ -126,9 +126,7 @@ public class AllCommandHandler {
sysConfigs.size() > AGING_STAGE_INDEX) {
SysConfig config = sysConfigs.get(AGING_STAGE_INDEX);
log.info("获取老化时间配置config.getConfigValue:{}", config.getConfigValue());
if (config != null && StringUtils.isNotBlank(config.getConfigValue())) {
log.info("Integer.parseInt(config.getConfigValue()):{}", Integer.parseInt(config.getConfigValue()));
return Integer.parseInt(config.getConfigValue());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment