Yii 查詢 find 條件不等於null or 不能等空
$postware = Postware::find()->select(['house_num'])->where(['account_id' => $account_id, 'send_way' => 4])->andFilterWhere(['OR',['not', 'house_num=""'], ['NOT', ['house_num' => null]]])->orderBy(['id' => SORT_DESC])->limit(1)->asArray()->one();
$returnOrder = ReturnOrder::find()->select(['id', 'waybill'])->where(['state'=>10])->andWhere(['OR',['IS','weight',new \yii\db\Expression('NULL')],['weight'=>0]])->asArray()->all();