| | |
| | | left join pp.flow_card as fc on op.project_no=fc.project_no |
| | | left join sd.`order` as o on o.order_id=fc.order_id |
| | | where date(op.create_time)>=#{selectTime1} and date(op.create_time) <= #{selectTime2} |
| | | and state >= 20 and o.create_order>0 |
| | | and state >= 20 and (o.create_order>0 or o.create_order is null) |
| | | GROUP BY op.project_no |
| | | order by op.create_time desc |
| | | </select> |
| | |
| | | od.other_columns, |
| | | od.bend_radius, |
| | | od.order_number as heat_layout_id, |
| | | a.id as heat_layout_sort |
| | | a.id as heat_layout_sort, |
| | | od.product_name |
| | | from pp.optimize_detail opd |
| | | left join sd.`order` o on SUBSTR(opd.process_id, 1, 10) = o.order_id |
| | | left join sd.order_detail od |
| | |
| | | od.other_columns, |
| | | od.bend_radius, |
| | | opd.heat_layout_id, |
| | | opd.heat_layout_sort |
| | | opd.heat_layout_sort, |
| | | od.product_name |
| | | from pp.optimize_detail opd |
| | | left join sd.`order` o on SUBSTR(opd.process_id, 1, 10) = o.order_id |
| | | left join sd.order_detail od |
| | |
| | | pd.separation, |
| | | fc.technology_number, |
| | | IFNULL(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S02')),'') as mapNumber, |
| | | od.building_number |
| | | od.building_number, |
| | | fc.merge as merge |
| | | 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 |
| | |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | fc.print_status, |
| | | processed_part as process |
| | | processed_part as process, |
| | | merge |
| | | |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | fc.print_status, |
| | | processed_part as process |
| | | processed_part as process, |
| | | merge |
| | | |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |