select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, scm_source, order_id, scm_no, order_state, task_num, active_task_num, finish_task_num, remark from oms_scm_order where del_flag = 1 and top_organization_id = #{topOrganizationId} and organization_id = #{organizationId} and organization_name like concat('%', #{organizationName}, '%') and scm_source = #{scmSource} and order_id = #{orderId} and scm_no = #{scmNo} and order_state = #{orderState} and task_num = #{taskNum} and active_task_num = #{activeTaskNum} and finish_task_num = #{finishTaskNum} and id in #{id} UPDATE oms_scm_order set order_state = #{orderState}, update_by = #{userPo.userId}, update_by_name = #{userPo.userName}, update_time = now() WHERE del_flag = 1 and id IN #{id}