//查询
this.find(page, hql.toString(), parameters);
//like12 add,20200825,显示名称+价格(全是指针)
Collection<Product> coll = page.getEntities(); // 实体集合
// 迭代器用于while循环
Product prod = null;
Iterator<Product> iter = coll.iterator();
while (iter.hasNext()) {
prod = iter.next();
prod.setProdName(prod.getProdName() + " ¥" + prod.getSellPrice());
}
//like12 add,20210707,实时计算“折算库存”显示名称+价格(全是指针)
//Collection<ShopGoods> coll = page.getEntities(); // 实体集合
// 迭代器用于while循环
//ShopGoods sg = null;
//Iterator<ShopGoods> iter = coll.iterator();
//ShopGoods sgTemp = null;
//while (iter.hasNext()) {
/*sg = iter.next();
//是关联商品
if(sg.getMinUnitGoodsId() != null
&& sg.getRelatedNum() != null
&& sg.getRelatedNum() != 0
){
sgTemp = this.findShopGoodsById(sg.getMinUnitGoodsId());
if(sgTemp != null && sgTemp.getNum() != 0){
sg.setNumV(sgTemp.getNum() / sg.getRelatedNum());
}
}*/
//}