|
@@ -3,11 +3,13 @@
|
|
|
<mapper namespace="cn.cslg.pas.mapper.PatentMapper">
|
|
|
|
|
|
<select id="getDateTime" resultType="java.lang.Integer">
|
|
|
- select ifnull(${type}(${column}), 0) from os_patent where id in (<trim prefix="" suffixOverrides=",">${ids}</trim>) and ${column} is not null
|
|
|
+ select ifnull(${type}(${column}), 0) from os_patent where id in (<trim prefix="" suffixOverrides=",">
|
|
|
+ ${ids}</trim>) and ${column} is not null
|
|
|
</select>
|
|
|
|
|
|
<select id="getDateTime2" resultType="java.lang.Integer">
|
|
|
- select ifnull(${type}(unix_timestamp(name)), 0) from os_patent_field_text where id in (select fid from os_patent_field_patent_link where pid in (<trim prefix="" suffixOverrides=",">${ids}</trim>) and cid = ${field})
|
|
|
+ select ifnull(${type}(unix_timestamp(name)), 0) from os_patent_field_text where id in (select fid from
|
|
|
+ os_patent_field_patent_link where pid in (<trim prefix="" suffixOverrides=",">${ids}</trim>) and cid = ${field})
|
|
|
</select>
|
|
|
|
|
|
<select id="getCustomFieldCount" resultType="java.lang.Integer">
|
|
@@ -37,14 +39,21 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getPatentListByIdAndColumn" resultType="java.util.Map">
|
|
|
- select ${column} from os_patent where id = #{id}
|
|
|
+ select ${column}
|
|
|
+ from os_patent
|
|
|
+ where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.PatentVO" 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,
|
|
|
- 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,
|
|
|
- b.look as `read`, a.agencyid as agency_id, a.num2 as right_num, a.quoteno as quote_num, a.quotedno as quoted_num,
|
|
|
+ <select id="getPageList" parameterType="cn.cslg.pas.common.model.vo.PatentVO"
|
|
|
+ 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,
|
|
|
+ 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,
|
|
|
+ b.look as `read`, 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.folder != null and params.folder != ''">
|
|
@@ -180,13 +189,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) or a.simple_family is null)
|
|
|
+ and (a.simple_family = (select id from os_patent_simplefamily where type = 1 and patent_no = a.patentno)
|
|
|
+ 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)
|
|
|
+ and (a.inpadoc_family = (select id from os_patent_simplefamily where type = 2 and patent_no =
|
|
|
+ a.patentno) 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)
|
|
|
+ and (a.patsnap_family = (select id from os_patent_simplefamily where type = 3 and patent_no =
|
|
|
+ a.patentno) or a.patsnap_family is null)
|
|
|
</if>
|
|
|
<if test="params.whereClassNumberIpc != null">
|
|
|
and q1.type = 1 and
|
|
@@ -293,7 +305,8 @@
|
|
|
</if>
|
|
|
<if test="params.whereApplicantOriginalStandard != null">
|
|
|
and h1.bname in
|
|
|
- <foreach collection="params.whereApplicantOriginalStandard" item="item" separator="," open="(" close=")">
|
|
|
+ <foreach collection="params.whereApplicantOriginalStandard" item="item" separator="," open="("
|
|
|
+ close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
@@ -305,28 +318,28 @@
|
|
|
</if>
|
|
|
<if test="params.whereApplicantOriginalMerge != null">
|
|
|
and (
|
|
|
- j.mergeid in
|
|
|
- <foreach collection="params.whereApplicantOriginalMerge" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- or
|
|
|
- e.applicantid in
|
|
|
- <foreach collection="params.whereApplicantOriginalMerge" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
+ j.mergeid in
|
|
|
+ <foreach collection="params.whereApplicantOriginalMerge" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ or
|
|
|
+ e.applicantid in
|
|
|
+ <foreach collection="params.whereApplicantOriginalMerge" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="params.whereApplicantCurrentMerge != null">
|
|
|
and (
|
|
|
- k.mergeid in
|
|
|
- <foreach collection="params.whereApplicantCurrentMerge" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- or
|
|
|
- f.applicantid in
|
|
|
- <foreach collection="params.whereApplicantCurrentMerge" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
+ k.mergeid in
|
|
|
+ <foreach collection="params.whereApplicantCurrentMerge" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ or
|
|
|
+ f.applicantid in
|
|
|
+ <foreach collection="params.whereApplicantCurrentMerge" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="params.whereBureau != null">
|
|
@@ -382,24 +395,24 @@
|
|
|
</if>
|
|
|
<if test="params.whereFieldMultiple != null">
|
|
|
and (
|
|
|
- a2.fid in
|
|
|
- <foreach collection="params.whereFieldMultiple" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- <if test="params.whereFieldMultipleNull == true">
|
|
|
- or a2.id is null
|
|
|
- </if>
|
|
|
+ a2.fid in
|
|
|
+ <foreach collection="params.whereFieldMultiple" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ <if test="params.whereFieldMultipleNull == true">
|
|
|
+ or a2.id is null
|
|
|
+ </if>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="params.whereFieldText != null">
|
|
|
and (
|
|
|
- a3.fid in
|
|
|
- <foreach collection="params.whereFieldText" item="item" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- <if test="params.whereFieldTextNull == true">
|
|
|
- or a2.id is null
|
|
|
- </if>
|
|
|
+ a3.fid in
|
|
|
+ <foreach collection="params.whereFieldText" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ <if test="params.whereFieldTextNull == true">
|
|
|
+ or a2.id is null
|
|
|
+ </if>
|
|
|
)
|
|
|
</if>
|
|
|
<if test="params.whereTreeType0 != null">
|
|
@@ -429,7 +442,8 @@
|
|
|
<if test="params.sort.prop == 'quotedNum'">a.quotedno</if>
|
|
|
${params.sort.order}
|
|
|
</select>
|
|
|
- <select id="getPatentQuerySourcePageList" parameterType="cn.cslg.pas.common.model.vo.PatentQueryFieldSourceVO" resultType="cn.cslg.pas.common.model.dto.PatentQueryFieldSourceDTO">
|
|
|
+ <select id="getPatentQuerySourcePageList" parameterType="cn.cslg.pas.common.model.vo.PatentQueryFieldSourceVO"
|
|
|
+ resultType="cn.cslg.pas.common.model.dto.PatentQueryFieldSourceDTO">
|
|
|
<if test="params.key == '41-1'">
|
|
|
<include refid="Patent_Query_Source_Base_Select">
|
|
|
<property name="label" value="a.publicno"/>
|
|
@@ -517,34 +531,34 @@
|
|
|
</if>
|
|
|
<if test="params.key == '20-1'">
|
|
|
select temp.* from ((
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- <property name="count" value="distinct d.pid"/>
|
|
|
- <property name="value" value="e.id"/>
|
|
|
- </include>
|
|
|
- left join os_patent_inventor_relation d on d.pid = a.id
|
|
|
- left join os_patent_inventor e on e.id = d.fid
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- </include>
|
|
|
- and e.name is not null
|
|
|
- and e.id not in (select inventor_id from os_patent_inventor_merge where project_id = b.zid)
|
|
|
- group by d.fid
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ <property name="count" value="distinct d.pid"/>
|
|
|
+ <property name="value" value="e.id"/>
|
|
|
+ </include>
|
|
|
+ left join os_patent_inventor_relation d on d.pid = a.id
|
|
|
+ left join os_patent_inventor e on e.id = d.fid
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ </include>
|
|
|
+ and e.name is not null
|
|
|
+ and e.id not in (select inventor_id from os_patent_inventor_merge where project_id = b.zid)
|
|
|
+ group by d.fid
|
|
|
) union all (
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- <property name="count" value="distinct d.pid"/>
|
|
|
- <property name="value" value="e.id"/>
|
|
|
- </include>
|
|
|
- left join os_patent_inventor_relation d on d.pid = a.id
|
|
|
- left join os_patent_inventor_merge e1 on e1.inventor_id = d.fid
|
|
|
- left join os_patent_inventor e on e.id = e1.merge_id
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- </include>
|
|
|
- and e.name is not null
|
|
|
- and e.project_id = b.zid
|
|
|
- group by e.id
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ <property name="count" value="distinct d.pid"/>
|
|
|
+ <property name="value" value="e.id"/>
|
|
|
+ </include>
|
|
|
+ left join os_patent_inventor_relation d on d.pid = a.id
|
|
|
+ left join os_patent_inventor_merge e1 on e1.inventor_id = d.fid
|
|
|
+ left join os_patent_inventor e on e.id = e1.merge_id
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ </include>
|
|
|
+ and e.name is not null
|
|
|
+ and e.project_id = b.zid
|
|
|
+ group by e.id
|
|
|
)) as temp where 1 = 1 order by `count` desc, `value` asc
|
|
|
</if>
|
|
|
<if test="params.key == '21-0'">
|
|
@@ -582,38 +596,38 @@
|
|
|
</if>
|
|
|
<if test="params.key == '18-8' or params.key == '19-8' or params.key == '23-8' or params.key == '24-8'">
|
|
|
select temp.* from ((
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- <property name="count" value="distinct d.pid"/>
|
|
|
- <property name="value" value="e.id"/>
|
|
|
- </include>
|
|
|
- left join os_applicant_attr d on d.pid = a.id and d.type = #{params.applicantType}
|
|
|
- left join os_patent_applicant e on e.id = d.applicantid
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- </include>
|
|
|
- and e.id not in (select applicantid from os_associate_applicant where tid = b.zid) and e.name is not null
|
|
|
- <if test="params.key == '23-8' or params.key == '24-8'">
|
|
|
- and d.order = 0
|
|
|
- </if>
|
|
|
- group by e.id
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ <property name="count" value="distinct d.pid"/>
|
|
|
+ <property name="value" value="e.id"/>
|
|
|
+ </include>
|
|
|
+ left join os_applicant_attr d on d.pid = a.id and d.type = #{params.applicantType}
|
|
|
+ left join os_patent_applicant e on e.id = d.applicantid
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ </include>
|
|
|
+ and e.id not in (select applicantid from os_associate_applicant where tid = b.zid) and e.name is not null
|
|
|
+ <if test="params.key == '23-8' or params.key == '24-8'">
|
|
|
+ and d.order = 0
|
|
|
+ </if>
|
|
|
+ group by e.id
|
|
|
) union all (
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- <property name="count" value="distinct d.pid"/>
|
|
|
- <property name="value" value="e.id"/>
|
|
|
- </include>
|
|
|
- left join os_applicant_attr d on d.pid = a.id and d.type = #{params.applicantType}
|
|
|
- left join os_associate_applicant f on f.applicantid = d.applicantid
|
|
|
- left join os_patent_applicant e on e.id = f.mergeid
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="e.name"/>
|
|
|
- </include>
|
|
|
- and e.name is not null and e.project_id = b.zid
|
|
|
- <if test="params.key == '23-8' or params.key == '24-8'">
|
|
|
- and d.order = 0
|
|
|
- </if>
|
|
|
- group by e.id
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ <property name="count" value="distinct d.pid"/>
|
|
|
+ <property name="value" value="e.id"/>
|
|
|
+ </include>
|
|
|
+ left join os_applicant_attr d on d.pid = a.id and d.type = #{params.applicantType}
|
|
|
+ left join os_associate_applicant f on f.applicantid = d.applicantid
|
|
|
+ left join os_patent_applicant e on e.id = f.mergeid
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="e.name"/>
|
|
|
+ </include>
|
|
|
+ and e.name is not null and e.project_id = b.zid
|
|
|
+ <if test="params.key == '23-8' or params.key == '24-8'">
|
|
|
+ and d.order = 0
|
|
|
+ </if>
|
|
|
+ group by e.id
|
|
|
)) as temp where 1 = 1 order by `count` desc, `value` asc
|
|
|
</if>
|
|
|
<if test="params.key == '13-1'">
|
|
@@ -1158,48 +1172,50 @@
|
|
|
</if>
|
|
|
<if test="params.type != 'query'">
|
|
|
select temp.* from ((
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="null"/>
|
|
|
- <property name="count" value="a.id"/>
|
|
|
- <property name="value" value="null"/>
|
|
|
- </include>
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="null"/>
|
|
|
- </include>
|
|
|
- and a.id not in (select pid from os_patent_field_patent_link where cid = #{params.customFieldId})
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="null"/>
|
|
|
+ <property name="count" value="a.id"/>
|
|
|
+ <property name="value" value="null"/>
|
|
|
+ </include>
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="null"/>
|
|
|
+ </include>
|
|
|
+ and a.id not in (select pid from os_patent_field_patent_link where cid = #{params.customFieldId})
|
|
|
) union all (
|
|
|
- <include refid="Patent_Query_Source_Base_Select">
|
|
|
- <property name="label" value="d.name"/>
|
|
|
- <property name="count" value="distinct e.pid"/>
|
|
|
- <property name="value" value="d.id"/>
|
|
|
- </include>
|
|
|
- left join os_patent_field_patent_link e on e.pid = b.pid
|
|
|
- left join os_patent_field c1 on c1.id = e.cid
|
|
|
- <if test="params.type == 6">
|
|
|
- left join os_patent_field_tree d on d.cid = e.cid
|
|
|
- </if>
|
|
|
- <if test="params.type == 0 or params.type == 1 or params.type == 2">
|
|
|
- left join os_patent_field_text d on d.cid = e.cid and d.name is not null and d.name != ''
|
|
|
- </if>
|
|
|
- <if test="params.type == 3 or params.type == 4 or params.type == 5">
|
|
|
- left join os_patent_field_multiple d on d.cid = e.cid
|
|
|
- </if>
|
|
|
- <include refid="Patent_Query_Source_Base_Where">
|
|
|
- <property name="label" value="d.name"/>
|
|
|
- </include>
|
|
|
- and c1.id = #{params.customFieldId}
|
|
|
- <if test="params.customFieldTreeType == 0">
|
|
|
- and e.fid in (select id from os_patent_field_tree where cid = c1.id and find_in_set(d.id , replace(path , '/', ',')))
|
|
|
- </if>
|
|
|
- <if test="params.customFieldTreeType == null">
|
|
|
- and e.fid = d.id
|
|
|
- </if>
|
|
|
- group by d.id
|
|
|
+ <include refid="Patent_Query_Source_Base_Select">
|
|
|
+ <property name="label" value="d.name"/>
|
|
|
+ <property name="count" value="distinct e.pid"/>
|
|
|
+ <property name="value" value="d.id"/>
|
|
|
+ </include>
|
|
|
+ left join os_patent_field_patent_link e on e.pid = b.pid
|
|
|
+ left join os_patent_field c1 on c1.id = e.cid
|
|
|
+ <if test="params.type == 6">
|
|
|
+ left join os_patent_field_tree d on d.cid = e.cid
|
|
|
+ </if>
|
|
|
+ <if test="params.type == 0 or params.type == 1 or params.type == 2">
|
|
|
+ left join os_patent_field_text d on d.cid = e.cid and d.name is not null and d.name != ''
|
|
|
+ </if>
|
|
|
+ <if test="params.type == 3 or params.type == 4 or params.type == 5">
|
|
|
+ left join os_patent_field_multiple d on d.cid = e.cid
|
|
|
+ </if>
|
|
|
+ <include refid="Patent_Query_Source_Base_Where">
|
|
|
+ <property name="label" value="d.name"/>
|
|
|
+ </include>
|
|
|
+ and c1.id = #{params.customFieldId}
|
|
|
+ <if test="params.customFieldTreeType == 0">
|
|
|
+ and e.fid in (select id from os_patent_field_tree where cid = c1.id and find_in_set(d.id , replace(path
|
|
|
+ , '/', ',')))
|
|
|
+ </if>
|
|
|
+ <if test="params.customFieldTreeType == null">
|
|
|
+ and e.fid = d.id
|
|
|
+ </if>
|
|
|
+ group by d.id
|
|
|
)) as temp where 1 = 1 order by `count` desc, `value` asc
|
|
|
</if>
|
|
|
</select>
|
|
|
<sql id="Patent_Query_Source_Base_Select">
|
|
|
- select ifnull(${label}, '未选择') as label, count(${count}) as `count`, ifnull(${value}, 'null') as `value`, group_concat(distinct a.id) as ids
|
|
|
+ select ifnull(${label}, '未选择') as label, count(${count}) as `count`, ifnull(${value}, 'null') as `value`,
|
|
|
+ group_concat(distinct a.id) as ids
|
|
|
from os_patent a
|
|
|
<if test="params.folder != null and params.folder != ''">
|
|
|
left join os_portfolio_link b on b.pid = a.id
|
|
@@ -1228,7 +1244,89 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Patent_Query_Source_Base_Group">
|
|
|
- group by ${groupBy}
|
|
|
- order by `${orderBy}` desc, `value` asc
|
|
|
+ group by
|
|
|
+ ${groupBy}
|
|
|
+ order
|
|
|
+ by
|
|
|
+ `${orderBy}`
|
|
|
+ desc,
|
|
|
+ `value`
|
|
|
+ asc
|
|
|
</sql>
|
|
|
+
|
|
|
+ <select id="getListForRMS" resultType="java.lang.String">
|
|
|
+ select a.patentno as patent_no
|
|
|
+ from os_patent a
|
|
|
+ <where>
|
|
|
+ patentno="0"
|
|
|
+ <if test="params.projectId != null">
|
|
|
+ or a.id in (select pid from os_thematic_pid where zid = #{params.projectId})
|
|
|
+ </if>
|
|
|
+ <if test="params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
+ or a.id in
|
|
|
+ <foreach item="item" collection="params.importTaskId" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </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>
|
|
|
+ </if>
|
|
|
+ <if test="params.startNumber!=null and params.endNumber!=null">
|
|
|
+ limit #{params.startNumber} , #{params.endNumber}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getPageListForRMS" parameterType="cn.cslg.pas.common.model.vo.PatentVO"
|
|
|
+ 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,
|
|
|
+ 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
|
|
|
+ <where>
|
|
|
+ patentno="0"
|
|
|
+ <if test="params.projectId != null">
|
|
|
+ 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=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </if>
|
|
|
+ <if test="params.importTaskId != null and params.importTaskId.size()!=0">
|
|
|
+ or a.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=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </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>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|