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

Commit 72993dc4 authored by 胡佳晨's avatar 胡佳晨

修改 删除正在下单商品 同事删除sku

parent 3e2bed16
...@@ -144,7 +144,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -144,7 +144,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
skuAndPreListAndNumber.add(skuId + "," + pre + "," + number); skuAndPreListAndNumber.add(skuId + "," + pre + "," + number);
//库存回滚 //库存回滚
if (surplusGeneral < 0) { if (surplusGeneral < 0) {
throw new Exception("已售罄"); throw new Exception("库存不足");
} }
}//GoblinOrderSkuParam }//GoblinOrderSkuParam
//下单 //下单
...@@ -195,7 +195,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -195,7 +195,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
return ResponseDto.failure(e.getMessage()); return ResponseDto.failure(e.getMessage());
} else if (e.getMessage().equals("参数异常")) { } else if (e.getMessage().equals("参数异常")) {
return ResponseDto.failure(e.getMessage()); return ResponseDto.failure(e.getMessage());
} else if (e.getMessage().equals("已售罄")) { } else if (e.getMessage().equals("库存不足")) {
return ResponseDto.failure(e.getMessage()); return ResponseDto.failure(e.getMessage());
} else if (e.getMessage().equals("已超出限购数量")) { } else if (e.getMessage().equals("已超出限购数量")) {
return ResponseDto.failure(e.getMessage()); return ResponseDto.failure(e.getMessage());
......
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