src/DB/SQLAssembler/SQLAssembler.php
public function del($table, $where, $multi = false)
    {
        $params = array();
        if (true === $multi) {
            if (empty($where ['fields']) || empty($where ['values'])) {
                throw new CoreException('data format error!');
            }

            $where_condition = array();
            foreach ($where ['fields'] as $d) {
                $where_condition[] = "{$d} = ?";
            }

            $where_str = implode(' AND ', $where_condition);
            foreach ($where ['values'] as $p) {
                $params[] = $p;
            }

        } else {
            $where_str = $this->parseWhere($where, $params);
        }

        $this->setSQL("DELETE FROM {$table} WHERE {$where_str}");
        $this->setParams($params);
    }
public function del($table, $where, $multi = false)
    {
        $params = array();
        if (true === $multi) {
            if (empty($where ['fields']) || empty($where ['values'])) {
                throw new CoreException('data format error!');
            }

            $where_condition = array();
            foreach ($where ['fields'] as $d) {
                $where_condition[] = "{$d} = ?";
            }

            $where_str = implode(' AND ', $where_condition);
            foreach ($where ['values'] as $p) {
                $params[] = $p;
            }

        } else {
            $where_str = $this->parseWhere($where, $params);
        }

        $this->setSQL("DELETE FROM {$table} WHERE {$where_str}");
        $this->setParams($params);
    }
删除

@param string $table
@param string|array $where
@param bool $multi 是否批量删除数据
$where = array(
'fields' => array(字段1,字段2,...),
'values' => array(
array(字段1的值, 字段2的值),
array(字段1的值, 字段2的值))
);
@return mixed|void
@throws CoreException