md
This commit is contained in:
parent
906df66940
commit
a8d99b12e4
@ -72,6 +72,7 @@ public class EmisDestination extends BaseEntity
|
|||||||
private String cityName;
|
private String cityName;
|
||||||
private String countyName;
|
private String countyName;
|
||||||
private String townName;
|
private String townName;
|
||||||
|
private String siteName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,6 +34,8 @@
|
|||||||
<association property="cityName" column="city" select="selectRegionNameByCode"/>
|
<association property="cityName" column="city" select="selectRegionNameByCode"/>
|
||||||
<association property="countyName" column="county" select="selectRegionNameByCode"/>
|
<association property="countyName" column="county" select="selectRegionNameByCode"/>
|
||||||
<association property="townName" column="town" select="selectRegionNameByCode"/>
|
<association property="townName" column="town" select="selectRegionNameByCode"/>
|
||||||
|
<association property="siteName" column="town" select="selectSiteNameByCode"/>
|
||||||
|
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@ -54,6 +56,12 @@
|
|||||||
</select>
|
</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">
|
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user