Commit b3e54896 by huangfusuper

biz_date向前-1错误修改(之前只-了一小时)

parent f4d3f688
package com.byit.strategy.task.script;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
......@@ -82,7 +81,7 @@ public class ScriptSpecialParametersTaskRunTheLifeCycleCallback implements TaskR
Map<String, String> commandParam = scriptParamAndPlaceholderDto.getParam();
//向前偏移一天
DateTime dateTime = DateUtil.offset(new Date(), DateField.HOUR_OF_DAY, -1);
DateTime dateTime = DateUtil.offsetDay(new Date(), -1);
//替换参数
if (CollectionUtil.isEmpty(placeholder)) {
placeholder = new HashMap<>(2);
......
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