IQuery iq = s.CreateQuery("from Gift where (Giftcount-Exchange)>0 order by Exchange desc");
iq.SetMaxResults(3);
put("top",iq.List());
本文介绍了一种使用IQuery接口查询礼品库存及兑换情况的方法,并设置了查询结果仅显示前三名的礼品兑换记录。
IQuery iq = s.CreateQuery("from Gift where (Giftcount-Exchange)>0 order by Exchange desc");
iq.SetMaxResults(3);
put("top",iq.List());

被折叠的 条评论
为什么被折叠?