Commit 52f8966d authored by Antonio.Suerte's avatar Antonio.Suerte

KYC Search Issue Fix

parent 03c256ca
<?php <?php
class KYCModelClass extends ModelClassEx { class KYCModelClass extends ModelClassEx {
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
...@@ -271,19 +271,13 @@ class KYCModelClass extends ModelClassEx { ...@@ -271,19 +271,13 @@ class KYCModelClass extends ModelClassEx {
if($this -> openFlg != NO_STRING) { if($this -> openFlg != NO_STRING) {
// 開始日(口座開設日) // 開始日(口座開設日)
if($this -> sFrom != NO_STRING) { if($this -> sFrom != NO_STRING) {
$having .= ' AND users.create_time >= (\')' . str_replace(DELIMIT_SLASH, DELIMIT_HYPHEN, $this -> sFrom) . '(\')'; $having .= ' AND kyc.create_time >= (\')' . str_replace(DELIMIT_SLASH, DELIMIT_HYPHEN, $this -> sFrom) . '(\')';
} }
// 終了日(口座開設日) // 終了日(口座開設日)
if($this -> sTo != NO_STRING) { if($this -> sTo != NO_STRING) {
$having .= ' AND users.create_time < DATE_ADD((\')' . str_replace(DELIMIT_SLASH, DELIMIT_HYPHEN, $this -> sTo) . '(\'), INTERVAL 1 DAY)'; $having .= ' AND kyc.create_time < DATE_ADD((\')' . str_replace(DELIMIT_SLASH, DELIMIT_HYPHEN, $this -> sTo) . '(\'), INTERVAL 1 DAY)';
} }
}else{
$dateTo = strtotime("-2 month", time());
$dateTo = date("Y-m-d", $dateTo);
$dateFrom = date("Y-m-d");
$having .= ' AND users.create_time >= (\')' . $dateTo . '(\')';
$having .= ' AND users.create_time < DATE_ADD((\')' . $dateFrom . '(\'), INTERVAL 1 DAY)';
} }
// 検索のフラグがある場合 // 検索のフラグがある場合
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment