1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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.report.mapper.CompareFilesMapper">
- <select id="patentNos">
- select DISTINCT PATENT_NO from COMPARE_FILES where
- <where>
- <if test="params.createName != '' and params.createName != null">
- and b.name like concat('%', #{params.createName}, '%')
- </if>
- <if test="params.status != null">
- and a.status = #{params.status}
- </if>
- <if test="params.type != null">
- and a.type = #{params.type}
- </if>
- <if test="params.projectId != null">
- and a.tid = #{params.projectId}
- </if>
- <if test="params.projectName != '' and params.projectName != null">
- and c.name like concat('%', #{params.projectName}, '%')
- </if>
- </where>
- order by a.ctime ${params.order}
- </select>
- <select id="selectedTotal" resultType="java.lang.Integer">
- select count(*) from COMPARE_FILES where REPORT_ID=#{id}
- </select>
- <select id="selectCompareFiles" resultType="cn.cslg.report.entity.CompareFiles">
- select * from COMPARE_FILES
- where REPORT_ID=#{reportId} and PATENT_NO=#{patentNo} and PATENT_FILED_ID=#{patentFiledID}
- and REMARK in
- <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- </select>
- </mapper>
|