|
@@ -44,6 +44,7 @@ public class SalesOrderGoodsServiceImpl extends ServiceImpl<SalesOrderGoodsMappe
|
|
|
|
|
|
@Override
|
|
|
public SalesOrderGoods getMaxAmountByIds(List<Long> ids) {
|
|
|
- return this.lambdaQuery().in(SalesOrderGoods::getId, ids).orderByDesc(SalesOrderGoods::getPriceTotal).one();
|
|
|
+ return this.lambdaQuery().in(SalesOrderGoods::getId, ids).orderByDesc(SalesOrderGoods::getPriceTotal)
|
|
|
+ .last("limit 1").one();
|
|
|
}
|
|
|
}
|