| | |
| | | else 0 end as state |
| | | from glass_temp t |
| | | left join edg_storage_cage_details t1 on t.glass_id = t1.glass_id |
| | | left join damage t2 on t.glass_id = t2.glass_id and t2.type in (8,9) |
| | | left join damage t2 on t.glass_id = t2.glass_id and t2.type in (8,9) AND t2.STATUS = 1 |
| | | )select * from cut_drawing_temp where 1=1 |
| | | <if test="isAll == 1"> |
| | | and state = 0 |
| | |
| | | 2) as oneUncompletedArea, |
| | | round(sum(CASE WHEN e.station_cell = 6 and escd.device_id is null THEN 1 ELSE 0 END), |
| | | 2) as twoUncompletedQuantity, |
| | | round(sum( CASE WHEN e.station_cell = 6 and escd.device_id is null THEN gi.width*gi.height/1000000 ELSE 0 END ),2) as twoUncompletedArea |
| | | round(sum( CASE WHEN e.station_cell = 6 and escd.device_id is null THEN gi.width*gi.height/1000000 ELSE 0 END |
| | | ),2) as twoUncompletedArea |
| | | FROM |
| | | glass_info gi |
| | | left join edg_storage_cage_details escd ON gi.glass_id = escd.glass_id |