订单创建加版本号

master
zhaoxiaolin 11 months ago
parent adbf632d74
commit c3125ca18b

@ -189,9 +189,18 @@
</where> </where>
</select> </select>
<select id="selectProOrderWorkorderByWorkorderId" parameterType="String" resultMap="ProOrderWorkorderResult"> <select id="selectProOrderWorkorderByWorkorderId" parameterType="String" resultMap="ProOrderWorkorderResult">
<include refid="selectProOrderWorkorderVo"/> select pow.workorder_id, pow.workorder_code, pow.workorder_name, pow.order_id, pow.order_code, pow.product_id,
where (workorder_code = #{workorderId} or workorder_id = #{workorderId}) pow.product_code, pow.product_name,
and del_flag = '0' pow.product_spc, pow.unit, pow.quantity_produced, pow.quantity_split, pow.route_code, pow.prod_line_code,
pow.product_date,
pow.shift_id, pow.parent_order, pow.ancestors, pow.status, pow.remark, pow.attr1,
pow.attr3, pow.attr4, pow.create_by, pow.create_time,
pow.update_by, pow.update_time, pow.prod_type, pow.factory_code , pow.end_flag , pow.car_num,
pow.sort_no,pow.workorder_code_sap, po.atrr2 attr2
from pro_order_workorder pow
left join pro_order po on pow.order_code = po.order_code
where (pow.workorder_code = #{workorderId} or pow.workorder_id = #{workorderId})
and pow.del_flag = '0'
</select> </select>
<select id="selectFirWorkOrder" parameterType="String" resultMap="ProOrderWorkorderResult"> <select id="selectFirWorkOrder" parameterType="String" resultMap="ProOrderWorkorderResult">

Loading…
Cancel
Save