已下单商品支持退单

This commit is contained in:
2024-10-12 16:27:29 +08:00
parent 18c1367856
commit 10c11aef8f

View File

@@ -606,6 +606,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
TbCashierCart cashierCart = cashierCartMapper.selectOne(new LambdaQueryWrapper<TbCashierCart>()
.eq(TbCashierCart::getShopId, removeCartDTO.getShopId())
.in(TbCashierCart::getStatus, "create", "refund")
.isNotNull(TbCashierCart::getOrderId)
.eq(TbCashierCart::getId, removeCartDTO.getCartId()));
if (cashierCart == null) {