| | |
| | | ogdss.technology_number, |
| | | ogd.glass_address, |
| | | ROUND(sum(fc.quantity) / (count(DISTINCT fc.technology_number))) as quantity, |
| | | sum(ogd.total_area) as total_area, |
| | | # SUM(ogd.child_width*child_height*fc.quantity/(count(DISTINCT ogd.technology_number))) as total_area, |
| | | # sum(ogd.total_area) as total_area, |
| | | ROUND(SUM(ogd.child_width*ogd.child_height*fc.quantity)/1000000/(count(DISTINCT fc.technology_number)),2) as total_area, |
| | | od.product_name, |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | |
| | | ogdss.technology_number, |
| | | ogd.glass_address, |
| | | ROUND(sum(fc.quantity) / (count(DISTINCT fc.technology_number))) as quantity, |
| | | sum(ogd.total_area) as total_area, |
| | | # SUM(ogd.child_width*child_height*fc.quantity/(count(DISTINCT ogd.technology_number))) as total_area, |
| | | # sum(ogd.total_area) as total_area, |
| | | ROUND(SUM(ogd.child_width*ogd.child_height*fc.quantity)/1000000/(count(DISTINCT fc.technology_number)),2) as total_area, |
| | | od.product_name, |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | |
| | | ogdss.technology_number, |
| | | ogd.glass_address, |
| | | ROUND(sum(fc.quantity) / (count(DISTINCT fc.technology_number))) as quantity, |
| | | sum(ogd.total_area) as total_area, |
| | | ROUND(SUM(ogd.child_width*ogd.child_height*fc.quantity)/1000000/(count(DISTINCT fc.technology_number)),2) as total_area, |
| | | od.product_name, |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | |
| | | o.customer_id, |
| | | ogd.child_width as width, |
| | | ogd.child_height as height, |
| | | od.quantity, |
| | | fc.quantity, |
| | | od.order_number as orderNumber, |
| | | fc.technology_number as technologyNumber, |
| | | ogd.glass_child, |
| | |
| | | od.processing_note as processingNote, |
| | | width, |
| | | height, |
| | | od.quantity, |
| | | fc.quantity, |
| | | od.order_number as orderNumber, |
| | | fc.technology_number as technologyNumber, |
| | | od.building_number as buildingNumber, |
| | |
| | | od.product_name, |
| | | ogd.glass_child, |
| | | fc.print_status, |
| | | pl.reporting_work_id |
| | | pl.reporting_work_id, |
| | | JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')) AS glassNumber |
| | | |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on ogd.order_id = fc.order_id and ogd.order_number = fc.order_number and |
| | |
| | | pl.rework_processes, |
| | | od.product_name, |
| | | ogd.glass_child, |
| | | pl.reporting_work_id |
| | | pl.reporting_work_id, |
| | | JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')) AS glassNumber |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on ogd.order_id = fc.order_id and ogd.order_number = fc.order_number and |
| | |
| | | <select id="getDetailListRefund"> |
| | | select fc.order_number, |
| | | concat(round(ogd.child_width), "*", round(ogd.child_height)) as child_width, |
| | | (pl.patch_num) as quantity, |
| | | sum(pl.patch_num) as quantity, |
| | | round(ogd.total_area, 2) as total_area, |
| | | od.perimeter, |
| | | od.bend_radius, |
| | |
| | | dd.responsible_process, |
| | | dd.responsible_team, |
| | | concat('对应我司单号', o.batch) AS otherRemarks, |
| | | dd.responsible_personnel |
| | | dd.responsible_personnel, |
| | | #{mergeTechnologyNumber} as mergeTechnologyNumber |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and |
| | |
| | | od.processing_note as processingNote, |
| | | round(ogd.child_width) as width, |
| | | round(ogd.child_height) as height, |
| | | od.quantity, |
| | | fc.quantity, |
| | | od.order_number as orderNumber, |
| | | fc.technology_number as technologyNumber, |
| | | od.building_number as buildingNumber, |
| | |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | group by od.order_number, ogd.technology_number, ogd.child_width, ogd.child_height |
| | | group by fc.process_id,od.order_number, ogd.technology_number, ogd.child_width, ogd.child_height |
| | | order by IF(fcs.sort != NULL or fcs.sort != '', fcs.sort, fc.order_number) |
| | | </select> |
| | | |
| | |
| | | fc.order_number, |
| | | ogd.technology_number, |
| | | ogd.glass_address, |
| | | sum(od.quantity) as quantity, |
| | | sum(ogd.total_area) as total_area, |
| | | sum(fc.quantity) as quantity, |
| | | round(sum(ogd.child_width * ogd.child_height * fc.quantity / 1000000), 2) as total_area, |
| | | od.product_name, |
| | | ogd.glass_child, |
| | | fc.founder, |