md
This commit is contained in:
parent
87a1d5c16f
commit
60bf4f9d2b
@ -74,6 +74,8 @@ public class EmisDestination extends BaseEntity
|
||||
private String countyName;
|
||||
private String townName;
|
||||
private String siteName;
|
||||
// 国家大区
|
||||
private String countryAreaName;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<association property="countyName" column="county" select="selectRegionNameByCode"/>
|
||||
<association property="townName" column="town" select="selectRegionNameByCode"/>
|
||||
<association property="siteName" column="site_code" select="selectSiteNameByCode"/>
|
||||
|
||||
<association property="countryAreaName" column="site_code" select="selectCountryAreaNameById"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisDestinationVo">
|
||||
@ -59,6 +59,14 @@
|
||||
select a.site_name from emis_site a where a.site_code = #{code} limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectCountryAreaNameById" parameterType="long" resultType="string">
|
||||
select a.name from emis_country_area a where a.id = #{id} limit 1
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
|
||||
<include refid="selectEmisDestinationVo"/>
|
||||
<where>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user