|
@@ -171,7 +171,7 @@
|
|
|
and b.zid = #{params.projectId}
|
|
|
</if>
|
|
|
<if test="params.importTaskId != null and params.projectId == null">
|
|
|
- and a.patentno in
|
|
|
+ and a.patentno in
|
|
|
( select PATENT_NO from ASSO_IMPORTTASK_PATENT where IMPORTTASK_ID in
|
|
|
<foreach item="item" collection="params.importTaskId" index="index" open="(" separator=","
|
|
|
close=") ">
|
|
@@ -179,17 +179,17 @@
|
|
|
</foreach>
|
|
|
)
|
|
|
</if>
|
|
|
- <if test="params.importTaskId != null and params.projectId != null">
|
|
|
- and (b.zid = #{params.projectId} or
|
|
|
- a.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.importTaskId != null and params.projectId != null">
|
|
|
+ and (b.zid = #{params.projectId} or
|
|
|
+ a.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.projectId == null and params.projectId == null">
|
|
|
and 1 !=1
|
|
|
</if>
|
|
@@ -1273,8 +1273,8 @@
|
|
|
by
|
|
|
`${orderBy}`
|
|
|
desc,
|
|
|
- `value`
|
|
|
- asc
|
|
|
+ `value`
|
|
|
+ asc
|
|
|
</sql>
|
|
|
|
|
|
<select id="getListForRMS" resultType="java.lang.String">
|
|
@@ -1531,10 +1531,10 @@
|
|
|
</if>
|
|
|
|
|
|
<if test="params.applicationName !=null and params.applicationName !='' ">
|
|
|
- and c.name REGEXP #{params.applicationName}
|
|
|
+ and c.name REGEXP #{params.applicationName}
|
|
|
</if>
|
|
|
<if test="params.obligeeName !=null and params.obligeeName!=''">
|
|
|
- and e.name REGEXP #{params.obligeeName}
|
|
|
+ and e.name REGEXP #{params.obligeeName}
|
|
|
</if>
|
|
|
<if test="params.numberIpc !=null and params.numberIpc!=''">
|
|
|
and f.code like concat("%", #{params.numberIpc}, "%")
|
|
@@ -1546,7 +1546,7 @@
|
|
|
and h.code like concat("%", #{params.numberUpc}, "%")
|
|
|
</if>
|
|
|
<if test="params.patentNo !=null and params.patentNo !=''">
|
|
|
- and a.patentNo REGEXP #{params.patentNo}
|
|
|
+ and a.patentNo REGEXP #{params.patentNo}
|
|
|
</if>
|
|
|
<if test="params.applicationNo !=null and params.applicationNo !=''">
|
|
|
and a.applicationNo like concat("%", #{params.applicationNo}, "%")
|
|
@@ -1561,9 +1561,9 @@
|
|
|
and (
|
|
|
<foreach item="item" collection="params.PasOptions" index="index" open="(" separator="or"
|
|
|
close=")">
|
|
|
- <if test="item.key !=null">
|
|
|
- (j.cid=#{item.fieldId} and j.fid =#{item.key})
|
|
|
- </if>
|
|
|
+ <if test="item.key !=null">
|
|
|
+ (j.cid=#{item.fieldId} and j.fid =#{item.key})
|
|
|
+ </if>
|
|
|
<if test="item.key ==null">
|
|
|
(j.cid is null or j.cid !=#{item.fieldId})
|
|
|
</if>
|
|
@@ -1745,13 +1745,13 @@
|
|
|
from os_patent a
|
|
|
<where>
|
|
|
<if test="patentNo != null and patentNo.size!=0">
|
|
|
- patentno in
|
|
|
+ patentno in
|
|
|
<foreach item="item" collection="patentNo" index="index" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="patentNo == null or patentNo.size==0">
|
|
|
- 1!=1
|
|
|
+ 1!=1
|
|
|
</if>
|
|
|
<if test="n!=-1 and p!=-1">
|
|
|
limit #{n},#{p}
|