zoujiajian 2 years ago
parent
commit
d17c83f508
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netflix-dao/src/main/java/com/cyksj/mapper/GoodsDonMapper.java

+ 1 - 1
netflix-dao/src/main/java/com/cyksj/mapper/GoodsDonMapper.java

@@ -28,6 +28,6 @@ public interface GoodsDonMapper extends BaseMapper<GoodsDon> {
 			" where g.deleted is true and type = #{type}")
 	List<GoodsDonSkuView> selectGoodsDonSkuByGoodsType(Integer type);
 
-	@Select("select g.id, g.title from (select distinct goods_id from order_don where status not in ('close','noPayment') and yhs_id = #{yhsId}) o inner join goods_don g on g.id = o.goods_id")
+	@Select("select g.id, g.title from (select distinct goods_id from order_don where status not in ('close','noPayment') and yhs_id = #{yhsId}) o inner join goods_don g on g.id = o.goods_id and g.type = 1")
 	List<GoodsDon> getYhShopDistributeGoodsDetail(Long yhsId);
 }