Parcourir la source

预收货款详情

wanglang il y a 1 semaine
Parent
commit
59ce805d20

+ 2 - 1
trade-service/src/main/java/com/trade/service/trade/salesorder/service/impl/SalesOrderGoodsServiceImpl.java

@@ -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();
     }
 }