| | |
| | | WHERE |
| | | med.equipment_id = me.id |
| | | AND med.dep_id = #{ departId } |
| | | <if test="key != null and key != '' "> |
| | | AND me.device_abnormal_status = 1 |
| | | </if> |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | |
| | | WHERE |
| | | mpe.equipment_id = me.id |
| | | AND mpe.production_id = #{ productionId } |
| | | <if test="key != null and key != '' "> |
| | | AND me.device_abnormal_status = 1 |
| | | </if> |
| | | ORDER BY me.equipment_id |
| | | </select> |
| | | |
| | |
| | | LEFT JOIN mdc_production_equipment mpe ON me.id = mpe.equipment_id |
| | | WHERE |
| | | mpe.production_id IN |
| | | <foreach collection="allProductionIds" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | <foreach collection="allProductionIds" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!--查询设备监控信息--> |
| | |
| | | sd.org_type, |
| | | me.equipment_id, |
| | | me.equipment_name, |
| | | me.equipment_type |
| | | me.equipment_type, |
| | | me.equipment_model |
| | | FROM |
| | | mdc_equipment_depart med |
| | | LEFT JOIN sys_depart sd ON med.dep_id = sd.id |
| | |
| | | <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | AND me.device_abnormal_status = 1 |
| | | </where> |
| | | ORDER BY sd.depart_order |
| | | </select> |
| | |
| | | mp.org_type, |
| | | me.equipment_id, |
| | | me.equipment_name, |
| | | me.equipment_type |
| | | me.equipment_type, |
| | | me.equipment_model |
| | | FROM |
| | | mdc_production_equipment mpe |
| | | LEFT JOIN mdc_production mp ON mpe.production_id = mp.id |
| | |
| | | <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | AND me.device_abnormal_status = 1 |
| | | </where> |
| | | ORDER BY mp.production_order |
| | | </select> |
| | |
| | | <if test="mdcEquipment.deviceCategory != null and mdcEquipment.deviceCategory != '' "> |
| | | AND t1.device_category = #{mdcEquipment.deviceCategory} |
| | | </if> |
| | | <if test="mdcEquipment.deviceAbnormalStatus != null and mdcEquipment.deviceAbnormalStatus != '' "> |
| | | AND t1.device_abnormal_status = #{mdcEquipment.deviceAbnormalStatus} |
| | | </if> |
| | | <if test="mdcEquipment.productionIds != null and mdcEquipment.productionIds.size() > 0 "> |
| | | AND t3.id IN |
| | | <foreach collection="mdcEquipment.productionIds" index="index" item="id" open="(" separator="," close=")"> |