|
|
|
@ -189,9 +189,18 @@
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectProOrderWorkorderByWorkorderId" parameterType="String" resultMap="ProOrderWorkorderResult">
|
|
|
|
|
<include refid="selectProOrderWorkorderVo"/>
|
|
|
|
|
where (workorder_code = #{workorderId} or workorder_id = #{workorderId})
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
select pow.workorder_id, pow.workorder_code, pow.workorder_name, pow.order_id, pow.order_code, pow.product_id,
|
|
|
|
|
pow.product_code, pow.product_name,
|
|
|
|
|
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 id="selectFirWorkOrder" parameterType="String" resultMap="ProOrderWorkorderResult">
|
|
|
|
|