fix: 增加购物车商品类型,单位展示
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user