| | |
| | | WHERE |
| | | med.equipment_id = me.id |
| | | AND med.dep_id = #{ departId } |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | <!--根据产线id查询设备--> |
| | |
| | | WHERE |
| | | mpe.equipment_id = me.id |
| | | AND mpe.production_id = #{ productionId } |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | <!--根据产线id查询设备id集合--> |
| | |
| | | k.equipment_type, |
| | | k.equipment_type_pictures |
| | | ORDER BY |
| | | equipmentName |
| | | EquipmentID |
| | | </select> |
| | | |
| | | <!--根据部门id查询设备id集合--> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | <!--根据设备编号查询设备信息和产线信息--> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </where> |
| | | 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 = #{ workshopEquipmentVo.equipmentId } |
| | | </if> |
| | | </where> |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | | |