md
This commit is contained in:
parent
5be90cb2bd
commit
2cdd3defa2
@ -68,6 +68,9 @@ public class EmisTransLine extends BaseEntity
|
||||
/* 显示顺序 */
|
||||
private Integer orderNum;
|
||||
|
||||
// ---- 非数据库字段
|
||||
private String fromCountryName;
|
||||
private String countryName;
|
||||
|
||||
private String brandName;
|
||||
}
|
||||
|
||||
@ -35,6 +35,8 @@
|
||||
|
||||
<association property="fromCountryName" column="from_country" select="selectCountryNameByCode"/>
|
||||
<association property="countryName" column="country" select="selectCountryNameByCode"/>
|
||||
<association property="brandName" column="logo_type" select="selectBrandNameByCode"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
@ -43,6 +45,10 @@
|
||||
select a.name from emis_country a where a.code = #{code}
|
||||
</select>
|
||||
|
||||
<select id="selectBrandNameByCode" parameterType="String" resultType="string">
|
||||
select concat(a.name,'(',a.name_en,')') as name from emis_brand a where a.code = #{code}
|
||||
</select>
|
||||
|
||||
<sql id="selectEmisTransLineVo">
|
||||
select id, line_code, line_name, line_name_en, meter_rate, 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, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_trans_line
|
||||
</sql>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user