Commit 3123151a authored by gaoyingwei's avatar gaoyingwei

修改 金币充值

parent 3ac5e1a7
...@@ -1809,7 +1809,7 @@ public class CmsOrderServiceImpl extends ServiceImpl<CmsOrderRepository,CmsOrder ...@@ -1809,7 +1809,7 @@ public class CmsOrderServiceImpl extends ServiceImpl<CmsOrderRepository,CmsOrder
orderInfo.setGoodsId(0); orderInfo.setGoodsId(0);
orderInfo.setUserId(Integer.valueOf(userId)); orderInfo.setUserId(Integer.valueOf(userId));
orderInfo.setAccount(CyUserUtil.getAuthenUsername()); orderInfo.setAccount(CyUserUtil.getAuthenUsername());
orderInfo.setNum(orderInfo.getNum()); orderInfo.setNum(cmsOrder.getNum());
//计算价格 -开始 //计算价格 -开始
if (cmsOrder.getPrice() != null && cmsOrder.getPrice().compareTo(BigDecimal.ZERO) > 0) { if (cmsOrder.getPrice() != null && cmsOrder.getPrice().compareTo(BigDecimal.ZERO) > 0) {
BigDecimal price = cmsOrder.getPrice().setScale(2, BigDecimal.ROUND_DOWN); BigDecimal price = cmsOrder.getPrice().setScale(2, BigDecimal.ROUND_DOWN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment