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