Browse Source

定时任务不加补充字段

sjx 2 years ago
parent
commit
d0c30407cc

+ 0 - 4
ruoyi-system/src/main/java/com/ruoyi/system/utils/SpringTaskConfig.java

@@ -45,10 +45,6 @@ public class SpringTaskConfig {
                     item.setType((long) 0);
                 }
             }
-            if (!type.equals(item.getType())){
-                item.setUpdateBy(getUsername());
-                item.setUpdateTime(DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS,DateUtils.getTime()));
-            }
             return item;
         }).collect(Collectors.toList());
         postCollectionsSystemMapper.updateBatchById(postCollectionsSystemList);