Browse Source

套系上下架1.1

sjx 2 years ago
parent
commit
d1125e7ec5

+ 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);
     }
 }