admin
2020-07-07 c9cbad5f5d18c6b2ac5a063e41007933d7028329
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
@@ -5,6 +5,7 @@
import java.util.List;
import javax.annotation.Resource;
import javax.swing.colorchooser.AbstractColorChooserPanel;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -58,10 +59,6 @@
@Controller
@RequestMapping("api/v2/brand")
public class BrandControllerV2 {
   @Resource
   private BrandClassService brandClassService;
   @Resource
   private BrandClassShopService brandClassShopService;
@@ -110,7 +107,7 @@
      if (page == null || page < 1) {
         page = 1;
      }
      JSONObject data = brandClassShopService.listEffectiveCacheV2(page, cid,acceptData.getPlatform(),acceptData.getVersion());
      JSONObject data = brandClassShopService.listEffectiveCacheV2(page, cid,acceptData.getPlatform(),acceptData.getVersion(),acceptData.getSystem());
      out.print(JsonUtil.loadTrueResult(data));
   }
@@ -308,7 +305,7 @@
               .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
         ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(),
               acceptData.getVersion());
               acceptData.getVersion(),acceptData.getSystem());
         // 商品信息过滤
         listGoodsBrief = taoBaoGoodsUpdateService.filterImportantTaoBaoGoods(listGoodsBrief);
@@ -373,7 +370,7 @@
      
      JSONObject data = new JSONObject();
      if (page == 1 && cid != null) {
         List<BrandInfo> brandlist = brandInfoService.listValidBrandInfoCache(cid);
         List<BrandInfo> brandlist = brandInfoService.listValidBrandInfoCache(cid,acceptData.getSystem());
         if(brandlist == null)
            brandlist = new ArrayList<BrandInfo>();
         data.put("brandlist", JsonUtil.getApiCommonGson().toJson(brandlist));
@@ -382,7 +379,7 @@
      
      long count = brandInfoService.countBrandInfo(cid);
      
      List<BrandInfoVO> list = brandInfoService.listBrandInfoCache((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE, cid,acceptData.getPlatform(),acceptData.getVersion());
      List<BrandInfoVO> list = brandInfoService.listBrandInfoCache((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE, cid,acceptData.getPlatform(),acceptData.getVersion(),acceptData.getSystem());
      if (list == null)
         list = new ArrayList<BrandInfoVO>();
      
@@ -532,7 +529,7 @@
               .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
         ConfigParamsDTO paramsDTO = orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(),
               acceptData.getVersion());
               acceptData.getVersion(),acceptData.getSystem());
         // 商品信息过滤
         listGoodsBrief = taoBaoGoodsUpdateService.filterImportantTaoBaoGoods(listGoodsBrief);
@@ -676,15 +673,15 @@
      }
      
      if (page == 1 && cid != null) {
         List<BrandInfo> brandlist = brandInfoService.listValidByCidToApp(cid);
         List<BrandInfo> brandlist = brandInfoService.listValidByCidToApp(cid,acceptData.getSystem());
         if(brandlist == null)
            brandlist = new ArrayList<BrandInfo>();
         data.put("brandlist", JsonUtil.getApiCommonGson().toJson(brandlist));
      }
      
      long count = brandInfoService.countValidByCidToApp(cid);
      long count = brandInfoService.countValidByCidToApp(cid,acceptData.getSystem());
      
      List<BrandInfoVO> list = brandInfoService.listValidToApp((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE, cid,acceptData.getPlatform(),acceptData.getVersion());
      List<BrandInfoVO> list = brandInfoService.listValidToApp((page - 1) * Constant.PAGE_SIZE, Constant.PAGE_SIZE, cid,acceptData.getPlatform(),acceptData.getVersion(), acceptData.getSystem());
      if (list == null)
         list = new ArrayList<BrandInfoVO>();
      
@@ -722,7 +719,7 @@
            .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
      
      ConfigParamsDTO paramsDTO =  orderHongBaoMoneyComputeService.getShowComputeRate(acceptData.getPlatform(),
            acceptData.getVersion());
            acceptData.getVersion(),acceptData.getSystem());
      JSONArray array = new JSONArray();
      
      List<BrandGoodsCahe> listGoods = brandGoodsCaheService.getByBrandId((page - 1) * 50, 50,id);