This commit is contained in:
linfso 2024-05-30 01:04:02 +08:00
parent 0f2807eb87
commit 55ed409b3f
3 changed files with 11 additions and 1 deletions

View File

@ -53,6 +53,9 @@ public class EmisTmsTransPlan extends BaseEntity
private String transLineTypeName;
private String productTypeName;
// 累计时效
private BigDecimal totalEstCostDay;
private EmisTransLine transLine;
private List<EmisTmsTransPlanDtl> stepList;

View File

@ -33,6 +33,7 @@ public class EmisTmsTransPlanDtl extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* id */
private Long id;
/* 计划id */
@ -44,7 +45,7 @@ public class EmisTmsTransPlanDtl extends BaseEntity
/* 运输方式 陆运,空运海运 */
private String transType;
/* 预估运输时间 day */
private String estCostDay;
private BigDecimal estCostDay;
/* 顺序号 */
private Integer orderNum;
/* 状态 1-启用 0-不启用 */

View File

@ -25,6 +25,8 @@
<association property="transLine" column="trans_line_code" select="selectTransLineNameByCode"/>
<association property="totalEstCostDay" column="id" select="selectTotalEstCostDayByPlanId"/>
</resultMap>
<resultMap type="EmisTransLine" id="EmisTransLineResult">
@ -43,6 +45,10 @@
select a.name from emis_country a where a.code = #{code}
</select>
<select id="selectTotalEstCostDayByPlanId" parameterType="long" resultType="float">
select sum(a.est_cost_day) as est_cost_day from emis_tms_trans_plan_dtl a where a.plan_id = #{id}
</select>
<select id="selectProdNameByCode" parameterType="String" resultType="string">
select group_concat(a.prod_name) from emis_trans_product a where FIND_IN_SET(a.prod_code, #{code}) limit 1
</select>