md
This commit is contained in:
parent
93ad0b4dd3
commit
2573c8c70d
@ -59,4 +59,6 @@ public class EmisTransProduct extends BaseEntity
|
||||
/* 最大时效 */
|
||||
private Integer maxAging;
|
||||
|
||||
private String countryName;
|
||||
|
||||
}
|
||||
|
||||
@ -67,8 +67,8 @@
|
||||
<if test="destName != null and destName != ''"> and dest_name like concat('%', #{destName}, '%')</if>
|
||||
<if test="destNameEn != null and destNameEn != ''"> and dest_name_en like concat('%', #{destNameEn}, '%')</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="lineCode != null and lineCode != ''"> and line_code like concat('%', #{lineCode}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="lineCode != null and lineCode != ''"> and line_code=#{lineCode}</if>
|
||||
<if test="country != null and country != ''"> and country=#{country}</if>
|
||||
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
||||
<if test="province != null and province != ''"> and province like concat('%', #{province}, '%')</if>
|
||||
<if test="city != null and city != ''"> and city like concat('%', #{city}, '%')</if>
|
||||
|
||||
@ -12,7 +12,6 @@
|
||||
<result property="status" column="status" />
|
||||
<result property="country" column="country" />
|
||||
<result property="transLineCode" column="trans_line_code" />
|
||||
<result property="transLine" column="trans_line" />
|
||||
<result property="carryType" column="carry_type" />
|
||||
<result property="transType" column="trans_type" />
|
||||
<result property="agingDesc" column="aging_desc" />
|
||||
@ -25,12 +24,24 @@
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
|
||||
<association property="transLine" column="trans_line_code" select="selectLineNameByCode"/>
|
||||
<association property="countryName" column="country" select="selectCountryNameByCode"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTransProductVo">
|
||||
select id, prod_code, prod_name, prod_name_en, status, country, trans_line_code, trans_line, carry_type, trans_type, aging_desc, min_aging, max_aging, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_trans_product
|
||||
</sql>
|
||||
|
||||
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a where a.code = #{code} limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectLineNameByCode" parameterType="String" resultType="string">
|
||||
select a.line_name from emis_trans_line a where a.line_code = #{code} limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTransProductList" parameterType="EmisTransProduct" resultMap="EmisTransProductResult">
|
||||
<include refid="selectEmisTransProductVo"/>
|
||||
<where>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user