运行环境:nginx + php 7.1.4
代码文件:fecshop\app\appfront\modules\Customer\block\order\Index.php

下面查询customer_id的订单时,customer_id实际上是 fecshop\models\mysqldb\Customer 
最后这个查询,生成的sql是如下:
SELECT * FROM sales_flat_order WHERE customer_id IN (2, '$2y$13$atB3oblM10IVU6mDmInLz.KPbwbdum0qY8ueBNIAowuQxZB4gybde', NULL, 'user-account', 'first name', 'last name', 2, 'iOeNRQVS4OFun1p_XL4jYI4MwSrhJci2', 1, 1521886335, 1521886335, '', 'Q39UnpMzn4DAY7fj76CyQEwPVXr3_dws', NULL, 0, 'default', NULL, NULL, NULL) ORDER BY created_at DESC LIMIT 10
当查询条件改为以下代码,返回结果正常
$filter = [
    'numPerPage'    => $this->numPerPage,
    'pageNum'        => $this->pageNum,
    'orderBy'        => $this->orderBy,
    'where'            => [
        ['customer_id' => $this->customer_id->id],
    ],
    'asArray' => true,
];