Sfoglia il codice sorgente

设备增加搜索 名称或id

谭斌 1 anno fa
parent
commit
d9163c14b9

+ 1 - 1
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -685,7 +685,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
             List<DeviceInfo> list = list(Wrappers.<DeviceInfo>lambdaQuery()
                     .eq(DeviceInfo::getMercId, mercId)
                     .and(wrapper -> wrapper
-                            .eq(DeviceInfo::getDeviceId, deviceId)
+                            .eq(DeviceInfo::getDeviceId, searchKey)
                             .or()
                             .likeRight(DeviceInfo::getDeviceName, searchKey)
                     )