This commit is contained in:
linfso 2024-04-17 11:00:37 +08:00
parent 906df66940
commit a8d99b12e4
2 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,7 @@ public class EmisDestination extends BaseEntity
private String cityName;
private String countyName;
private String townName;
private String siteName;
}

View File

@ -34,6 +34,8 @@
<association property="cityName" column="city" select="selectRegionNameByCode"/>
<association property="countyName" column="county" select="selectRegionNameByCode"/>
<association property="townName" column="town" select="selectRegionNameByCode"/>
<association property="siteName" column="town" select="selectSiteNameByCode"/>
</resultMap>
@ -54,6 +56,12 @@
</select>
<select id="selectSiteNameByCode" parameterType="String" resultType="string">
select a.site_name from emis_site a where a.site_code = #{code}
</select>
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">