“linengliang”
2023-09-18 0db15ae012591c51e98b226c274045323af4f58d
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml
@@ -44,4 +44,25 @@
        </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>