|
|
|
@ -60,7 +60,7 @@
|
|
|
|
|
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,
|
|
|
|
|
ppow.product_code pproductCode,ppow.product_name pproductName,pow.workorder_code_sap pworkorderCodeSap
|
|
|
|
|
ppow.product_code pproductCode,ppow.product_name pproductName,ppow.workorder_code_sap pworkorderCodeSap
|
|
|
|
|
from pro_order_workorder pow
|
|
|
|
|
left join pro_order_workorder ppow on pow.parent_order = ppow.workorder_code
|
|
|
|
|
<where>
|
|
|
|
@ -80,7 +80,7 @@
|
|
|
|
|
<if test="endFlag != null and endFlag != ''"> and pow.end_flag = #{endFlag}</if>
|
|
|
|
|
<if test="productDateStart != null "> and CONVERT(varchar(10),pow.product_date, 120) >= '${productDateStart}'</if>
|
|
|
|
|
<if test="productDateEnd != null "> and '${productDateEnd}' >= CONVERT(varchar(10),pow.product_date, 120)</if>
|
|
|
|
|
and pow.del_flag = '0'
|
|
|
|
|
and pow.del_flag = '0' and ppow.del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|