diy组件返回itemQuantity

This commit is contained in:
liyj 2025-08-06 17:32:30 +08:00
parent 52c9352031
commit e39a6ac074
2 changed files with 2 additions and 1 deletions

View File

@ -20,4 +20,5 @@ public class ProductVo {
private long id;
private float ItemSalePrice;
private Long did;
private int itemQuantity;
}

View File

@ -379,7 +379,7 @@ public class ShopPageBaseServiceImpl extends BaseServiceImpl<ShopPageBaseMapper,
item_id_row.add(did);
List<ShopProductItem> shopProductItems= shopProductItemService.list(new QueryWrapper<ShopProductItem>().eq("item_id",did));
if(!shopProductItems.isEmpty()){
((JSONObject) datum).set("item_quantity",shopProductItems.get(0).getItem_quantity()) ;
((JSONObject) datum).set("itemQuantity",shopProductItems.get(0).getItem_quantity()) ;
}
}
}