Browse Source

右模糊查询改成模糊查询

hechunping 1 năm trước cách đây
mục cha
commit
1995d61906

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

@@ -806,7 +806,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
                 deviceLqw.and(wrapper -> wrapper
                 deviceLqw.and(wrapper -> wrapper
                         .eq(Emptys.check(searchKey), DeviceInfo::getDeviceId, searchKey)
                         .eq(Emptys.check(searchKey), DeviceInfo::getDeviceId, searchKey)
                         .or()
                         .or()
-                        .likeRight(Emptys.check(searchKey), DeviceInfo::getDeviceName, searchKey)
+                        .like(Emptys.check(searchKey), DeviceInfo::getDeviceName, searchKey)
                 );
                 );
             }
             }