| | |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | <!--根据大屏车间id查询设备列表--> |
| | | <select id="getEquipmentByWorkshopId" resultType="org.jeecg.modules.mdc.entity.MdcEquipment"> |
| | | SELECT |
| | | me.* |
| | | FROM |
| | | mdc_workshop_equipment mwe |
| | | LEFT JOIN mdc_equipment me ON me.equipment_id = mwe.equipment_id |
| | | <where> |
| | | AND mwe.workshop_id = #{ workshopEquipmentVo.workshopId } |
| | | <if test="workshopEquipmentVo.equipmentId != null and workshopEquipmentVo.equipmentId != ''"> |
| | | AND mwe.equipment_id = #{equipmentId} |
| | | </if> |
| | | </where> |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | |
| | | </mapper> |