mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 17:52:28 +00:00
Adding subscriber device search
This commit is contained in:
@@ -195,9 +195,11 @@ namespace OpenWifi {
|
||||
std::string Query;
|
||||
|
||||
if(Prefix[0]=='*') {
|
||||
Query = fmt::format(" operatorId={} and right(serialNumber,{})='{}' ", operatorId, Prefix.size()-1, Prefix.substr(1));
|
||||
Query = fmt::format(" operatorId={} and (right(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
operatorId, Prefix.size()-1, Prefix.substr(1), Prefix.size()-1, Prefix.substr(1));
|
||||
} else {
|
||||
Query = fmt::format(" operatorId={} and left(serialNumber,{})='{}' ", operatorId, Prefix.size(), Prefix);
|
||||
Query = fmt::format(" operatorId={} and (left(serialNumber,{})='{}' or right(realMacAddress,{})='{}' ) ",
|
||||
operatorId, Prefix.size(), Prefix, Prefix.size(), Prefix);
|
||||
}
|
||||
|
||||
std::vector<ProvObjects::SubscriberDevice> SubDevices;
|
||||
|
||||
Reference in New Issue
Block a user