2 커밋 b31a3a8a0a ... c69edf53cc

작성자 SHA1 메시지 날짜
  sjx c69edf53cc Merge branch 'yellow' of http://39.105.160.25:10880/post-project-api/post into yellow 2 년 전
  sjx d1125e7ec5 套系上下架1.1 2 년 전
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

@@ -240,6 +240,10 @@ public class PostCollectionsSystemServiceImpl implements IPostCollectionsSystemS
 
 
     @Override
     @Override
     public int updateBatchById(List<PostCollectionsSystem> postCollectionsSystemList) {
     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);
         return postCollectionsSystemMapper.updateBatchById(postCollectionsSystemList);
     }
     }
 }
 }