| | |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamWeekMaintenanceOrderMapper"> |
| | | |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamWeekMaintenanceOrder"> |
| | | select wmo.*, e.equipment_code, e.equipment_name |
| | | select wmo.*, e.equipment_code, e.equipment_name, e.installation_position |
| | | from eam_week_maintenance_order wmo |
| | | inner join eam_equipment e |
| | | on wmo.equipment_id = e.id |
| | |
| | | and err.maintenance_date < #{end} |
| | | group by FORMAT(err.maintenance_date, 'yyyy-MM') |
| | | </select> |
| | | <select id="selectUnReceivedMaintenanceOrder" |
| | | resultType="org.jeecg.modules.eam.entity.EamWeekMaintenanceOrder"> |
| | | select ewm.*,ee.org_id |
| | | from eam_week_maintenance_order ewm |
| | | left join eam_equipment ee on ewm.equipment_id = ee.id |
| | | where ewm.maintenance_status = 'WAIT_MAINTENANCE' and ewm.del_flag = 0 |
| | | </select> |
| | | </mapper> |