| | |
| | | |
| | | <select id="getPrintCustomDataProjectDetail"> |
| | | select |
| | | opt.glass_id as heat_layout_sort , |
| | | o.order_id as orderId, |
| | | project, |
| | | customer_id as customerId, |
| | |
| | | od.processing_note as processingNote, |
| | | od.width, |
| | | od.height, |
| | | fc.quantity as flowQuantity, |
| | | opl.glass_count as flowQuantity, |
| | | CONCAT( |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.width AS CHAR))), |
| | | ' X ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.height AS CHAR))), |
| | | ' = ',opl.glass_count ) as size, |
| | | CONCAT( |
| | | od.order_number,') ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.width AS CHAR))), |
| | | ' X ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.height AS CHAR))), |
| | | ' = ',opl.glass_count ) as numberSize, |
| | | CONCAT( |
| | | od.order_number,')',' ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.width AS CHAR))), |
| | | ' X ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(od.height AS CHAR)))) as numberSizeQuantity, |
| | | od.order_number as orderNumber, |
| | | fc.technology_number as technologyNumber, |
| | | od.building_number as buildingNumber, |
| | |
| | | '文本' as custom5, |
| | | od.quantity |
| | | from optimize_detail as opt |
| | | left join optimize_layout as opl on opl.project_no=opt.project_no and opl.stock_id=opt.stock_id |
| | | left join flow_card as fc on opt.project_no=fc.project_no and opt.process_id=fc.process_id and opt.layer=fc.technology_number and opt.order_sort=fc.order_number |
| | | left join sd.order as o on o.order_id=fc.order_id |
| | | left join sd.order_detail as od on fc.order_id = od.order_id and od.order_number = fc.order_number |