This commit is contained in:
linfso 2024-04-16 16:02:35 +08:00
parent a8bb9082cf
commit d1d1d978c2
2 changed files with 14 additions and 0 deletions

View File

@ -62,4 +62,7 @@ public class EmisTransLine extends BaseEntity
private String logoType;
/* 运输方式 */
private String transType;
private String fromCountryName;
private String countryName;
}

View File

@ -27,12 +27,23 @@
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<association property="fromCountryName" column="from_country" select="selectCountryNameByCode"/>
<association property="countryName" column="country" select="selectCountryNameByCode"/>
</resultMap>
<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
</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">
<include refid="selectEmisTransLineVo"/>
<where>