diy组件返回item_quantity
This commit is contained in:
parent
13c6df8126
commit
52c9352031
@ -375,7 +375,13 @@ public class ShopPageBaseServiceImpl extends BaseServiceImpl<ShopPageBaseMapper,
|
|||||||
|
|
||||||
for (Object datum : data) {
|
for (Object datum : data) {
|
||||||
Long did = Convert.toLong(((JSONObject) datum).get("did"));
|
Long did = Convert.toLong(((JSONObject) datum).get("did"));
|
||||||
if (did != null) item_id_row.add(did);
|
if (did != null) {
|
||||||
|
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()) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (ObjectUtil.equal(eltmType, 16)) {
|
} else if (ObjectUtil.equal(eltmType, 16)) {
|
||||||
//营销组件 selectType = 14 秒杀 12:团购
|
//营销组件 selectType = 14 秒杀 12:团购
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user