|
|
|
@ -28,7 +28,6 @@
|
|
|
|
|
<result property="attr1" column="attr1"/>
|
|
|
|
|
<result property="attr2" column="attr2"/>
|
|
|
|
|
<result property="atrr2" column="atrr2"/>
|
|
|
|
|
|
|
|
|
|
<result property="attr3" column="attr3"/>
|
|
|
|
|
<result property="attr4" column="attr4"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
@ -107,10 +106,17 @@
|
|
|
|
|
pow.route_code, pow.prod_line_code, pow.product_date,
|
|
|
|
|
pow.shift_id, pow.parent_order,pow.status, pow.prod_type,pow.factory_code,
|
|
|
|
|
pow.end_flag,pow.car_num,pow.sort_no,
|
|
|
|
|
pow.workorder_code_sap,po.atrr2,be.sap_code,be.sap_name
|
|
|
|
|
pow.workorder_code_sap,po.atrr2,be.sap_code,be.sap_name,
|
|
|
|
|
REPLACE(FORMAT(bp.length, '0.########'), '.', '') + '×' +
|
|
|
|
|
REPLACE(FORMAT(bp.width, '0.########'), '.', '') + '×' +
|
|
|
|
|
REPLACE(FORMAT(bp.height, '0.########'), '.', '') AS attr4,
|
|
|
|
|
sda.dict_label AS attr3
|
|
|
|
|
from pro_order_workorder pow
|
|
|
|
|
left join pro_order po on pow.order_id = po.id
|
|
|
|
|
left join base_equipment be on pow.workorder_name=be.equipment_code
|
|
|
|
|
left join base_product bp on pow.product_code=bp.product_code
|
|
|
|
|
LEFT JOIN base_product_attached bpa ON RIGHT(bp.product_code, 11) = bpa.product_code
|
|
|
|
|
LEFT JOIN lanju_op_cloud.dbo.sys_dict_data sda ON bpa.pack_type = sda.dict_value and sda.dict_type = 'pack_type'
|
|
|
|
|
<where>
|
|
|
|
|
<if test="workorderCode != null and workorderCode != ''">and pow.workorder_code like concat('%',
|
|
|
|
|
#{workorderCode}, '%')
|
|
|
|
|