zhanghl
2025-04-27 0f9771f826d82b6a3bcd47011495be0915ebad0e
aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobMapper.xml
@@ -323,9 +323,10 @@
            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" >
@@ -353,7 +354,7 @@
            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>
@@ -384,7 +385,7 @@
            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>