fix: 添加购物车商品打印状态默认开启
This commit is contained in:
@@ -656,6 +656,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
tbCashierCart.setIsMember(shopEatTypeInfoDTO.isMemberPrice() && addCartDTO.getVipUserId() != null ? 1 : 0);
|
||||
tbCashierCart.setIsMember(!shopEatTypeInfoDTO.isMemberPrice() ? 0 : addCartDTO.getVipUserId() == null ? 0 : 1);
|
||||
tbCashierCart.setMemberPrice(productSku.getMemberPrice());
|
||||
tbCashierCart.setIsPrint(true);
|
||||
mpCashierCartService.save(tbCashierCart);
|
||||
|
||||
} else {
|
||||
@@ -686,6 +687,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
tbCashierCart.setPackFee(product.getPackFee() != null ?
|
||||
product.getPackFee().multiply(addCartDTO.getNum()) : BigDecimal.ZERO);
|
||||
}
|
||||
tbCashierCart.setIsPrint(true);
|
||||
cashierCartMapper.updateById(tbCashierCart);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user