|
|
@ -38,6 +38,7 @@
|
|
|
|
<result property="enterpriseId" column="Enterprise_Id"/>
|
|
|
|
<result property="enterpriseId" column="Enterprise_Id"/>
|
|
|
|
<result property="enterpriseCode" column="Enterprise_Code"/>
|
|
|
|
<result property="enterpriseCode" column="Enterprise_Code"/>
|
|
|
|
<result property="operationNumber" column="Operation_Number"/>
|
|
|
|
<result property="operationNumber" column="Operation_Number"/>
|
|
|
|
|
|
|
|
<result property="sn" column="sn"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectOdsProcureOrderVo">
|
|
|
|
<sql id="selectOdsProcureOrderVo">
|
|
|
@ -48,6 +49,7 @@
|
|
|
|
<include refid="selectOdsProcureOrderVo"/>
|
|
|
|
<include refid="selectOdsProcureOrderVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="siteCode != null and siteCode != ''">and Site_code = #{siteCode}</if>
|
|
|
|
<if test="siteCode != null and siteCode != ''">and Site_code = #{siteCode}</if>
|
|
|
|
|
|
|
|
<if test="ID != null and ID != ''">and ID = #{ID}</if>
|
|
|
|
<if test="procureCode != null and procureCode != ''">and Procure_Code = #{procureCode}</if>
|
|
|
|
<if test="procureCode != null and procureCode != ''">and Procure_Code = #{procureCode}</if>
|
|
|
|
<if test="materialCode != null and materialCode != ''">and Material_Code like concat('%', #{materialCode},
|
|
|
|
<if test="materialCode != null and materialCode != ''">and Material_Code like concat('%', #{materialCode},
|
|
|
|
'%') </if>
|
|
|
|
'%') </if>
|
|
|
@ -432,5 +434,24 @@
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="selectOdsProcureOrderCard" resultMap="OdsProcureOrderResult">
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
card.Site_code,
|
|
|
|
|
|
|
|
card.Procure_Code ,
|
|
|
|
|
|
|
|
card.Material_Code ,
|
|
|
|
|
|
|
|
card.Material_Desc ,
|
|
|
|
|
|
|
|
card.User_Defined3 ,
|
|
|
|
|
|
|
|
card.User_Defined4 ,
|
|
|
|
|
|
|
|
card.User_Defined1 sn,
|
|
|
|
|
|
|
|
card.Plan_Number ,
|
|
|
|
|
|
|
|
card.User_Defined10,
|
|
|
|
|
|
|
|
card.User_Defined1,
|
|
|
|
|
|
|
|
order_TME.User_Defined5
|
|
|
|
|
|
|
|
FROM
|
|
|
|
|
|
|
|
ods_procure_order_card card
|
|
|
|
|
|
|
|
LEFT JOIN ods_procure_order order_TME ON order_TME.ID= card.User_Defined4
|
|
|
|
|
|
|
|
WHERE
|
|
|
|
|
|
|
|
card.User_Defined1= #{userDefined1}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|
|
|
|
|
|
|
|
|