记得上下班打卡 | git大法好,push需谨慎

Commit 74908673 authored by 胡佳晨's avatar 胡佳晨

修改 日志

parent 18795f77
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
149016=请先将商品下架后操作 149016=请先将商品下架后操作
149017=请先将活动停用后操作 149017=请先将活动停用后操作
148001=库存不足 148001=正在下单库存不足
20003=无权查看 20003=无权查看
20018=下单失败 20018=下单失败
\ No newline at end of file
...@@ -355,10 +355,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -355,10 +355,10 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
} }
storeOrder.setPriceTotal(storeTotalPrice.add(storeOrder.getPriceExpress())); storeOrder.setPriceTotal(storeTotalPrice.add(storeOrder.getPriceExpress()));
BigDecimal priceActual = storeOrder.getPriceTotal().subtract(voucherPrice).subtract(storeVoucherPrice); BigDecimal priceActual = storeOrder.getPriceTotal().subtract(voucherPrice).subtract(storeVoucherPrice);
if(priceActual.compareTo(storeOrder.getPriceExpress())<0){ if (priceActual.compareTo(storeOrder.getPriceExpress()) < 0) {
priceActual = storeOrder.getPriceExpress(); priceActual = storeOrder.getPriceExpress();
} }
storeOrder.setPriceActual(priceActual.compareTo(BigDecimal.ZERO)<0?BigDecimal.ZERO:priceActual); storeOrder.setPriceActual(priceActual.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : priceActual);
storeOrder.setPriceRefund(BigDecimal.ZERO); storeOrder.setPriceRefund(BigDecimal.ZERO);
storeOrder.setPriceCoupon(voucherPrice); storeOrder.setPriceCoupon(voucherPrice);
storeOrder.setStorePriceCoupon(storeVoucherPrice); storeOrder.setStorePriceCoupon(storeVoucherPrice);
...@@ -956,6 +956,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -956,6 +956,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
logVo.setSpuId(orderSkuVo.getSpuId()); logVo.setSpuId(orderSkuVo.getSpuId());
logVo.setSpuName(backOrderSkuVo.getSpuName()); logVo.setSpuName(backOrderSkuVo.getSpuName());
logVo.setSkuId(backOrderSkuVo.getSkuId()); logVo.setSkuId(backOrderSkuVo.getSkuId());
if (orderVo.getStatus().equals(GoblinStatusConst.Status.ORDER_STATUS_6.getValue())) {
price = price.subtract(orderVo.getPriceExpress());
}
logVo.setSkuPriceActual(price.multiply(BigDecimal.valueOf(100)).negate().longValue()); logVo.setSkuPriceActual(price.multiply(BigDecimal.valueOf(100)).negate().longValue());
logVo.setStatus(GoblinStatusConst.Status.ORDER_LOG_STATUS_22.getValue()); logVo.setStatus(GoblinStatusConst.Status.ORDER_LOG_STATUS_22.getValue());
logVo.setRemark("订单退款"); logVo.setRemark("订单退款");
......
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