md
This commit is contained in:
parent
a8bb9082cf
commit
d1d1d978c2
@ -62,4 +62,7 @@ public class EmisTransLine extends BaseEntity
|
|||||||
private String logoType;
|
private String logoType;
|
||||||
/* 运输方式 */
|
/* 运输方式 */
|
||||||
private String transType;
|
private String transType;
|
||||||
|
|
||||||
|
private String fromCountryName;
|
||||||
|
private String countryName;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,12 +27,23 @@
|
|||||||
<result property="createTime" column="create_time" />
|
<result property="createTime" column="create_time" />
|
||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
|
||||||
|
<association property="fromCountryName" column="from_country" select="selectCountryNameByCode"/>
|
||||||
|
<association property="countryName" column="country" select="selectCountryNameByCode"/>
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEmisTransLineVo">
|
<sql id="selectEmisTransLineVo">
|
||||||
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, from_country, country, apply_scope, logo_type, trans_type, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_trans_line
|
select id, line_code, line_name, status, site_audit_man, site_audit_man_code, market_man, market_man_code, operate_man, operate_man_code, from_country, country, apply_scope, logo_type, trans_type, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_trans_line
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
||||||
|
select a.name
|
||||||
|
from emis_country a
|
||||||
|
where a.code = #{code}
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisTransLineList" parameterType="EmisTransLine" resultMap="EmisTransLineResult">
|
<select id="selectEmisTransLineList" parameterType="EmisTransLine" resultMap="EmisTransLineResult">
|
||||||
<include refid="selectEmisTransLineVo"/>
|
<include refid="selectEmisTransLineVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user