md
This commit is contained in:
parent
8afcd97336
commit
1138a3e91d
@ -53,11 +53,12 @@ public class EmisTmsTransPlan extends BaseEntity
|
||||
private String transLineTypeName;
|
||||
private String productTypeName;
|
||||
|
||||
private String fromCountryName;
|
||||
private String countryName;
|
||||
|
||||
// 累计时效
|
||||
private BigDecimal totalEstCostDay;
|
||||
|
||||
private EmisTransLine transLine;
|
||||
|
||||
private List<EmisTmsTransPlanDtl> stepList;
|
||||
|
||||
}
|
||||
|
||||
@ -27,22 +27,18 @@
|
||||
|
||||
<association property="totalEstCostDay" column="id" select="selectTotalEstCostDayByPlanId"/>
|
||||
|
||||
</resultMap>
|
||||
<association property="fromCountryName" column="trans_line_code" select="selectFromCountryNameByLineCode"/>
|
||||
<association property="countryName" column="trans_line_code" select="selectCountryNameByLineCode"/>
|
||||
|
||||
<resultMap type="EmisTransLine" id="EmisTransLineResult">
|
||||
<result property="lineCode" column="line_code" />
|
||||
<result property="lineName" column="line_name" />
|
||||
<result property="lineNameEn" column="line_name_en" />
|
||||
<result property="fromCountry" column="from_country" />
|
||||
<result property="country" column="country" />
|
||||
|
||||
<association property="fromCountryName" column="from_country" select="selectCountryNameByCode"/>
|
||||
<association property="countryName" column="country" select="selectCountryNameByCode"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a where a.code = #{code}
|
||||
<select id="selectFromCountryNameByLineCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a,emis_trans_line b where a.code=b.from_country and b.code = #{code}
|
||||
</select>
|
||||
|
||||
<select id="selectCountryNameByLineCode" parameterType="String" resultType="string">
|
||||
select a.name from emis_country a,emis_trans_line b where a.code=b.country and b.code = #{code}
|
||||
</select>
|
||||
|
||||
<select id="selectTotalEstCostDayByPlanId" parameterType="long" resultType="BigDecimal">
|
||||
@ -57,9 +53,9 @@
|
||||
select a.line_name from emis_trans_line a where a.line_code = #{code} limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectTransLineResultByCode" parameterType="String" resultMap="EmisTransLineResult">
|
||||
select * from emis_trans_line a where a.line_code = #{code} limit 1
|
||||
</select>
|
||||
<!-- <select id="selectTransLineResultByCode" parameterType="String" resultMap="EmisTransLineResult">-->
|
||||
<!-- select * from emis_trans_line a where a.line_code = #{code} limit 1-->
|
||||
<!-- </select>-->
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user