| | |
| | | package com.yeshi.fanli.controller.client.v2;
|
| | |
|
| | | import java.io.PrintWriter;
|
| | | import java.math.BigDecimal;
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | |
| | | out.print(JsonUtil.loadFalseResult("页码不正确"));
|
| | | return;
|
| | | }
|
| | | |
| | | if (cid != null && cid == 0) {
|
| | | cid = null;
|
| | | }
|
| | |
|
| | | |
| | | JSONObject data = new JSONObject();
|
| | | if (page == 1 && cid == null) { // 精选页banner
|
| | | List<SwiperPicture> banners = swiperPictureService.getByBannerCardAndVersion("brand_banners",acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
|
| | | if (banners == null)
|
| | | banners = new ArrayList<>();
|
| | | data.put("banners", JsonUtil.getApiCommonGson().toJson(banners));
|
| | | }
|
| | | |
| | | if (page == 1 && cid != null) {
|
| | | List<BrandInfo> brandlist = brandInfoService.listValidByCidToApp(cid);
|
| | | if(brandlist == null)
|
| | | brandlist = new ArrayList<BrandInfo>();
|
| | | data.put("brandlist", JsonUtil.getApiCommonGson().toJson(brandlist));
|
| | | }
|
| | | |
| | |
|
| | | long count = brandInfoService.countValidByCidToApp(cid);
|
| | |
|