实惠等产品退卡

This commit is contained in:
wanyongkang
2020-12-05 19:53:28 +08:00
parent 0bb02fd81b
commit 4ed41b02b5
2 changed files with 58 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class Sql
$flag = false;
if (is_array($value)) {
if (in_array($value[0], $ins)) {
$this->filter .= ' `' . $key . '` ' . $value[0] . '(' . implode(',', $value[1]) . ')';
$this->filter .= ' `' . $key . '` ' . $value[0] . '(\'' . implode('\',\'', $value[1]) . '\')';
} else {
$param_key = $this->paramIsExit($key, $this->param);
$this->filter .= ' `' . $key . '` ' . $value[0] . ' :' . $param_key;
@@ -58,7 +58,7 @@ class Sql
} else {
if (is_array($value)) {
if (in_array($value[0], $ins)) {
$this->filter .= ' AND `' . $key . '` ' . $value[0] . '(' . implode(',', $value[1]) . ')';
$this->filter .= ' AND `' . $key . '` ' . $value[0] . '(\'' . implode('\',\'', $value[1]) . '\')';
} else {
$param_key = $this->paramIsExit($key, $this->param);
$this->filter .= ' AND `' . $key . '` ' . $value[0] . ' :' . $param_key;