| | |
| | | p.glass_thickness, |
| | | p.glass_type, |
| | | p.glass_total, |
| | | p.glass_total_area |
| | | p.glass_total_area, |
| | | IFNULL(e.state,0) as state |
| | | from north_glass_mes.engineer_scheduling es |
| | | left join pp.optimize_project p on es.project_no=p.project_no |
| | | left join north_glass_mes.engineering e on es.project_no=e.engineer_id |
| | | where es.state = 100 |
| | | <if test="type != null and type != ''"> |
| | | and es.type = #{type} |
| | | </if> |
| | | order by es.id |
| | | order by case when IFNULL(e.state, 0) = 1 then 0 else 1 end, es.id |
| | | </select> |
| | | |
| | | <!-- 根据类型删除engineer_scheduling表中的数据 --> |