sjx преди 2 години
родител
ревизия
d1125e7ec5
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PostCollectionsSystemServiceImpl.java

+ 4 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PostCollectionsSystemServiceImpl.java

@@ -202,6 +202,10 @@ public class PostCollectionsSystemServiceImpl implements IPostCollectionsSystemS
 
     @Override
     public int updateBatchById(List<PostCollectionsSystem> postCollectionsSystemList) {
+        for (int i = 0; i < postCollectionsSystemList.size(); i++) {
+            postCollectionsSystemList.get(i). setUpdateBy(getUsername());
+            postCollectionsSystemList.get(i).setUpdateTime(DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS,DateUtils.getTime()));
+        }
         return postCollectionsSystemMapper.updateBatchById(postCollectionsSystemList);
     }
 }