This commit is contained in:
linfso 2024-05-25 18:58:48 +08:00
parent e2ce9ded95
commit 429edf840a
2 changed files with 13 additions and 0 deletions

View File

@ -58,4 +58,10 @@ public class EmisSpecialCalcWeight extends BaseEntity
private Date endDate;
//------- 扩展字段
// 归属线路
private String lineCode;
}

View File

@ -21,8 +21,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<association property="lineCode" column="prod_code" select="selectLineProdByProdCode"/>
</resultMap>
<select id="selectLineProdByProdCode" parameterType="string" resultType="string">
select trans_line_code from emis_trans_product a where del_flag='0' and prod_code=#{code} limit 1
</select>
<sql id="selectEmisSpecialCalcWeightVo">
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_special_calc_weight
</sql>