po.id, po.sales_ledger_id, po.production_plan_ids, po.product_model_id, po.nps_no, po.create_time, po.update_time, po.technology_routing_id, po.quantity, po.complete_quantity, po.start_time, po.end_time, po.sale_ledger_product_id, po.create_user, po.dept_id, po.plan_complete_time, po.status, sl.sales_contract_no as salesContractNo, sl.customer_name as customerName, p.product_name as productName, pm.model as model, tr.process_route_code as processRouteCode from production_order po left join sales_ledger sl on po.sales_ledger_id = sl.id left join product_model pm on po.product_model_id = pm.id left join product p on pm.product_id = p.id left join technology_routing tr on po.technology_routing_id = tr.id and po.id = #{c.id} and po.sales_ledger_id = #{c.salesLedgerId} and po.product_model_id = #{c.productModelId} and po.technology_routing_id = #{c.technologyRoutingId} and po.sale_ledger_product_id = #{c.saleLedgerProductId} and po.status = #{c.status} and po.create_user = #{c.createUser} and po.dept_id = #{c.deptId} and po.nps_no like concat('%', #{c.npsNo}, '%') and po.production_plan_ids like concat('%', #{c.productionPlanIds}, '%') and po.plan_complete_time = #{c.planCompleteTime} and po.start_time >= #{c.startTime} and po.end_time <= #{c.endTime}