| | |
| | | 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> |
| | | |
| | | <!--查询设备监控信息--> |