| | |
| | | #{technologyNumber} as technologyNumber, |
| | | concat(fc.process_id, '/', #{technologyNumber}) as processIdNumber, |
| | | concat('对应我司单号', o.batch) AS otherRemarks, |
| | | fc.technology_number as qrcode |
| | | fc.technology_number as qrcode, |
| | | o.other_remarks |
| | | 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 |
| | |
| | | a.quantity as 'baiscQuantity', |
| | | #{glassThickness} as 'thickness', |
| | | IF(a.height >= a.width, a.height, a.width) as 'long', |
| | | IF(a.height < a.width, a.height, a.width) as 'short' |
| | | IF(a.height < a.width, a.height, a.width) as 'short', |
| | | IF(a.height >= a.width, a.height, a.width) as 'longSide', |
| | | IF(a.height < a.width, a.height, a.width) as 'shortSide' |
| | | from sd.order_detail as a |
| | | left join sd.order_glass_detail as b |
| | | on a.order_id = b.order_id and a.order_number = b.order_number |