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

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

Merge branch 'dev_coupon' into pre

parents 944ec8fd 0dff12d3
......@@ -122,7 +122,7 @@ public class GoblinOrderUtils {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) {
String orderVoSpuId = skuOrderVo.getSpuId();
String pre = GoblinStatusConst.MarketPreStatus.getPre(orderVoSpuId);
if(pre!=null){
if (pre != null) {
orderVoSpuId = orderVoSpuId.split(pre)[0];
}
if (targetId.equals(orderVoSpuId)) {
......@@ -131,9 +131,9 @@ public class GoblinOrderUtils {
}
}
}
if(targetPrice.compareTo(value)>=0) {
if (targetPrice.compareTo(value) >= 0) {
voucher = voucher.add(value);
}else{
} else {
voucher = voucher.add(targetPrice);
}
break;
......@@ -145,7 +145,7 @@ public class GoblinOrderUtils {
for (GoblinOrderSku skuOrderVo : goblinOrderSkuList) {
String orderVoSpuId = skuOrderVo.getSpuId();
String pre = GoblinStatusConst.MarketPreStatus.getPre(orderVoSpuId);
if(pre!=null){
if (pre != null) {
orderVoSpuId = orderVoSpuId.split(pre)[0];
}
if (targetId.equals(orderVoSpuId)) {
......@@ -263,7 +263,7 @@ public class GoblinOrderUtils {
if (tempPrice.compareTo(vo.getDeduction()) > 0) {
tempPrice = vo.getDeduction();
}
returnVo.setValue(tempPrice);
returnVo.setValue(totalPrice.subtract(tempPrice));
returnVo.setCouType(vo.getType());
} else if (vo.getType().equals("3") && vo.getTriggers().compareTo(totalPrice) <= 0) {//满减
returnVo.setValue(vo.getValMinus());
......
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