| | |
| | | stateInfo = "该订单申诉已通过,请稍后查看。"; |
| | | } else if (state == -5) { |
| | | stateInfo = "该订单为分享奖金订单"; |
| | | } else if (state == -1001) { |
| | | stateInfo = "该订单为违规订单"; |
| | | } else if (state == -1002) { |
| | | stateInfo = "该订单已发起维权"; |
| | | } |
| | | } |
| | | JSONObject data = new JSONObject(); |
| | |
| | | } |
| | | |
| | | @RequestMapping("collectionGoods") |
| | | public void collectionGoods(AcceptData acceptData, long uid, long auctionId, int type, PrintWriter out) { |
| | | public void collectionGoods(AcceptData acceptData, long uid, String auctionId, int type, PrintWriter out) { |
| | | try { |
| | | CollectionGoodsV2 find = collectionGoodsV2Service.findByUidAndAuctionId(uid, auctionId, |
| | | Constant.SOURCE_TYPE_TAOBAO); |
| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping("collectionGoodsJp") |
| | | public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, Long auctionId, Integer goodsType, |
| | | public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, String auctionId, Integer goodsType, |
| | | PrintWriter out) { |
| | | |
| | | if (uid == null || auctionId == null) { |
| | |
| | | |
| | | BigDecimal proportion = hongBaoManageService.getFanLiRate(acceptData.getSystem()); |
| | | |
| | | List<Long> listGid = new ArrayList<Long>(); |
| | | List<String> listGid = new ArrayList<>(); |
| | | for (CollectionGoodsV2 collectionGoodsV2 : collectionGoodsList) { |
| | | CommonGoods commonGoods = collectionGoodsV2.getCommonGoods(); |
| | | if (commonGoods == null) { |
| | |
| | | |
| | | if (listTaoKeGoods != null && listTaoKeGoods.size() > 0) { |
| | | int state = 1; // 默认停售 |
| | | Long goodsId = commonGoods.getGoodsId(); |
| | | String goodsId = commonGoods.getGoodsId(); |
| | | for (TaoBaoGoodsBrief taoKeGoods : listTaoKeGoods) { |
| | | Long auctionId = taoKeGoods.getAuctionId(); |
| | | String auctionId = taoKeGoods.getAuctionId(); |
| | | if (goodsId == auctionId || goodsId.equals(auctionId)) { |
| | | state = 0; // 在售 |
| | | break; |
| | |
| | | if (!StringUtil.isNullOrEmpty(ids)) { |
| | | Arrays.asList(ids.split(",")).parallelStream().forEach(auctionIdStr -> { |
| | | try { |
| | | collectionGoodsV2Service.cancelCollectionByAuctionId(uid, Long.parseLong(auctionIdStr), |
| | | collectionGoodsV2Service.cancelCollectionByAuctionId(uid, (auctionIdStr), |
| | | goodsType); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | vipAction.put("jumpDetail", |
| | | jumpDetailV2Service.getByTypeCache("web", |
| | | acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2, |
| | | Integer.parseInt(acceptData.getVersion()))); |
| | | Integer.parseInt(acceptData.getVersion()), acceptData.getSystem())); |
| | | JSONObject params = new JSONObject(); |
| | | params.put("url", userVipConfigService.getValueByKey("vip_manager_link")); |
| | | vipAction.put("params", params); |
| | |
| | | vipAction.put("jumpDetail", |
| | | jumpDetailV2Service.getByTypeCache("web", |
| | | acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2, |
| | | Integer.parseInt(acceptData.getVersion()))); |
| | | Integer.parseInt(acceptData.getVersion()), acceptData.getSystem())); |
| | | JSONObject params = new JSONObject(); |
| | | params.put("url", link.replace("[ID]", list.get(0).getId())); |
| | | vipAction.put("params", params); |