dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-04 14:39:50 +09:00
parent a904a717fd
commit 414f3800fa

View File

@ -92,7 +92,7 @@ class ServiceService extends CommonService
$this->getModel()->where("client_code", "{$client_code}");
$this->getModel()->where("service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}'");
$this->getModel()->where("service_status", "o");
$this->getModel()->whereNotIn("service_line", ['normal', 'defence', 'solo', 'test', 'event', 'substitution']);
$this->getModel()->whereNotIn("service_line", ['solo', 'test', 'event', 'substitution']);
return $this->getCount();
// $sql = "SELECT (SELECT COUNT(*) FROM servicedb WHERE service_line = 'normal' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS normal,
// (SELECT COUNT(*) FROM servicedb WHERE service_line = 'defence' AND service_status = 'o' AND service_sw BETWEEN '{$switchcode_begin}' AND '{$switchcode_end}' AND Client_Code = '{$client_code}') AS defence,