|
@@ -212,16 +212,16 @@
|
|
|
and (select count(*) from os_patent_right where a.id = patent_id and (${params.rightContentSql})) > 0
|
|
|
</if>
|
|
|
<if test="params.querySimpleFamily == true">
|
|
|
- and (a.simple_family = (select id from os_patent_simplefamily where type = 1 and patent_no = a.patentno)
|
|
|
+ and (a.simple_family = (select id from os_patent_simplefamily where type = 1 and patent_no = a.patentno limit 1)
|
|
|
or a.simple_family is null)
|
|
|
</if>
|
|
|
<if test="params.queryInpadocFamily == true">
|
|
|
and (a.inpadoc_family = (select id from os_patent_simplefamily where type = 2 and patent_no =
|
|
|
- a.patentno) or a.inpadoc_family is null)
|
|
|
+ a.patentno limit 1) or a.inpadoc_family is null)
|
|
|
</if>
|
|
|
<if test="params.queryPatSnapFamily == true">
|
|
|
and (a.patsnap_family = (select id from os_patent_simplefamily where type = 3 and patent_no =
|
|
|
- a.patentno) or a.patsnap_family is null)
|
|
|
+ a.patentno limit 1) or a.patsnap_family is null)
|
|
|
</if>
|
|
|
<if test="params.whereClassNumberIpc != null">
|
|
|
and q1.type = 1 and
|