fix: 增加购物车商品类型,单位展示
This commit is contained in:
@@ -610,7 +610,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
if (tbCashierCart == null) {
|
if (tbCashierCart == null) {
|
||||||
tbCashierCart = new TbCashierCart();
|
tbCashierCart = new TbCashierCart();
|
||||||
resetGroupProductCart(addCartDTO.getGroupProductIdList(), product, tbCashierCart);
|
resetGroupProductCart(addCartDTO.getGroupProductIdList(), product, tbCashierCart);
|
||||||
TbShopUnit tbShopUnit = mpShopUnitMapper.selectById(product.getId());
|
TbShopUnit tbShopUnit = mpShopUnitMapper.selectById(product.getUnitId());
|
||||||
if (tbShopUnit != null) {
|
if (tbShopUnit != null) {
|
||||||
tbCashierCart.setUnit(tbShopUnit.getName());
|
tbCashierCart.setUnit(tbShopUnit.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user