Newer
Older
huludao / src / main / resources / mapper / TempDataMapper.xml
@新烽开发者 新烽开发者 on 19 Jul 723 bytes init
<?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.newfiber.api.pc.dao.TempDataMapper">
    <resultMap id="resultData" type="com.newfiber.api.pc.model.vo.TempDataVo">
        <result column="site_no" property="siteNo"/>
        <result column="site_name" property="siteName"/>
        <result column="z" property="z"/>
    </resultMap>

    <select id="selectSiteNameAndZData" resultMap="resultData">
        select psi.site_no,site_name,td.Z from
            pro_site_info psi
                left JOIN
            TempData td
            ON
                psi.site_no = td.ST
    </select>

</mapper>