Framework update, adding state to inventory tag, support for subscriber for inventory tag

This commit is contained in:
stephb9959
2022-01-10 22:26:42 -08:00
parent c3af1b50ea
commit 41934c544e
16 changed files with 182 additions and 85 deletions

View File

@@ -80,7 +80,12 @@ namespace OpenWifi{
StorageService()->InventoryDB().GetRecords(QB_.Offset, QB_.Limit, Tags, InventoryDB::OP( StorageService()->InventoryDB().OP("venue",ORM::EQ,Empty),
ORM::AND, StorageService()->InventoryDB().OP("entity",ORM::EQ,Empty) ) , OrderBy );
return SendList(Tags, SerialOnly);
} else if(QB_.CountOnly) {
} else if (HasParameter("subscriber",Arg) && !Arg.empty()) {
// looking for device(s) for a specific subscriber...
ProvObjects::InventoryTagVec Devices;
StorageService()->InventoryDB().GetRecords(0,100,Devices," subscriber='" + Arg + "'");
return SendList(Devices,SerialOnly);
} else if (QB_.CountOnly) {
auto C = StorageService()->InventoryDB().Count();
return ReturnCountOnly(C);
} else if (GetBoolParameter("rrmOnly",false)) {