This commit is contained in:
linfso 2024-05-25 19:02:00 +08:00
parent 429edf840a
commit fb74916146

View File

@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult">
<result property="id" column="id" />
<result property="prodCode" column="prod_code" />
<result property="prodName" column="prod_name" />
<result property="status" column="status" />
<result property="carryType" column="carry_type" />
<result property="beginWeight" column="begin_weight" />
@ -23,9 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" />
<association property="lineCode" column="prod_code" select="selectLineProdByProdCode"/>
<association property="prodName" column="prod_code" select="selectProdNameByCode"/>
</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 trans_line_code from emis_trans_product a where del_flag='0' and prod_code=#{code} limit 1
</select>