|
@@ -1270,14 +1270,14 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="params.patentNos != null and params.patentNos.size()!=0">
|
|
|
- or patentno in
|
|
|
- <foreach item="item" collection="params.patentNos" index="index" open="(" separator="," close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
+ or patentno in
|
|
|
+ <foreach item="item" collection="params.patentNos" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="params.startNumber!=null and params.endNumber!=null">
|
|
|
+ limit #{params.startNumber} , #{params.endNumber}
|
|
|
</if>
|
|
|
- <if test="params.startNumber!=null and params.endNumber!=null">
|
|
|
- limit #{params.startNumber} , #{params.endNumber}
|
|
|
- </if>
|
|
|
</where>
|
|
|
|
|
|
</select>
|
|
@@ -1297,27 +1297,32 @@
|
|
|
<where>
|
|
|
patentno="0"
|
|
|
<if test="params.projectId != null">
|
|
|
- or a.id in (select pid from os_thematic_pid where zid = #{params.projectId})
|
|
|
+ or a.id in (select pid from os_thematic_pid where zid = #{params.projectId})
|
|
|
<if test="params.notInPatentNos != null">
|
|
|
- and patentno not in
|
|
|
- <foreach item="item" collection="params.notInPatentNos" index="index" open="(" separator="," close=")">
|
|
|
+ and patentno not in
|
|
|
+ <foreach item="item" collection="params.notInPatentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
</if>
|
|
|
<if test="params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
- or a.id in
|
|
|
+ or (patentno in
|
|
|
+ ( select PATENT_NO from ASSO_IMPORTTASK_PATENT where IMPORTTASK_ID in
|
|
|
<foreach item="item" collection="params.importTaskId" index="index" open="(" separator="," close=") ">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
+ )
|
|
|
|
|
|
<if test="params.notInPatentNos != null">
|
|
|
and patentno not in
|
|
|
- <foreach item="item" collection="params.notInPatentNos" index="index" open="(" separator="," close=")">
|
|
|
+ <foreach item="item" collection="params.notInPatentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="params.patentNos != null and params.patentNos.size()!=0">
|
|
|
or patentno in
|
|
@@ -1325,9 +1330,148 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+
|
|
|
</where>
|
|
|
|
|
|
</select>
|
|
|
+ <select id="getPageListForRMS2" 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.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>
|
|
|
+
|
|
|
+ <choose>
|
|
|
+ <when test="params.projectId != null or (params.patentNos != null and params.patentNos.size()!=0) or (params.importTaskId != null and params.importTaskId.size()!=0)">
|
|
|
+ <if test="params.projectId != null">
|
|
|
+ and ( a.id in (select pid from os_thematic_pid where zid = #{params.projectId})
|
|
|
+ <if test="params.patentNos != null and params.patentNos.size()!=0">
|
|
|
+ or patentno in
|
|
|
+ <foreach item="item" collection="params.patentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
+ or patentno in
|
|
|
+ ( select PATENT_NO from ASSO_IMPORTTASK_PATENT where IMPORTTASK_ID in
|
|
|
+ <foreach item="item" collection="params.importTaskId" index="index" open="(" separator=","
|
|
|
+ close=") ">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ )
|
|
|
+
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="params.projectId == null and params.patentNos != null and params.patentNos.size()!=0">
|
|
|
+ (patentno in
|
|
|
+ <foreach item="item" collection="params.patentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ <if test="params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
+ or patentno in
|
|
|
+ ( select PATENT_NO from ASSO_IMPORTTASK_PATENT where IMPORTTASK_ID in
|
|
|
+ <foreach item="item" collection="params.importTaskId" index="index" open="(" separator=","
|
|
|
+ close=") ">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="params.projectId == null and (params.patentNos == null or params.patentNos.size()==0) and params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
+ patentno in
|
|
|
+ ( select PATENT_NO from ASSO_IMPORTTASK_PATENT where IMPORTTASK_ID in
|
|
|
+ <foreach item="item" collection="params.importTaskId" index="index" open="(" separator=","
|
|
|
+ close=") ">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ <if test="params.notInPatentNos != null and params.notInPatentNos.size!=0">
|
|
|
+ and patentno not in
|
|
|
+ <foreach item="item" collection="params.notInPatentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="params.conPatentNos != null and params.conPatentNos.size!=0">
|
|
|
+ and patentno in
|
|
|
+ <foreach item="item" collection="params.conPatentNos" index="index" open="(" separator=","
|
|
|
+ close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="params.applicationName !=null and params.applicationName !='' ">
|
|
|
+ and c.name like concat("%",#{params.applicationName}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.obligeeName!=null and params.obligeeName!=''">
|
|
|
+ and e.name like concat("%", #{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 a.patentNo like concat("%",#{params.patentNo} , "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.applicationNo!=null">
|
|
|
+ and a.applicationNo like concat("%", #{params.applicationNo}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.abstractStr!=null">
|
|
|
+ and a.abstract like concat("%", #{params.abstractStr}, "%")
|
|
|
+ </if>
|
|
|
+ <if test="params.patentName!=null">
|
|
|
+ and a.`name` like concat("%", #{params.patentName}, "%")
|
|
|
+ </if>
|
|
|
+ </when>
|
|
|
+
|
|
|
+ <otherwise>
|
|
|
+ 1!=1
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getPatent" parameterType="java.util.List" resultType="cn.cslg.pas.domain.Patent">
|
|
|
select 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,
|
|
@@ -1338,15 +1482,15 @@
|
|
|
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
|
|
|
- where patentno in
|
|
|
+ where patentno in
|
|
|
<foreach item="item" collection="patentNo" index="index" open="(" separator="," close=")">
|
|
|
- #{item}
|
|
|
+ #{item}
|
|
|
</foreach>
|
|
|
<if test="n!=-1 and p!=-1">
|
|
|
- limit #{n},#{p}
|
|
|
-</if>
|
|
|
+ limit #{n},#{p}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
-<!-- int getPatentNumber(@Param("patentNo")List<String> patentNo);-->
|
|
|
+ <!-- int getPatentNumber(@Param("patentNo")List<String> patentNo);-->
|
|
|
<select id="getPatentNumber" resultType="java.lang.Integer">
|
|
|
select count(*) from os_patent
|
|
|
where patentno in
|