|
@@ -1,21 +1,14 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
<mapper namespace="cn.cslg.pas.mapper.FTOCompareRecordMapper">
|
|
|
+
|
|
|
<select id="getComparedPatents" resultType="java.lang.String">
|
|
|
select distinct compare_file_number
|
|
|
from fto_compare_record
|
|
|
- where project_id = ${projectId}
|
|
|
-<if test="compareResult!=null">
|
|
|
- and compare_result=${compareResult}
|
|
|
-</if>
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- <select id="getSynergyTaskId" resultType="java.lang.String">
|
|
|
- select distinct project_task_id
|
|
|
- from fto_compare_record
|
|
|
- where asso_task_id = ${taskId}
|
|
|
- and
|
|
|
+ where project_id = #{projectId}
|
|
|
+ <if test="compareResult!=null">
|
|
|
+ and compare_result = #{compareResult};
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|