| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.HongBaoV2Mapper; |
| | |
| | | if (goods != null) { |
| | | 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 hb = new HongBao(); |
| | | if (goods != null) |
| | | hb.setAuctionId(Long.parseLong(goods.getGoodsId())); |
| | | hb.setAuctionId(TaoBaoUtil.getAuctionId(goods.getGoodsId())); |
| | | hb.setUserInfo(hongBao.getUserInfo()); |
| | | hb.setMoney(hongBao.getMoney()); |
| | | |