dbms_primeidc_init...1
This commit is contained in:
parent
b831443582
commit
1ac78307ab
@ -2,7 +2,6 @@
|
||||
|
||||
namespace lib\Configs;
|
||||
|
||||
use extra;
|
||||
use lib\Controllers\DBMS\Client\MemoController;
|
||||
use lib\Controllers\DBMS\Client\OnetimeController;
|
||||
use lib\Controllers\DBMS\Client\PaymentController;
|
||||
|
||||
@ -50,9 +50,8 @@ class PaymentController extends ClientController
|
||||
$exclude_clients = ['C116', 'C219'];
|
||||
//mode 당일,1일전,2일전,3일전,custom
|
||||
$today = date("Y-m-d");;
|
||||
echo var_dump($this->getRequest()->get());
|
||||
exit;
|
||||
switch ($this->getRequest()->get('mode')) {
|
||||
$mode = $params['mode'] ?? $this->getRequest()->get('mode') ?? 'all';
|
||||
switch ($mode) {
|
||||
case 'today':
|
||||
$this->getServiceService()->getModel()->where("service_payment_date = CURDATE()");
|
||||
$this->message = "[{$today} 기준 당일 ";
|
||||
@ -87,7 +86,7 @@ class PaymentController extends ClientController
|
||||
$this->getServiceService()->getModel()->whereNotIn("{$addDbTable}.addDB_accountStatus", ["complete"]);
|
||||
$this->getServiceService()->getModel()->orderBy("service_payment_date", "DESC");
|
||||
|
||||
$this->mode = $params['mode'];
|
||||
$this->mode = $mode;
|
||||
//Query문 Rest여부 -> 같은조건에 Count 받고, 결과값을 받고 싶을때는 continue()
|
||||
$this->getServiceService()->getModel()->setContinue(true);
|
||||
$this->total = $this->getServiceService()->getCount();
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
namespace lib\Core;
|
||||
|
||||
use lib\Core\Router;
|
||||
use lib\Core\Response;
|
||||
use lib\Http\Response;
|
||||
|
||||
abstract class App
|
||||
{
|
||||
|
||||
@ -6,15 +6,7 @@ class HTTP
|
||||
{
|
||||
protected array $headers = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->headers = foreach ($_SERVER as $name => $value) {
|
||||
if (str_starts_with($name, 'HTTP_')) {
|
||||
$key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
|
||||
$headers[$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
public function __construct() {}
|
||||
|
||||
public function getHeaders(): array
|
||||
{
|
||||
|
||||
@ -14,7 +14,7 @@ class Request extends HTTP
|
||||
|
||||
$this->get = $_GET;
|
||||
$this->post = $_POST;
|
||||
$this->data = array_merge($_GET, $_POST, json_decode(file_get_contents('php://data'), true) ?? []);
|
||||
$this->data = array_merge($_GET, $_POST);
|
||||
}
|
||||
|
||||
public function all(): array
|
||||
|
||||
Loading…
Reference in New Issue
Block a user