소스 검색

隐藏刷单商品数据

yjwang 6 일 전
부모
커밋
1ca9dd1ca8

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreProductScrmMapper.java

@@ -334,7 +334,7 @@ public interface FsStoreProductScrmMapper
             " FROM fs_store_product_scrm p LEFT JOIN fs_store_product_attr_value_scrm ave on p.product_id=ave.product_id  WHERE ave.bar_code != '' and p.product_id is not null" +
             ") p left join fs_store_product_category_scrm pc on p.cate_id=pc.cate_id   " +
             "left join (select product_id, push_status from fs_store_hospital580_product_push_scrm h1 where h1.id = (select max(h2.id) from fs_store_hospital580_product_push_scrm h2 where h2.product_id = h1.product_id)) hs on hs.product_id = p.product_id " +
-            " where 1=1 " +
+            " where 1=1  and p.is_drug = 1" +
             "<if test = 'maps.productName != null and  maps.productName !=\"\"  '> " +
             "and p.product_name like CONCAT('%',#{maps.productName},'%') " +
             "</if>" +

+ 1 - 1
fs-service/src/main/resources/mapper/hisStore/FsStoreProductScrmMapper.xml

@@ -921,7 +921,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 INNER JOIN fs_user_complaint uc ON FIND_IN_SET(p.product_id, uc.product_ids)
             </if>
             WHERE 1=1
-            and p.is_del = 0
+            and p.is_del = 0 and p.is_drug = 1
             <if test="maps.isAudit == null and maps.isShow != null">
                 <if test="maps.isShow == 1">
                     AND p.is_audit = 1