| | |
| | | </select> |
| | | |
| | | <select id="selectPrintMp"> |
| | | select * |
| | | SELECT result.*,fcc.print_status from ( select * |
| | | from ((select fc.id, |
| | | fc.order_id, |
| | | fc.process_id, |
| | |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | fc.print_status, |
| | | processed_part as process |
| | | |
| | | from flow_card as fc |
| | |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | fc.print_status, |
| | | processed_part as process |
| | | |
| | | from flow_card as fc |
| | |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | fc.print_status, |
| | | processed_part as process |
| | | |
| | | from flow_card as fc |
| | |
| | | where process is not null |
| | | and process != "" |
| | | GROUP BY order_id, process_id, technology_number, process |
| | | order by order_id, process_id, length(technology_number) |
| | | order by order_id, process_id, length(technology_number)) as result |
| | | LEFT JOIN (SELECT * from flow_card GROUP BY process_id,technology_number) as fcc |
| | | on result.process_id = fcc.process_id and result.technology_number = fcc.technology_number |
| | | </select> |
| | | |
| | | <select id="getPrimaryList"> |
| | |
| | | <select id="getDetailListLikes"> |
| | | select fc.order_number, |
| | | concat(round(ogd.child_width), "*", round(ogd.child_height)) as child_width, |
| | | #{quantity} as quantity, |
| | | round(ogd.child_width*ogd.child_height*#{quantity}/1000000, 2) as total_area, |
| | | round((ogd.child_width+ogd.child_height)*2*#{quantity}/1000, 2) as perimeter, |
| | | count(*) as quantity, |
| | | round(ogd.child_width*ogd.child_height*count(*)/1000000, 2) as total_area, |
| | | round((ogd.child_width+ogd.child_height)*2*count(*)/1000, 2) as perimeter, |
| | | if(od.shape=2,JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S04')),od.bend_radius) as bend_radius, |
| | | concat(IFNULL(od.processing_note, ''), IFNULL(od.remarks, '')) as remarks, |
| | | od.other_columns, |
| | |
| | | fc.technology_number, |
| | | IFNULL(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S02')),'') as mapNumber, |
| | | od.building_number |
| | | from flow_card as fc |
| | | from optimize_detail opt left join flow_card as fc on opt.process_id = fc.process_id and opt.order_sort = fc.order_number and |
| | | opt.layer = fc.technology_number |
| | | left join sd.order_glass_detail as ogd |
| | | on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and |
| | | fc.technology_number = ogd.technology_number |
| | |
| | | on fcs.process_id = fc.process_id and fcs.order_number = fc.order_number and |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} |
| | | where opt.process_id = #{processId} and opt.project_no=#{printProject} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and fc.order_number=#{orderNumber} |
| | | group by fc.process_id, fc.order_number, fc.technology_number |
| | | order by IF(fcs.sort != NULL or fcs.sort != '', fcs.sort, fc.order_number) |
| | | </select> |