|
|
@@ -30,7 +30,8 @@ public class CmsGoodsDonServiceImpl extends ServiceImpl<GoodsDonMapper, GoodsDon
|
|
|
List<GoodsDonFrontSkuView> skuViews = beanSearcher.searchAll(GoodsDonFrontSkuView.class, MapUtils.builder()
|
|
|
.field(GoodsDonFrontSkuView::getGoodsId, goodsId)
|
|
|
.field(GoodsDonFrontSkuView::getStatus, true)
|
|
|
- .orderBy(GoodsDonFrontSkuView::getPrice).asc().onlySelect(GoodsDonFrontSkuView::getPrice, GoodsDonFrontSkuView::getMonths).build());
|
|
|
+ .orderBy(GoodsDonFrontSkuView::getPrice).asc().onlySelect(GoodsDonFrontSkuView::getPrice, GoodsDonFrontSkuView::getMonths, GoodsDonFrontSkuView::getDays)
|
|
|
+ .build());
|
|
|
if (!skuViews.isEmpty()) {
|
|
|
GoodsDonFrontSkuView min = skuViews.get(0);
|
|
|
if (skuViews.size() == 1) {
|