FeatureMapper.xml 785 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="cn.cslg.report.mapper.FeatureMapper">
  4. <select id="getSignPatentNo" resultType="cn.cslg.report.entity.Features" >
  5. select DISTINCT a.* from FEATURES a
  6. <where>
  7. SIGN_PATENT_NO!=#{patentNos}
  8. <if test="contents!=null and contents.size()!=0">
  9. and CONTENT in
  10. <foreach item="item" collection="contents" index="index" open="(" separator="," close=")">
  11. #{item}
  12. </foreach>
  13. </if>
  14. </where>
  15. </select>
  16. <select id="find" resultType="cn.cslg.report.entity.Features">
  17. select * from FEATURES where ID=#{id}
  18. </select>
  19. </mapper>