| | |
| | | </if> |
| | | ORDER BY t1.create_time desc |
| | | </select> |
| | | </mapper> |
| | | <select id="getPagesByEquipmentId" resultType="org.jeecg.modules.eam.entity.EquipmentSpares"> |
| | | select |
| | | t1.id id, |
| | | t2.id sparePartId, |
| | | t2.name name, |
| | | t2.num num, |
| | | t2.model model, |
| | | t2.specification specification, |
| | | t2.main_unit_id unitId, |
| | | t3.name unitName, |
| | | t1.equipment_id equipmentId |
| | | from mom_eam_equipment_spares t1 |
| | | left join mom_eam_spare_part t2 |
| | | on t1.spare_part_id = t2.id |
| | | left join mom_base_unit t3 |
| | | on t2.main_unit_id = t3.id |
| | | where |
| | | t1.del_flag = 0 |
| | | and |
| | | t1.equipment_id=#{equipmentId} |
| | | </select> |
| | | </mapper> |