diff --git a/app/admin/logic/shop/LocalStoreLogic.php b/app/admin/logic/shop/LocalStoreLogic.php index ae16b809..a132a504 100755 --- a/app/admin/logic/shop/LocalStoreLogic.php +++ b/app/admin/logic/shop/LocalStoreLogic.php @@ -130,6 +130,7 @@ class LocalStoreLogic extends Logic // 先将之前已导出的数据状态为2,这样就不会在重复导出之前的数据了(如果昨天的日期导出的状态还是为1则立马转换为2) $last_where[] = ['create_time', '<=', date('Y-m-d H:i:s', strtotime('yesterday 02:00:00'))]; $last_where[] = ['is_checkout', '=', 1]; + $last_where[] = ['state', '=', 1]; $last_where[] = ['is_export', '=', 1]; $localStoreOrder->where($last_where)->update(['is_export' => 2]);