fix: 增加购物车商品类型,单位展示

This commit is contained in:
张松
2024-12-04 16:25:11 +08:00
parent cddbe8d195
commit feceb08a3e

View File

@@ -610,7 +610,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
if (tbCashierCart == null) {
tbCashierCart = new TbCashierCart();
resetGroupProductCart(addCartDTO.getGroupProductIdList(), product, tbCashierCart);
TbShopUnit tbShopUnit = mpShopUnitMapper.selectById(product.getId());
TbShopUnit tbShopUnit = mpShopUnitMapper.selectById(product.getUnitId());
if (tbShopUnit != null) {
tbCashierCart.setUnit(tbShopUnit.getName());
}