dbms_primeidc_init...1
This commit is contained in:
parent
3bbf8f87af
commit
7e15211a26
@ -40,7 +40,7 @@ class CouponController extends ClientController
|
|||||||
list($this->client, $this->member, $this->service) = $this->setDefaultRequestData();
|
list($this->client, $this->member, $this->service) = $this->setDefaultRequestData();
|
||||||
//사용자별로 쿠폰정보보기
|
//사용자별로 쿠폰정보보기
|
||||||
if ($this->client instanceof ClientEntity) {
|
if ($this->client instanceof ClientEntity) {
|
||||||
// $this->getServiceService()->getModel()->where('client_code', $this->client->getClientCode());
|
$this->getServiceService()->getModel()->where('client_code', $this->client->getClientCode());
|
||||||
}
|
}
|
||||||
//업체명_일회성만 나오게하기 위해서
|
//업체명_일회성만 나오게하기 위해서
|
||||||
$this->getServiceService()->getModel()->like('server_code', '%_일회성');
|
$this->getServiceService()->getModel()->like('server_code', '%_일회성');
|
||||||
|
|||||||
@ -165,17 +165,12 @@ class QueryBuilder
|
|||||||
$conditions[] = "$col $operator $placeholder";
|
$conditions[] = "$col $operator $placeholder";
|
||||||
$this->bindings[$placeholder] = $val;
|
$this->bindings[$placeholder] = $val;
|
||||||
}
|
}
|
||||||
$this->where[] = '(' . implode(" $boolean ", $conditions) . ')';
|
$this->where[] = ['condition' => '(' . implode(" $boolean ", $conditions) . ')', 'boolean' => $boolean];
|
||||||
} else {
|
} else {
|
||||||
$placeholder = ':l_' . count($this->bindings);
|
$placeholder = ':l_' . count($this->bindings);
|
||||||
$condition = "$column $operator $placeholder";
|
$condition = "$column $operator $placeholder";
|
||||||
if (empty($this->where)) {
|
|
||||||
$this->where[] = $condition;
|
|
||||||
} else {
|
|
||||||
$last = array_pop($this->where);
|
|
||||||
$this->where[] = "($last $boolean $condition)";
|
|
||||||
}
|
|
||||||
$this->bindings[$placeholder] = $value;
|
$this->bindings[$placeholder] = $value;
|
||||||
|
$this->where[] = ['condition' => $condition, 'boolean' => $boolean];
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user