提交 11cee742 authored 作者: aiqingguo's avatar aiqingguo

sql优化只查1条

上级 a801fb8a
......@@ -41,6 +41,7 @@ public class IntegralRecordDaoImpl extends BaseDaoImpl<IntegraRecordMapper, Inte
.eq(IntegralRecord::getStatisticsId, statisticsId)
.eq(IntegralRecord::getType, type)
.orderByDesc(IntegralRecord::getCreateTime)
.last("limit 1")
);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论