diy组件返回item_quantity
This commit is contained in:
parent
e39a6ac074
commit
e7b34a60ff
@ -20,5 +20,5 @@ public class ProductVo {
|
|||||||
private long id;
|
private long id;
|
||||||
private float ItemSalePrice;
|
private float ItemSalePrice;
|
||||||
private Long did;
|
private Long did;
|
||||||
private int itemQuantity;
|
private int item_quantity;
|
||||||
}
|
}
|
||||||
@ -379,7 +379,7 @@ public class ShopPageBaseServiceImpl extends BaseServiceImpl<ShopPageBaseMapper,
|
|||||||
item_id_row.add(did);
|
item_id_row.add(did);
|
||||||
List<ShopProductItem> shopProductItems= shopProductItemService.list(new QueryWrapper<ShopProductItem>().eq("item_id",did));
|
List<ShopProductItem> shopProductItems= shopProductItemService.list(new QueryWrapper<ShopProductItem>().eq("item_id",did));
|
||||||
if(!shopProductItems.isEmpty()){
|
if(!shopProductItems.isEmpty()){
|
||||||
((JSONObject) datum).set("itemQuantity",shopProductItems.get(0).getItem_quantity()) ;
|
((JSONObject) datum).set("item_quantity",shopProductItems.get(0).getItem_quantity()) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user