Przeglądaj źródła

增加查询条件,3D模糊查询排除门窗

xiewenjie 3 lat temu
rodzic
commit
cafb0fda32

+ 2 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/mapper/IRenovationPartsDetailMapper.java

@@ -38,7 +38,8 @@ public interface IRenovationPartsDetailMapper extends IBaseMapper<RenovationPart
 
     @Select("select id,parts_type_id AS partsTypeId, key_word as keyWord, type, description, img, high_img as highImg, path, name, zh_name as zhName, has_toolbag as hasToolbag ,mview_path as " +
             "mviewPath ,other_file_url as  otherFileUrl from " +
-            "tb_renovation_parts_detail where key_word like CONCAT('%', #{keyWord}, '%') and rec_status = 'A' and is_show = 1 and examine = 1 and mview_status in (0,2) and is_3d_show =1  ")
+            "tb_renovation_parts_detail where key_word like CONCAT('%', #{keyWord}, '%') and rec_status = 'A' and is_show = 1 and examine = 1 and mview_status in (0,2)  and parts_type_id  IN  " +
+            "(SELECT id  FROM tb_renovation_parts_type WHERE is_3d_show=1) ")
     List<ResponseRenovationPartsDetail> findByKeyWord(String keyWord);
 
     @Select("<script> " +