dbms_primeidc init...1
This commit is contained in:
parent
1d740703ce
commit
9faf28a7d7
@ -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();
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user