diff --git a/extdbms/lib/Controllers/DBMS/ServerController.php b/extdbms/lib/Controllers/DBMS/ServerController.php index 0654ac2..416a791 100644 --- a/extdbms/lib/Controllers/DBMS/ServerController.php +++ b/extdbms/lib/Controllers/DBMS/ServerController.php @@ -38,22 +38,22 @@ class ServerController extends DBMSController $lineup_explode = explode('.', $entity->getSpec()); $spec = $lineup_explode[0]; $cpu = $entity->getCPUName(); - $this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both"); - $this->getServerService()->getModel()->whereLike("server_spec", $spec, "both"); + $this->getServerService()->getModel()->like("server_cpuname", $cpu, "both"); + $this->getServerService()->getModel()->like("server_spec", $spec, "both"); $entity->all = $this->getServerService()->getCount(); $this->getServerService()->getModel()->where("server_use_status", "n"); - $this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both"); - $this->getServerService()->getModel()->whereLike("server_spec", $spec, "both"); + $this->getServerService()->getModel()->like("server_cpuname", $cpu, "both"); + $this->getServerService()->getModel()->like("server_spec", $spec, "both"); $entity->use = $this->getServerService()->getCount(); $this->getServerService()->getModel()->where("server_use_status", "y"); - $this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both"); - $this->getServerService()->getModel()->whereLike("server_spec", $spec, "both"); + $this->getServerService()->getModel()->like("server_cpuname", $cpu, "both"); + $this->getServerService()->getModel()->like("server_spec", $spec, "both"); $entity->empty = $this->getServerService()->getCount(); $this->getServerService()->getModel()->where("server_use_status", "y"); - $this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both"); + $this->getServerService()->getModel()->like("server_cpuname", $cpu, "both"); $this->getServerService()->getModel()->where("server_fomat_date !='NULL'"); $entity->format = $this->getServerService()->getCount(); return $entity;