| | |
| | | SUM(completeArea) as completeArea, |
| | | SUM(incompleteNum) as incompleteNum, |
| | | SUM(incompleteArea) as incompleteArea, |
| | | hz.product_name |
| | | hz.glass_child |
| | | from ( |
| | | select DATE(o.create_time) as create_time, |
| | | DATE(o.delivery_date) as delivery_date, |
| | |
| | | and position(#{inputProject} in o.project) |
| | | and GREATEST(fc.quantity - odpd.reporting_work_num, 0)>0 |
| | | and fc.quantity-ifnull(fc.termination_quantity,0)>0 |
| | | <choose> |
| | | <when test="laminating != null and laminating == 'stepC'"> |
| | | GROUP BY fc.process_id, fc.order_number, ogd.`group` |
| | | </when> |
| | | <when test="laminating != null and laminating == 'stepD'"> |
| | | GROUP BY fc.process_id, fc.order_number |
| | | </when> |
| | | <when test="laminating != null and laminating == 'stepB'"> |
| | | GROUP BY fc.process_id, fc.order_number |
| | | </when> |
| | | <otherwise> |
| | | GROUP BY fc.process_id, fc.order_number, fc.technology_number |
| | | </otherwise> |
| | | </choose> |
| | | GROUP BY fc.process_id, fc.order_number, fc.technology_number |
| | | order by fc.process_id, fc.order_number, fc.technology_number |
| | | ) as hz |
| | | GROUP BY hz.project,hz.batch,product_name |
| | | GROUP BY hz.project,hz.batch,glass_child |
| | | </select> |
| | | |
| | | |