| | |
| | | |
| | | } |
| | | |
| | | private CommonOrderGoods getCommonOrderGoods(Long auctionId) { |
| | | private CommonOrderGoods getCommonOrderGoods(String auctionId) { |
| | | List<CommonOrderGoods> commonGoodsList = commonOrderGoodsMapper.listByGoodsIdAndGoodsType(auctionId + "", |
| | | Constant.SOURCE_TYPE_TAOBAO); |
| | | CommonOrderGoods cog = null; |
| | |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addOrder(CommonOrder commonOrder, int type, Long firstUid, Long secondUid) throws Exception { |
| | | public void addOrder(CommonOrder commonOrder, int type, Long firstUid, Long secondUid) throws HongBaoException { |
| | | // 增加commonOrder |
| | | commonOrder.setCreateTime(commonOrder.getThirdCreateTime()); |
| | | // 不存在就插入,存在就不管 |
| | |
| | | |
| | | try { |
| | | if (userSystemCouponService.updateCouponRecordUsed(commonOrder.getUserInfo().getId(), |
| | | commonOrder.getOrderNo(), payMent, Long.parseLong(goods.getGoodsId()),commonOrder.getSourceType())) |
| | | commonOrder.getOrderNo(), payMent, goods.getGoodsId(),commonOrder.getSourceType())) |
| | | mianDanMoney = payMent; |
| | | } catch (NumberFormatException e) { |
| | | throw new HongBaoException(10, "免单商品处理出错"); |
| | |
| | | hongBao.setState(HongBaoV2.STATE_SHIXIAO); |
| | | hongBao.setMoney(new BigDecimal(0)); |
| | | } else { |
| | | throw new HongBaoException(3, "维权订单不能创建红包"); |
| | | throw new HongBaoException(HongBaoException.CODE_ORDER_WEIQUAN, "维权订单不能创建红包"); |
| | | } |
| | | |
| | | if (mianDanMoney != null) |
| | |
| | | } |
| | | |
| | | } else |
| | | throw new HongBaoException(2, "type错误"); |
| | | throw new HongBaoException(HongBaoException.CODE_TYPE_ERROR, "type错误"); |
| | | |
| | | // 添加 |
| | | |