md
This commit is contained in:
parent
c947cc2eb9
commit
3825542e20
@ -59,6 +59,7 @@ public class EmisSpecialCalcWeight extends BaseEntity
|
||||
//------- 扩展字段
|
||||
// 归属线路
|
||||
private String lineCode;
|
||||
private String lineName;
|
||||
/* 产品类型名称 */
|
||||
private String prodName;
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user