md
This commit is contained in:
parent
429edf840a
commit
fb74916146
@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult">
|
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="prodCode" column="prod_code" />
|
<result property="prodCode" column="prod_code" />
|
||||||
<result property="prodName" column="prod_name" />
|
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="carryType" column="carry_type" />
|
<result property="carryType" column="carry_type" />
|
||||||
<result property="beginWeight" column="begin_weight" />
|
<result property="beginWeight" column="begin_weight" />
|
||||||
@ -23,9 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
|
|
||||||
<association property="lineCode" column="prod_code" select="selectLineProdByProdCode"/>
|
<association property="lineCode" column="prod_code" select="selectLineProdByProdCode"/>
|
||||||
|
<association property="prodName" column="prod_code" select="selectProdNameByCode"/>
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<select id="selectProdNameByCode" parameterType="String" resultType="string">
|
||||||
|
select prod_name from emis_trans_product where prod_code=#{code}) limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectLineProdByProdCode" parameterType="string" resultType="string">
|
<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 trans_line_code from emis_trans_product a where del_flag='0' and prod_code=#{code} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user