dbms_primeidc init...1

This commit is contained in:
최준흠 2025-04-01 16:17:22 +09:00
parent 1d740703ce
commit 9faf28a7d7
2 changed files with 5 additions and 7 deletions

View File

@ -105,9 +105,9 @@ abstract class Model
final public function execute(string $query): bool|PDOStatement
{
// if ($this->_debug) {
// echo "\nQuery:" . $query . "\n";
// }
if ($this->_debug) {
echo "\nQuery:" . $query . "\n";
}
$this->_lastQuery = $query;
$stmt = $this->getConnect()->prepare($query);
$stmt->execute();

View File

@ -53,8 +53,7 @@ class ServiceService extends CommonService
$this->getModel()->where("service_status", 'o');
$this->getModel()->whereNotIn("service_line", $excepts);
$count = $this->getModel()->countAllResults();
// throw new \Exception($this->getModel()->getLastQuery());
echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
// echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
return $count;
}
public function getUnPaymentCount(array $excepts): int|string
@ -63,8 +62,7 @@ class ServiceService extends CommonService
$this->getModel()->where("service_status", 'o');
$this->getModel()->whereNotIn("service_line", $excepts);
$count = $this->getModel()->countAllResults();
// throw new \Exception($this->getModel()->getLastQuery());
echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
// echo __FUNCTION__ . ":" . $this->getModel()->getLastQuery();
return $count;
}