如何使用MyBatis实现查询并返回map类型结果?
- 内容介绍
- 文章标签
- 相关推荐
本文共计73个文字,预计阅读时间需要1分钟。
java// DAO层返回结果为Listpublic List queryItemSaleCountBatch() { return selectList(selectByField);}
// MyBatis片段select t.item_id as itemId, sum(t.quantity) as saleNumfrom order twhere t.order_status=1group by t.item
mybatis//DAO层返回的结果为list public List
本文共计73个文字,预计阅读时间需要1分钟。
java// DAO层返回结果为Listpublic List queryItemSaleCountBatch() { return selectList(selectByField);}
// MyBatis片段select t.item_id as itemId, sum(t.quantity) as saleNumfrom order twhere t.order_status=1group by t.item
mybatis//DAO层返回的结果为list public List

