Commit ded5437b authored by yanzg's avatar yanzg

修改MQ请求尸体,防止出错

parent 4eef265c
...@@ -880,7 +880,7 @@ public class DateHelper { ...@@ -880,7 +880,7 @@ public class DateHelper {
if (dateTime == null) { if (dateTime == null) {
return null; return null;
} }
Date hour = DateHelper.getDateTime(DateHelper.getDateTimeString("yyyy-MM-dd HH:mm:00.000", dateTime)); Date hour = DateHelper.getDateTime(DateHelper.getDateTimeString("yyyy-MM-dd HH:00:00.000", dateTime));
long totalMill = dateTime.getTime() - hour.getTime(); long totalMill = dateTime.getTime() - hour.getTime();
long unit = totalMill / MINUTE_UNIT / minute; long unit = totalMill / MINUTE_UNIT / minute;
Date to = new Date(hour.getTime() + unit * MINUTE_UNIT * minute); Date to = new Date(hour.getTime() + unit * MINUTE_UNIT * minute);
......
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