| | |
| | | import org.yeshi.utils.StringUtil;
|
| | |
|
| | | import com.google.gson.Gson;
|
| | | import com.yeshi.fanli.dto.vip.VIPSearchFilter;
|
| | | import com.yeshi.fanli.dto.vip.VIPSearchResult;
|
| | | import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo;
|
| | |
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public static VIPSearchResult search() {
|
| | | /**
|
| | | * 搜索
|
| | | * @Title: search
|
| | | * @Description: |
| | | * @param searchFilter
|
| | | * @return |
| | | * VIPSearchResult 返回类型
|
| | | * @throws
|
| | | */
|
| | | public static VIPSearchResult search(VIPSearchFilter searchFilter) {
|
| | | Map<String, String> taskParams = new HashMap<>();
|
| | | taskParams.put("keyword", "夹克 男士 带帽");
|
| | | taskParams.put("page", "1");
|
| | | taskParams.put("pageSize", "20");
|
| | | taskParams.put("requestId", UUID.randomUUID() + "");
|
| | | // taskParams.put("priceStart", "");
|
| | | // taskParams.put("priceEnd", "");
|
| | | taskParams.put("keyword", searchFilter.getKeyword());
|
| | | taskParams.put("page", searchFilter.getPage() + "");
|
| | | taskParams.put("pageSize", searchFilter.getPageSize() + "");
|
| | | taskParams.put("requestId", System.currentTimeMillis() + "_" + UUID.randomUUID());
|
| | | if (searchFilter.getPriceStart() != null)
|
| | | taskParams.put("priceStart", searchFilter.getPriceStart());
|
| | |
|
| | | if (searchFilter.getPriceEnd() != null)
|
| | | taskParams.put("priceEnd", searchFilter.getPriceEnd());
|
| | | if (searchFilter.getOrder() != null)
|
| | | taskParams.put("order", searchFilter.getOrder() + "");
|
| | | if (searchFilter.getFieldName() != null)
|
| | | taskParams.put("fieldName", searchFilter.getFieldName() + "");
|
| | |
|
| | | JSONObject root = new JSONObject();
|
| | | root.put("request", JSONObject.fromObject(taskParams));
|
| | | String result = baseRequest("com.vip.adp.api.open.service.UnionGoodsService", "query", root);
|
| | |
| | | goodsIdArray.add(goodsId);
|
| | | taskParams.put("goodsIdList", goodsIdArray);
|
| | | taskParams.put("chanTag", tag);
|
| | | taskParams.put("requestId", UUID.randomUUID() + "");
|
| | | taskParams.put("requestId", System.currentTimeMillis() + "_" + UUID.randomUUID());
|
| | | String result = baseRequest("com.vip.adp.api.open.service.UnionUrlService", "genByGoodsId",
|
| | | JSONObject.fromObject(taskParams));
|
| | | System.out.println(result);
|