Browse Source

增加需求,可以分别查询产品的商品化专利清单和产品架构的相关专利清单

chendayu 2 years ago
parent
commit
98e6f07d49
1 changed files with 1 additions and 4 deletions
  1. 1 4
      PAS/src/main/resources/mapper/AssoProductPatentMapper.xml

+ 1 - 4
PAS/src/main/resources/mapper/AssoProductPatentMapper.xml

@@ -115,9 +115,6 @@
         a.agencyid as agency_id, a.num2 as right_num, a.quoteno as quote_num, a.quotedno as quoted_num,
         a.patsnap_family as patSnapFamily, a.patsnapfamilynum as patSnapFamilyNum
         from os_patent a
-        <if test="params.productId !=null and params.productId !=''">
-            left join asso_structure_patent t on t.patent_no =a.patentno
-        </if>
         <if test="params.applicationName !=null ">
             left join os_applicant_attr b on a.id=b.pid and b.type =1
             left join os_patent_applicant c on c.id=b.applicantid
@@ -137,7 +134,7 @@
         </if>
         <where>
             <if test="params.productId !=null">
-                and t.product_id =#{params.productId}
+                and a.patentno in (select patent_no from asso_structure_patent where product_Id = #{params.productId})
             </if>
             <if test="params.applicationName !=null and params.applicationName !=''  ">
                 and c.name REGEXP #{params.applicationName}