Преглед изворни кода

查询专利详情更新 2022/12/1

lwhhszx пре 2 година
родитељ
комит
4129597510
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      PAS/src/main/resources/mapper/PatentMapper.xml

+ 4 - 2
PAS/src/main/resources/mapper/PatentMapper.xml

@@ -1263,10 +1263,12 @@
                 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=")">
+                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.patentNos != null and params.patentNos.size()!=0">