12345678910111213141516171819 |
- <?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>
- </mapper>
|