zoujiajian 3 gadi atpakaļ
vecāks
revīzija
3844281ac0

+ 1 - 0
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -191,6 +191,7 @@
         <foreach collection="list" item="item" open="(" separator="," close=")">
             #{item}
         </foreach>
+        and type in (1,2)
         and deleted is true and status is true) s order by s.sorted desc,sort_by desc
     </select>
 </mapper>

+ 2 - 1
netflix-service/src/main/java/com/cyksj/service/mange/goods/CmsGoodsDonServiceImpl.java

@@ -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) {