| | |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status,std_op |
| | | from aps_work_order_job |
| | | where ( doc_status in (0,1,2,4) and |
| | | (mainitem_code like 'M01%' or mainitem_code like 'M02%'or mainitem_code like 'M05%' or mainitem_code like 'M10%' |
| | | or mainitem_code like 'M14%'or mainitem_code like 'M15%' or mainitem_code like 'F%' or mainitem_code like 'Z%') |
| | | where ( doc_status in (0,1,2,4) and is_hold_release='0' |
| | | and (mainitem_code like 'M01%' or mainitem_code like 'M02%'or mainitem_code like 'M05%' or mainitem_code like 'M10%' |
| | | or mainitem_code like 'M14%'or mainitem_code like 'M15%' or mainitem_code like 'F%' or mainitem_code like 'Z%' |
| | | ) |
| | | ); |
| | | </insert> |
| | | <delete id="deleteAllPlatePlan" > |
| | |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status,std_op |
| | | from aps_work_order_job |
| | | where ( doc_status in (0,1,2,4) |
| | | where ( doc_status in (0,1,2,4) and is_hold_release='0' |
| | | and (mainitem_code like 'M03%' or mainitem_code like 'M04%'or mainitem_code like 'A75%') |
| | | ); |
| | | </insert> |
| | |
| | | order_id,now(),'0',org_code,doc_status,std_op, |
| | | case when substr(mainitem_code,3)='A65' then 'gas' else 'piping' end as plan_type |
| | | from aps_work_order_job |
| | | where ( doc_status in (0,1,2,4) |
| | | where ( doc_status in (0,1,2,4) and is_hold_release='0' |
| | | and (mainitem_code like 'A65%' or mainitem_code like 'W%')); |
| | | </insert> |
| | | </mapper> |