cfmgrv3 init...2

This commit is contained in:
최준흠 2023-06-19 18:53:44 +09:00
parent 1e527f9d8b
commit fd36ab3e8f
3 changed files with 3 additions and 3 deletions

View File

@ -80,6 +80,6 @@ class FirewallModel extends Model
} }
public function setIndexOrderBy($field, $order = 'ASC') public function setIndexOrderBy($field, $order = 'ASC')
{ {
$this->orderBy(['zone_uid' => 'ASC', 'description' => 'ASC', $field => $order]); $this->orderBy("zone_uid ASC, description ASC, {$field} {$order}");
} }
} }

View File

@ -83,7 +83,7 @@ class RecordModel extends Model
} }
public function setIndexOrderBy($field, $order = 'ASC') public function setIndexOrderBy($field, $order = 'ASC')
{ {
$this->orderBy(['zone_uid' => 'ASC', 'host' => 'ASC', $field => $order]); $this->orderBy("zone_uid ASC, host ASC, {$field} {$order}");
} }
//도메인이 이미 존재하는지 체크 //도메인이 이미 존재하는지 체크

View File

@ -82,7 +82,7 @@ class ZoneModel extends Model
} }
public function setIndexOrderBy($field, $order = 'ASC') public function setIndexOrderBy($field, $order = 'ASC')
{ {
$this->orderBy(['account_uid' => 'ASC', 'domain' => 'ASC', $field => $order]); $this->orderBy("account_uid ASC, domain ASC, {$field} {$order}");
} }
//도메인이 이미 존재하는지 체크 //도메인이 이미 존재하는지 체크