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

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

提交 正在下单用券bug

parent 17fa5a18
......@@ -228,8 +228,8 @@ public class GoblinOrderUtils {
for (GoblinUserCouponVo vo : voList) {
if (vo.getUcouponId().equals(ucouponId) && vo.getDuedAt().isAfter(now)) {
//判断券状态 和 触发金额
if ((vo.getState().equals(1)) && vo.getTriggers().compareTo(totalPrice) <= 0) {
if (vo.getUseScope().equals("0")) {
if ((vo.getState().equals(1))) {
if (vo.getUseScope().equals("0") && vo.getTriggers().compareTo(totalPrice) <= 0) {
if (vo.getType().equals("1")) {//代金券
returnVo.setValue(vo.getValFace());
returnVo.setCouType(vo.getType());
......@@ -259,7 +259,12 @@ public class GoblinOrderUtils {
BigDecimal contentPrice = BigDecimal.ZERO;
for (String item : spuIds) {
for (GoblinOrderSku param : goblinOrderSkuList) {
if (param.getSpuId().equals(item)) {
String spuId = param.getSpuId();
String pre = GoblinStatusConst.MarketPreStatus.getPre(spuId);
if (pre != null) {
spuId = spuId.split(pre)[0];
}
if (spuId.equals(item)) {
contentPrice = contentPrice.add(param.getSkuPriceActual());
}
}
......
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