| | |
| | |
|
| | | String key = searchFilter.getKey();
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | data.put("key", "");
|
| | | data.put("keywordType", "kt0");
|
| | | data.put("searchType", "st3");
|
| | | } else {
|
| | |
| | | shopInfo.setShopId(json.optInt("shopId"));
|
| | | shopInfo.setShopName(json.optString("shopName"));
|
| | | goods.setShopInfo(shopInfo);
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(json.optString("wlPrice")))
|
| | | goods.setPrice(new BigDecimal(json.optString("wlPrice")));
|
| | | else
|
| | | goods.setPrice(new BigDecimal(json.optString("finalPrice")));
|
| | | |
| | | goods.setPrice(new BigDecimal(json.optString("wlPrice")));
|
| | | |
| | | goods.setInOrderCount30Days(json.optLong("inOrderCount30Days"));
|
| | |
|
| | | if (json.optInt("isZY") == 1)
|
| | |
| | | goods.setCommissionInfo(commission);
|
| | | goods.setGoodCommentsShare(new BigDecimal(json.optString("goodCommentsShare")));
|
| | |
|
| | | // 券信息
|
| | | if (json.optString("hasCoupon") != null && json.optInt("hasCoupon") == 1
|
| | | && json.optInt("couponRemainCnt") > 0) {
|
| | | JDCouponInfo coupon = new JDCouponInfo();
|
| | | coupon.setDiscount(new BigDecimal(json.optString("couponDiscount")));
|
| | | coupon.setQuota(new BigDecimal(json.optString("couponQuota")));
|
| | | coupon.setLink("https:" + json.optString("couponLink"));
|
| | | goods.setCouponInfo(coupon);
|
| | | } |
| | | |
| | | // 团购信息
|
| | | if (json.optString("isPinGou") != null && json.optInt("isPinGou") == 1) {
|
| | | JDPingouInfo jdPinGouInfo = new JDPingouInfo();
|
| | |
| | | goods.setPinGouInfo(jdPinGouInfo);
|
| | | }
|
| | |
|
| | | |
| | | // 券信息
|
| | | BigDecimal finalPrice = new BigDecimal(json.optString("finalPrice"));
|
| | | if (finalPrice != null && json.optString("hasCoupon") != null && json.optInt("hasCoupon") == 1
|
| | | && json.optInt("couponRemainCnt") > 0) {
|
| | | JDCouponInfo coupon = new JDCouponInfo();
|
| | | coupon.setDiscount(new BigDecimal(json.optString("couponDiscount")));
|
| | | coupon.setQuota(new BigDecimal(json.optString("couponQuota")));
|
| | | coupon.setLink("https:" + json.optString("couponLink"));
|
| | | goods.setCouponInfo(coupon);
|
| | | } |
| | | |
| | | return goods;
|
| | | }
|
| | |
|