| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getNavList", method = RequestMethod.POST)
|
| | | public void getNavList(AcceptData acceptData, String key, Integer goodsType, PrintWriter out) {
|
| | | public void getNavList(AcceptData acceptData, String key, Integer type, PrintWriter out) {
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入Key"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (type == null) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入类型"));
|
| | | return;
|
| | | }
|
| | | |
| | | List<CommonContentNav> list = null;
|
| | | if (goodsType == null || goodsType == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | if (type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | list = commonTemplateContentService.getNavList(CommonContentTypeEnum.valueOf(key));
|
| | | } else if (goodsType == Constant.SOURCE_TYPE_JD) {
|
| | | } else if (type == Constant.SOURCE_TYPE_JD) {
|
| | | // 暂无分类
|
| | | } else if (goodsType == Constant.SOURCE_TYPE_PDD) {
|
| | | } else if (type == Constant.SOURCE_TYPE_PDD) {
|
| | | // 暂无分类
|
| | | }
|
| | |
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getNavGoodsList", method = RequestMethod.POST)
|
| | | public void getNavContent(AcceptData acceptData, String key, Integer goodsType, Integer page, String cid, PrintWriter out) {
|
| | | public void getNavContent(AcceptData acceptData, String key, Integer type, Integer page, String cid, PrintWriter out) {
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入Key"));
|
| | | return;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (goodsType == null || goodsType == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | if (type == null) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请传入类型"));
|
| | | return;
|
| | | }
|
| | | |
| | | if (type == Constant.SOURCE_TYPE_TAOBAO) {
|
| | | getListTB(acceptData, key, page, cid, out);
|
| | | return;
|
| | | }
|
| | |
|
| | | if (goodsType == Constant.SOURCE_TYPE_JD) {
|
| | | if (type == Constant.SOURCE_TYPE_JD) {
|
| | | getListJD(acceptData, key, page, cid, out);
|
| | | return;
|
| | | }
|
| | |
|
| | | if (goodsType == Constant.SOURCE_TYPE_PDD) {
|
| | | if (type == Constant.SOURCE_TYPE_PDD) {
|
| | | getListPDD(acceptData, key, page, cid, out);
|
| | | return;
|
| | | }
|