yujian
2019-08-05 c38f37a3c8020dee1cb8d390e0a88201e9aca490
fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/DynamicInfoServiceImpl.java
@@ -909,7 +909,7 @@
   
   
   @Override
   @Cacheable(value = "dynamicCache", key = "'queryV2-'+#platform+'-'+#version+'-'+#start+'-'+#count+'-'+#cid+'-'+#subId")
//   @Cacheable(value = "dynamicCache", key = "'queryV2-'+#platform+'-'+#version+'-'+#start+'-'+#count+'-'+#cid+'-'+#subId")
   public List<DynamicInfo> queryV2(int platform, int version, int start, int count, Long cid, Long subId) {
      List<DynamicInfo> listNew = new ArrayList<DynamicInfo>();
      List<DynamicInfo> list = dynamicInfoDao.query(start, count, cid, subId);
@@ -978,9 +978,9 @@
    * 更新商品信息
    */
   public void updateGoodInfo(List<DynamicInfo> list) {
      if (!Constant.IS_OUTNET) {
         return; // 外网进行更新
      }
//      if (!Constant.IS_OUTNET) {
//         return; // 外网进行更新
//      }
      if (list == null || list.size() == 0) {
         return;
@@ -1014,6 +1014,7 @@
               }
            }
            boolean needUpdate = false;
            // 已下架ID
            List<Long> listDown = new ArrayList<Long>();
            // 商品列表
@@ -1081,7 +1082,17 @@
                     dynamicInfo.setDesc(shareMoneyDesc);
                  }
               }
               // 需要更新信息;
               needUpdate = true;
            }
            // 无效更新信息
            if (!needUpdate) {
               continue;
            }
            // 更新商品信息
            dynamicInfo.setImgs(listPicture);
            // 商品已下架