yujian
2019-10-28 9319c42fe02d041cee260ca0db8df67bcdf1ea0a
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/BrandControllerV2.java
@@ -349,7 +349,7 @@
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getList", method = RequestMethod.POST)
//   @RequestMapping(value = "getList", method = RequestMethod.POST)
   public void getList(AcceptData acceptData, Integer page, Long cid, Long uid, PrintWriter out) {
      if (page == null || page < 1) {
         out.print(JsonUtil.loadFalseResult("页码不正确"));
@@ -391,7 +391,7 @@
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
//   @RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
   public void getShopInfoV2(AcceptData acceptData, Integer page, Long id, Long uid, PrintWriter out) {
      
      if (id == null) {
@@ -405,7 +405,7 @@
      JSONObject data = new JSONObject();
      if (page == 1) {
         // 2、顶部轮播图
         List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("index_top");
         List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("brand_picture");
         if (oldtopPicList != null && oldtopPicList.size() > 0)
            topPicList.addAll(oldtopPicList);
         TaoBaoShop taoBaoShop = taoBaoShopService.selectByPrimaryKey(id);
@@ -551,7 +551,7 @@
    *            精选1, 足迹列表2
    * @param out
    */
   @RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
//   @RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
   public void getHistoryV2(AcceptData acceptData, Integer page, Long uid, Integer type, PrintWriter out) {
      if (type == null) {
         out.print(JsonUtil.loadFalseResult("类型不正确"));
@@ -623,7 +623,7 @@
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getListV3", method = RequestMethod.POST)
   @RequestMapping(value = "getList", method = RequestMethod.POST)
   public void getListV3(AcceptData acceptData, Integer page, Long cid, Long uid, PrintWriter out) {
      if (page == null || page < 1) {
         out.print(JsonUtil.loadFalseResult("页码不正确"));
@@ -666,7 +666,7 @@
    * @param acceptData
    * @param out
    */
   @RequestMapping(value = "getShopInfoV3", method = RequestMethod.POST)
   @RequestMapping(value = "getShopInfoV2", method = RequestMethod.POST)
   public void getShopInfoV3(AcceptData acceptData, Integer page, Long id, Long uid, PrintWriter out) {
      if (id == null) {
         out.print(JsonUtil.loadFalseResult("缺失店铺id"));
@@ -709,7 +709,7 @@
      if (page == 1 && array.size() > 0) {
         // 2、顶部轮播图
         List<SwiperPicture> topPicList = new ArrayList<>();
         List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("index_top");
         List<SwiperPicture> oldtopPicList = swiperPictureService.getByBannerCard("brand_picture");
         if (oldtopPicList != null && oldtopPicList.size() > 0)
            topPicList.addAll(oldtopPicList);
         
@@ -739,7 +739,7 @@
    *            精选1, 足迹列表2
    * @param out
    */
   @RequestMapping(value = "getHistoryV3", method = RequestMethod.POST)
   @RequestMapping(value = "getHistoryV2", method = RequestMethod.POST)
   public void getHistoryV3(AcceptData acceptData, Integer page, Long uid, Integer type, PrintWriter out) {
      if (type == null) {
         out.print(JsonUtil.loadFalseResult("类型不正确"));
@@ -762,7 +762,8 @@
      List<BrandInfo> list = new ArrayList<BrandInfo>();
      if (listRecord != null && listRecord.size() > 0) {
         for (BrandInfoRecord history : listRecord) {
             list.add(history.getBrandInfo());
            if (history.getBrandInfo() != null)
               list.add(history.getBrandInfo());
         }
      }