Commit d9524b48 by huangfusuper

修改格式化时间错误

parent 34f2e1b1
package com.byit.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUnit;
import com.byit.job.utils.DateUtil;
import com.byit.mapper.FlowStatusSnapshootMapper;
......@@ -29,6 +30,11 @@ public class FlowStatusSnapshootServiceImpl implements FlowStatusSnapshootServic
@Override
public void removeAndSaveSnapshoot(List<FlowStatusSnapshoot> allFlow) {
if(CollectionUtil.isEmpty(allFlow)) {
log.info("-----------------无需快照插入-------------------");
return;
}
//获取当天的日期
String thisDateStr = DateUtil.dateFormat(new Date(), "yyyyMMdd");
String thisHourStr = DateUtil.dateFormat(new Date(), "HH");
......
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