admin
2020-04-26 953f4931a963e031dc35c9a42d342672317fb933
fanli/src/main/java/com/yeshi/fanli/service/impl/user/StrategyPictureImpl.java
@@ -25,8 +25,27 @@
   }
   @Override
   public List<StrategyPicture> getStrategyPictureListCache() {
      return strategyPictureMapper.selectStrategyPictureList();
   public List<StrategyPicture> getTextStrategyPictureListCache() {
      List<StrategyPicture> list = strategyPictureMapper.selectStrategyPictureList();
      for (int i = 0; i < list.size(); i++) {
         if (list.get(i).getType() != StrategyPicture.TYPE_TEXT) {
            list.remove(i);
            i--;
         }
      }
      return list;
   }
   @Override
   public List<StrategyPicture> getVideoStrategyPictureListCache() {
      List<StrategyPicture> list = strategyPictureMapper.selectStrategyPictureList();
      for (int i = 0; i < list.size(); i++) {
         if (list.get(i).getType() != StrategyPicture.TYPE_VIDEO) {
            list.remove(i);
            i--;
         }
      }
      return list;
   }
}