12345678910111213141516171819202122232425262728 |
- <?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.FeatureMapper">
- <select id="getSignPatentNo" resultType="cn.cslg.report.entity.Features" >
- select DISTINCT a.* from FEATURES a
- <where>
- SIGN_PATENT_NO!=#{patentNos}
- <if test="contents!=null and contents.size()!=0">
- and CONTENT in
- <foreach item="item" collection="contents" index="index" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- </where>
- </select>
- <select id="find" resultType="cn.cslg.report.entity.Features">
- select * from FEATURES where ID = #{id}
- </select>
- <resultMap id="queryAllFeaturesResultMap" type="cn.cslg.report.common.model.vo.invalidReReport.QueryAllFeaturesVO">
- <result column="POSITION" property="position"/>
- <result column="CONTENT" property="featureStr"/>
- </resultMap>
- <select id="queryAllFeatures" resultMap="queryAllFeaturesResultMap">
- SELECT a.CONTENT, b.POSITION FROM FEATURES a LEFT JOIN ASSO_POSITION_FEATURES b ON a.ID = b.FEATURES_ID WHERE REPORT_ID = #{reportId} AND RIGHT_ID = #{rightSort}
- </select>
- </mapper>
|