md
This commit is contained in:
parent
92324ab74c
commit
220ae25540
@ -23,6 +23,11 @@
|
||||
|
||||
</resultMap>
|
||||
|
||||
<!-- 查询区域名称 -->
|
||||
<select id="selectAreaNameById" parameterType="Long" resultType="string">
|
||||
select a.name from emis_country_area a where a.id = #{id} limit 1
|
||||
</select>
|
||||
|
||||
<!-- 查询国家名称 -->
|
||||
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a where a.code = #{code} limit 1
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<result property="shortName" column="short_name" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="areaId" column="area_id" />
|
||||
<result property="areaName" column="area_name" />
|
||||
|
||||
<result property="countryCode" column="country_code" />
|
||||
|
||||
<result property="zipCode" column="zip_code" />
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
<!-- <result property="countryName" column="country_name" />-->
|
||||
<association property="countryName" column="country_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectCountryNameByCode"/>
|
||||
<association property="areaName" column="area_id" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectAreaNameById"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user