|
@@ -113,11 +113,7 @@
|
|
|
</if>
|
|
|
<if test="patentNo != null and patentNo != ''">
|
|
|
and p.id in
|
|
|
- (select product_id from asso_product_patent where patent_no = #{patentNo}
|
|
|
- union select product_id from asso_structure_patent where patent_no = #{patentNo})
|
|
|
- </if>
|
|
|
- <if test="productCategoryId != null and productCategoryId != ''">
|
|
|
- and product_category_id = #{productCategoryId}
|
|
|
+ (select product_id from asso_product_patent where patent_no = #{patentNo})
|
|
|
</if>
|
|
|
<if test="productCategoryName != null and productCategoryName != ''">
|
|
|
and product_category_id in (select id from product_category where product_category_name like
|
|
@@ -177,10 +173,6 @@
|
|
|
select patent_no
|
|
|
from asso_product_patent
|
|
|
where product_id = #{p_id}
|
|
|
- union
|
|
|
- select patent_no
|
|
|
- from asso_structure_patent
|
|
|
- where product_id = #{p_id}
|
|
|
</select>
|
|
|
|
|
|
<select id="query4" resultMap="query4Map">
|
|
@@ -242,8 +234,7 @@
|
|
|
</if>
|
|
|
<if test="patentNo != null and patentNo != ''">
|
|
|
and p.id in
|
|
|
- (select product_id from asso_product_patent where patent_no = #{patentNo}
|
|
|
- union select product_id from asso_structure_patent where patent_no = #{patentNo})
|
|
|
+ (select product_id from asso_product_patent where patent_no = #{patentNo})
|
|
|
</if>
|
|
|
<if test="productCategoryId != null and productCategoryId != ''">
|
|
|
and product_category_id = #{productCategoryId}
|
|
@@ -342,8 +333,7 @@
|
|
|
</if>
|
|
|
<if test="patentNo != null and patentNo != ''">
|
|
|
and id in
|
|
|
- (select product_id from asso_product_patent where patent_no = #{patentNo}
|
|
|
- union select product_id from asso_structure_patent where patent_no = #{patentNo})
|
|
|
+ (select product_id from asso_product_patent where patent_no = #{patentNo})
|
|
|
</if>
|
|
|
<if test="productCategoryId != null and productCategoryId != ''">
|
|
|
and product_category_id = #{productCategoryId}
|