Newer
Older
<?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="com.nju.svcdisambiguation.dataMapper.ieee.IEEEPaperInfoMapper">
<resultMap id="PaperInstitution" type="com.nju.svcdisambiguation.po.PaperInstitutionsPO">
<id column="id" property="id"/>
<result column="name" property="name"/>
<result column="db" property="db"/>
</resultMap>
<select id="searchInstitutionsByPaperId" resultMap="PaperInstitution">
select affiliationID as id, affiliation_name as name, 'IEEE' as db from affiliation where affiliation_name in
(select distinct affiliationNAME from authoraffiliation where authorID in
(select authorID from authorize where paperID = #{paperId}))
</select>
<select id="searchPdfLinkByPaperId" resultType="java.lang.String">
select pdf_link from document where document_id = #{paperId}
</select>
<select id="searchAbsByPaperId" resultType="java.lang.String">
select abstract from document where document_id = #{paperId}
</select>
</mapper>