|
|
|
@ -647,7 +647,8 @@
|
|
|
|
|
<where>
|
|
|
|
|
<if test="siteCode != null and siteCode != ''"> and Site_code = #{siteCode}</if>
|
|
|
|
|
<if test="produceCode != null and produceCode != ''"> and Produce_Code = #{produceCode}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''"> and Material_Code = #{materialCode}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''"> and Material_Code like concat('%', #{materialCode},
|
|
|
|
|
'%')</if>
|
|
|
|
|
<if test="materialDesc != null and materialDesc != ''"> and Material_Desc = #{materialDesc}</if>
|
|
|
|
|
<if test="planDate != null "> and Plan_Date = #{planDate}</if>
|
|
|
|
|
<if test="planNumber != null "> and Plan_Number = #{planNumber}</if>
|
|
|
|
@ -806,7 +807,7 @@
|
|
|
|
|
wms_ods_procure_out_order
|
|
|
|
|
LEFT JOIN wms_raw_mission_out ON wms_raw_mission_out.prd_order = wms_ods_procure_out_order.Produce_Code
|
|
|
|
|
AND wms_raw_mission_out.material_code = wms_ods_procure_out_order.Material_Code
|
|
|
|
|
where wms_ods_procure_out_order.ID
|
|
|
|
|
where wms_ods_procure_out_order.ID IN
|
|
|
|
|
<foreach item="odsProcureOutOrder" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{odsProcureOutOrder.ID}
|
|
|
|
|
</foreach>
|
|
|
|
@ -1057,7 +1058,7 @@
|
|
|
|
|
wms_raw_mission_out
|
|
|
|
|
WHERE
|
|
|
|
|
prd_order=#{produceCode} AND
|
|
|
|
|
material_code=#{Material_Code}
|
|
|
|
|
material_code=#{materialCode}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectPreDetailHzList" resultMap="OdsProcureOutOrderResult">
|
|
|
|
|
SELECT
|
|
|
|
@ -1127,4 +1128,13 @@
|
|
|
|
|
where Order_Status='3' and Active='1'
|
|
|
|
|
and User_Defined10='1'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectMesReportWorkConsume" resultType="java.lang.String">
|
|
|
|
|
SELECT
|
|
|
|
|
quantity
|
|
|
|
|
FROM
|
|
|
|
|
mes_report_work_consume
|
|
|
|
|
WHERE
|
|
|
|
|
workorder_code =#{userDefined4}
|
|
|
|
|
AND material_code = #{materialCode}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|