pop.id as id,
pop.product_model_id as productModelId,
pop.quantity as quantity,
pop.quantity as pickQuantity,
pop.batch_no as batchNo,
pop.create_time as createTime,
pop.update_time as updateTime,
pop.production_order_id as productionOrderId,
pop.production_operation_task_id as productionOperationTaskId,
pop.remark as remark,
pop.technology_operation_id as technologyOperationId,
pop.demanded_quantity as demandedQuantity,
pop.feeding_qty as feedingQty,
pop.return_qty as returnQty,
pop.actual_qty as actualQty,
pop.is_returned as returned,
pop.is_bom as bom,
coalesce(pop.operation_name, top1.name) as operationName,
p.product_name as productName,
pm.model as model,
pm.unit as unit,
pot.work_order_no as workOrderNo
from production_order_pick pop
left join product_model pm on pop.product_model_id = pm.id
left join product p on pm.product_id = p.id
left join technology_operation top1 on pop.technology_operation_id = top1.id
left join production_operation_task pot on pop.production_operation_task_id = pot.id