| | |
| | | count_out_one, |
| | | round(sum(t1.width * t1.height) / 1000000, 2) as total_area_out_one |
| | | from edg_storage_device_task_history t |
| | | inner join glass_info t1 on t.glass_id_in = t1.glass_id |
| | | inner join glass_info t1 on t.glass_id_out = t1.glass_id |
| | | where t.task_type in |
| | | (2, 3) |
| | | and STR_TO_DATE(t.create_time, '%Y-%m-%d') BETWEEN #{beginDate} and #{endDate} |
| | |
| | | count_out_two, |
| | | round(sum(t1.width * t1.height) / 1000000, 2) as total_area_out_two |
| | | from edg_storage_device_task_history t |
| | | inner join glass_info t1 on t.glass_id_in = t1.glass_id |
| | | inner join glass_info t1 on t.glass_id_out = t1.glass_id |
| | | where t.task_type in |
| | | (2, 3) |
| | | and STR_TO_DATE(t.create_time, '%Y-%m-%d') BETWEEN #{beginDate} and #{endDate} |