dbms_primeidc_init...1
This commit is contained in:
parent
0d2ba4c88c
commit
c1e34c7eaa
@ -38,22 +38,22 @@ class ServerController extends DBMSController
|
|||||||
$lineup_explode = explode('.', $entity->getSpec());
|
$lineup_explode = explode('.', $entity->getSpec());
|
||||||
$spec = $lineup_explode[0];
|
$spec = $lineup_explode[0];
|
||||||
$cpu = $entity->getCPUName();
|
$cpu = $entity->getCPUName();
|
||||||
$this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both");
|
$this->getServerService()->getModel()->like("server_cpuname", $cpu, "both");
|
||||||
$this->getServerService()->getModel()->whereLike("server_spec", $spec, "both");
|
$this->getServerService()->getModel()->like("server_spec", $spec, "both");
|
||||||
$entity->all = $this->getServerService()->getCount();
|
$entity->all = $this->getServerService()->getCount();
|
||||||
|
|
||||||
$this->getServerService()->getModel()->where("server_use_status", "n");
|
$this->getServerService()->getModel()->where("server_use_status", "n");
|
||||||
$this->getServerService()->getModel()->whereLike("server_cpuname", $cpu, "both");
|
$this->getServerService()->getModel()->like("server_cpuname", $cpu, "both");
|
||||||
$this->getServerService()->getModel()->whereLike("server_spec", $spec, "both");
|
$this->getServerService()->getModel()->like("server_spec", $spec, "both");
|
||||||
$entity->use = $this->getServerService()->getCount();
|
$entity->use = $this->getServerService()->getCount();
|
||||||
|
|
||||||
$this->getServerService()->getModel()->where("server_use_status", "y");
|
$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()->whereLike("server_spec", $spec, "both");
|
$this->getServerService()->getModel()->like("server_spec", $spec, "both");
|
||||||
$entity->empty = $this->getServerService()->getCount();
|
$entity->empty = $this->getServerService()->getCount();
|
||||||
|
|
||||||
$this->getServerService()->getModel()->where("server_use_status", "y");
|
$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'");
|
$this->getServerService()->getModel()->where("server_fomat_date !='NULL'");
|
||||||
$entity->format = $this->getServerService()->getCount();
|
$entity->format = $this->getServerService()->getCount();
|
||||||
return $entity;
|
return $entity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user