This commit is contained in:
linfso 2024-05-25 19:44:18 +08:00
parent c947cc2eb9
commit 3825542e20
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ public class EmisSpecialCalcWeight extends BaseEntity
//------- 扩展字段
// 归属线路
private String lineCode;
private String lineName;
/* 产品类型名称 */
private String prodName;

View File

@ -23,10 +23,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" />
<association property="lineCode" column="prod_code" select="selectLineProdByProdCode"/>
<association property="lineName" column="prod_code" select="selectLineNameByProdCode"/>
<association property="prodName" column="prod_code" select="selectProdNameByCode"/>
</resultMap>
<select id="selectLineNameByProdCode" parameterType="String" resultType="string">
select a.line_name from emis_trans_line a,emis_trans_product b where a.line_code=b.trans_line_code and b.prod_code = #{code} limit 1
</select>
<select id="selectProdNameByCode" parameterType="String" resultType="string">
select prod_name from emis_trans_product where prod_code=#{code} limit 1
</select>