1234567891011121314151617181920212223 |
- <?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.PatentSimpleFamilyLinkMapper">
- <select id="getPatentFamilyLinkByPatentNo" resultType="cn.cslg.pas.domain.PatentSimpleFamilyLink">
- select a.* from os_patent_simplefamily_link a
- left join os_patent_simplefamily b on a.family_id=b.id
- where
- b.type = #{type}
- and a.patent_no in
- <foreach collection="patentNos" item="id" open="(" separator="," close=")">
- #{id}
- </foreach>
- </select>
- <select id="getDirtyData" resultType="cn.cslg.pas.domain.PatentSimpleFamily">
- select *, count(*) as count
- from os_patent_simplefamily
- where type = #{type}
- group by patent_no
- having count(*) > 1
- limit 10000
- </select>
- </mapper>
|