This commit is contained in:
linfso 2024-04-20 09:29:50 +08:00
parent 87a1d5c16f
commit 60bf4f9d2b
2 changed files with 11 additions and 1 deletions

View File

@ -74,6 +74,8 @@ public class EmisDestination extends BaseEntity
private String countyName;
private String townName;
private String siteName;
// 国家大区
private String countryAreaName;
}

View File

@ -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>