| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (type == null) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入类型"));
|
| | | return;
|
| | | }
|
| | | |
| | | List<CommonContentNav> list = null;
|
| | | if (type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | if (type == null || type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | list = commonTemplateContentService.getNavList(CommonContentTypeEnum.valueOf(key));
|
| | | } else if (type == Constant.SOURCE_TYPE_JD) {
|
| | | // 暂无分类
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (type == null) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入类型"));
|
| | | return;
|
| | | }
|
| | | |
| | | if (type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | if (type == null || type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | getListTB(acceptData, key, page, cid, out);
|
| | | return;
|
| | | }
|
| | |
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
|
| | | .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
|
| | | for (JDGoods goods : goodsList) {
|
| | | array.add(gson.toJson(GoodsDetailVOFactory.convertJDGoods(goods, null, fanLiRate, shareRate)));
|
| | | array.add(gson.toJson(GoodsDetailVOFactory.convertJDGoods(goods, fanLiRate, shareRate)));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | Gson gson = JsonUtil.getConvertBigDecimalToStringSubZeroBuilder(new GsonBuilder())
|
| | | .excludeFieldsWithoutExposeAnnotation().setDateFormat("yyyy-MM-dd").create();
|
| | | for (PDDGoodsDetail goods : goodsList) {
|
| | | array.add(gson.toJson(GoodsDetailVOFactory.convertPDDGoods(goods, null, fanLiRate, shareRate)));
|
| | | array.add(gson.toJson(GoodsDetailVOFactory.convertPDDGoods(goods, fanLiRate, shareRate)));
|
| | | }
|
| | | }
|
| | | }
|