| | |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="processStatus" column="process_status" /> |
| | | <result property="stdOp" column="std_op" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, |
| | | doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, |
| | | dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code, std_op |
| | | from aps_work_order_job |
| | | </sql> |
| | | |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="orgCode != null">org_code,</if> |
| | | <if test="processStatus != null">process_status,</if> |
| | | <if test="stdOp != null">std_op,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="orderId != null">#{orderId},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="orgCode != null">#{orgCode},</if> |
| | | <if test="processStatus != null">#{processStatus},</if> |
| | | <if test="stdOp != null">#{stdOp},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="orgCode != null"> org_code= #{orgCode},</if> |
| | | <if test="processStatus != null"> process_status= #{processStatus},</if> |
| | | <if test="stdOp != null"> std_op= #{stdOp},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | update_by, |
| | | update_time, |
| | | org_code, |
| | | process_status |
| | | process_status, |
| | | std_op, |
| | | </trim> |
| | | values |
| | | <foreach collection="list" item="job" separator=","> |
| | |
| | | #{job.updateBy}, |
| | | #{job.updateTime}, |
| | | #{job.orgCode}, |
| | | #{job.processStatus} |
| | | #{job.processStatus}, |
| | | #{job.stdOp}, |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | process_number,work_center,department, |
| | | plan_start_day,plan_end_day,next_process_deparment, |
| | | is_suspended,is_outsourcing,account, |
| | | id,create_time,del_flag,plant,order_status |
| | | id,create_time,del_flag,plant,order_status,std_op |
| | | ) |
| | | select |
| | | doc_no,mainitem_code,mainitem_figure, |
| | |
| | | op_num,work_center,dept, |
| | | start_date,complete_date,next_dept, |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status |
| | | 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%' |
| | |
| | | process_number,work_center,department, |
| | | plan_start_day,plan_end_day,next_process_deparment, |
| | | is_suspended,is_outsourcing,account, |
| | | id,create_time,del_flag,plant,order_status |
| | | id,create_time,del_flag,plant,order_status,,std_op |
| | | ) |
| | | select |
| | | doc_no,mainitem_code,mainitem_figure, |
| | |
| | | op_num,work_center,dept, |
| | | start_date,complete_date,next_dept, |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status |
| | | 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 'M03%' or mainitem_code like 'M04%'or mainitem_code like 'A75%') |