jinpengyong
2021-12-16 4450dd41e8d5828e5da4d277c86e54551a6b6c15
screen-manage/src/main/java/com/moral/api/service/impl/DeviceServiceImpl.java
@@ -292,14 +292,9 @@
            queryWrapper.eq("monitor_point_id", mpId);
        }
        //设备名模糊查询
        if (name != null) {
            queryWrapper.like("name", name);
        }
        //mac模糊查询
        if (mac != null) {
            queryWrapper.like("mac", mac);
        //设备名称或mac模糊查询
        if (name != null && mac != null) {
            queryWrapper.like("name", name).or().like("mac", mac);
        }
        //排序参数,默认create_time降序
@@ -354,8 +349,7 @@
        deviceInfo.put("extend", device.getExtend());
        //行业
        deviceInfo.put("profession", device.getProfession());
        deviceInfo.put("professionName", device.getProfessionName());
        deviceInfo.put("professions", device.getProfessions());
        //工艺
        deviceInfo.put("tech", device.getTech());