|
|
@@ -534,10 +534,10 @@ class PushBaseDataToCalc extends BaseBusiness
|
|
|
|
|
|
$where = '1=1';
|
|
|
if ($table == 'order') {
|
|
|
- $where = 'PERIOD_NUM=' . $this->_periodNum;
|
|
|
+ $where = 'IS_DELETE = 0 AND PERIOD_NUM=' . $this->_periodNum;
|
|
|
}
|
|
|
if ($table == 'orderGoods') {
|
|
|
- $orderSn = Order::find()->select(['SN'])->where('PERIOD_NUM=' . $this->_periodNum)->asArray()->all();
|
|
|
+ $orderSn = Order::find()->select(['SN'])->where('IS_DELETE = 0 AND PERIOD_NUM=' . $this->_periodNum)->asArray()->all();
|
|
|
$where = 'ORDER_SN IN (' . implode(',', $orderSn) . ')';
|
|
|
}
|
|
|
|