|
|
@@ -176,16 +176,16 @@ class TestController extends Controller
|
|
|
public function restoreResetInstantBill()
|
|
|
{
|
|
|
ini_set('max_execution_time', 2500);
|
|
|
- foreach (OwnerFeeDetail::query()->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])->cursor() as $detail){
|
|
|
+ foreach (OwnerFeeDetail::query()->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])->cursor() as $detail){
|
|
|
dispatch(new ResetInstantBill($detail));
|
|
|
}
|
|
|
}
|
|
|
public function restoreResetInstantBillOrder()
|
|
|
{
|
|
|
ini_set('max_execution_time', 2500);
|
|
|
- $orders = Order::query()->where("wms_status","订单完成")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])
|
|
|
+ $orders = Order::query()->where("wms_status","订单完成")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])
|
|
|
->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")->where("outer_table_name","orders")
|
|
|
- ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
|
|
|
+ ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"]))->get();
|
|
|
foreach ($orders->chunk(50) as $or){
|
|
|
dispatch(new OrderCreateInstantBill($or));
|
|
|
}
|
|
|
@@ -193,9 +193,9 @@ class TestController extends Controller
|
|
|
public function restoreResetInstantBillStore()
|
|
|
{
|
|
|
ini_set('max_execution_time', 2500);
|
|
|
- $stores = Store::query()->where("status","已入库")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"])
|
|
|
+ $stores = Store::query()->where("status","已入库")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"])
|
|
|
->whereNotIn("id",OwnerFeeDetail::query()->select("outer_id")->where("outer_table_name","stores")
|
|
|
- ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
|
|
|
+ ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-27 00:00:00"]))->get();
|
|
|
foreach ($stores->chunk(50) as $st){
|
|
|
dispatch(new OrderCreateInstantBill($st));
|
|
|
}
|