|
|
@@ -551,7 +551,8 @@ class PushBaseDataToCalc extends BaseBusiness
|
|
|
$periodList = implode("','", $periodList);
|
|
|
|
|
|
$orderSn = Order::find()->select('SN')->where("IS_DELETE = 0 AND PERIOD_NUM IN ('{$periodList}')")->column();
|
|
|
- $where = 'ORDER_SN IN ("' . implode("','", $orderSn) . '")';
|
|
|
+ $orderSn = implode("','", $orderSn);
|
|
|
+ $where = "ORDER_SN IN ('{$orderSn}')";
|
|
|
}
|
|
|
|
|
|
$sql = $model::find()->select($field)->where($where)->limit($this->_limit)->offset($_offset * $this->_limit)->createCommand()->getRawSql();;
|