|
@@ -13,7 +13,7 @@
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
- <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.PatentVO"
|
|
|
+ <select id="getPageListProductPatent" parameterType="cn.cslg.pas.common.model.vo.PatentVO"
|
|
|
resultType="cn.cslg.pas.domain.Patent">
|
|
|
select DISTINCT a.id, a.`name` as name, a.nameout as name_out, a.patentno as patent_no, a.abstract_path,
|
|
|
a.abstract as
|
|
@@ -50,7 +50,6 @@
|
|
|
left join os_patent_typeno h on h.pid =a.id and h.type =3
|
|
|
</if>
|
|
|
<where>
|
|
|
-
|
|
|
<if test="params.productId !=null">
|
|
|
and i.product_id =#{params.productId}
|
|
|
</if>
|
|
@@ -103,6 +102,91 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getPageListStructurePatent" parameterType="cn.cslg.pas.common.model.vo.PatentVO"
|
|
|
+ resultType="cn.cslg.pas.domain.Patent">
|
|
|
+ select DISTINCT a.id, a.`name` as name, a.nameout as name_out, a.patentno as patent_no, a.abstract_path,
|
|
|
+ a.abstract as
|
|
|
+ abstract_str, a.abstractout as abstract_out,
|
|
|
+ a.publicno as public_no, a.publicdate as public_date, a.simple_family, a.inpadoc_family, a.applicationno as
|
|
|
+ application_no, a.appdate as application_date,
|
|
|
+ a.`status` as simple_status, a.type, a.publictodate as public_accredit_date, a.fpublicdate as first_public_date,
|
|
|
+ a.prioritydate as priority_date,
|
|
|
+ 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
|
|
|
+ </if>
|
|
|
+ <if test=" params.obligeeName !=null">
|
|
|
+ left join os_applicant_attr d on a.id=d.pid and d.type =2
|
|
|
+ left join os_patent_applicant e on e.id=d.applicantid
|
|
|
+ </if>
|
|
|
+ <if test="params.numberIpc!=null ">
|
|
|
+ left join os_patent_typeno f on f.pid =a.id and f.type =1
|
|
|
+ </if>
|
|
|
+ <if test=" params.numberCpc!=null ">
|
|
|
+ left join os_patent_typeno g on g.pid =a.id and g.type =2
|
|
|
+ </if>
|
|
|
+ <if test=" params.numberUpc!=null">
|
|
|
+ left join os_patent_typeno h on h.pid =a.id and h.type =3
|
|
|
+ </if>
|
|
|
+ <where>
|
|
|
+ <if test="params.productId !=null">
|
|
|
+ and t.product_id =#{params.productId}
|
|
|
+ </if>
|
|
|
+ <if test="params.applicationName !=null and params.applicationName !='' ">
|
|
|
+ and c.name REGEXP #{params.applicationName}
|
|
|
+ </if>
|
|
|
+ <if test="params.obligeeName !=null and params.obligeeName!=''">
|
|
|
+ and e.name REGEXP #{params.obligeeName}
|
|
|
+ </if>
|
|
|
+ <if test="params.numberIpc !=null and params.numberIpc!=''">
|
|
|
+ and f.code like concat("%", #{params.numberIpc}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.numberCpc !=null and params.numberCpc!=''">
|
|
|
+ and g.code like concat("%", #{params.numberCpc}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.numberUpc !=null and params.numberUpc!=''">
|
|
|
+ and h.code like concat("%", #{params.numberUpc}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.patentNo !=null and params.patentNo !=''">
|
|
|
+ and a.patentNo REGEXP #{params.patentNo}
|
|
|
+ </if>
|
|
|
+ <if test="params.applicationNo !=null and params.applicationNo !=''">
|
|
|
+ and a.applicationNo like concat("%", #{params.applicationNo}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.abstractStr !=null and params.abstractStr !=''">
|
|
|
+ and a.abstract like concat("%", #{params.abstractStr}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.patentName !=null and params.patentName !=''">
|
|
|
+ and a.`name` like concat("%", #{params.patentName}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.structureId !=null and params.structureId !=''">
|
|
|
+ and find_in_set(#{params.structureId}, t.path)
|
|
|
+ </if>
|
|
|
+ <if test="params.orderItem!=null and params.orderItem!='SysOrder'">
|
|
|
+ order by #{params.orderItem}
|
|
|
+ <if test="params.orderType!=null">
|
|
|
+ #{params.orderType}
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="params.orderItem==null">
|
|
|
+ order by a.patentno
|
|
|
+ </if>
|
|
|
+ <if test="params.orderItem=='SysOrder' and params.patentNos != null and params.patentNos.size()!=0">
|
|
|
+ order by field (a.patentno,
|
|
|
+ <foreach item="item" collection="params.patentNos" index="index" open="" separator=","
|
|
|
+ close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getPatentNos" resultType="java.lang.String">
|
|
|
select a.patentno as patent_no
|
|
|
from os_patent a
|