赠送商品单独拎出

This commit is contained in:
SongZhang 2024-10-14 13:40:25 +08:00
parent a9d92e98c5
commit 1cc7188488
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
.isNull(TbCashierCart::getPlaceNum)
.eq(TbCashierCart::getUseType, shopEatTypeInfoDTO.getUseType())
.eq(TbCashierCart::getStatus, "create")
.eq(TbCashierCart::getIsGift, addCartDTO.isGift())
.and(q -> q.eq(TbCashierCart::getMasterId, addCartDTO.getMasterId()).or().isNull(TbCashierCart::getMasterId));
if (addCartDTO.getCartId() != null) {