|
|
@@ -50,22 +50,13 @@ use App\OracleBasSKU;
|
|
|
use App\OracleDOCASNHeader;
|
|
|
use App\OracleDOCOrderDetail;
|
|
|
use App\OracleDOCOrderHeader;
|
|
|
-use App\OracleDocOrderPackingSummary;
|
|
|
-use App\OracleDOCWaveDetails;
|
|
|
-use App\OracleDOCWaveHeader;
|
|
|
-use App\OracleInvLotLocId;
|
|
|
use App\Order;
|
|
|
use App\OrderBin;
|
|
|
use App\OrderCommodity;
|
|
|
-use App\OrderCommodityAssign;
|
|
|
use App\OrderIssue;
|
|
|
use App\OrderPackage;
|
|
|
-use App\OrderPackageCommodities;
|
|
|
-use App\OrderPackageCountingRecord;
|
|
|
-use App\OrderTracking;
|
|
|
use App\Owner;
|
|
|
use App\OwnerAreaReport;
|
|
|
-use App\OwnerBillReport;
|
|
|
use App\OwnerFeeDetail;
|
|
|
use App\OwnerFeeDetailLogistic;
|
|
|
use App\OwnerMaterial;
|
|
|
@@ -183,16 +174,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-25 00:00:00"])->cursor() as $detail){
|
|
|
+ foreach (OwnerFeeDetail::query()->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 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-25 00:00:00"])
|
|
|
+ $orders = Order::query()->where("wms_status","订单完成")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 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-25 00:00:00"]))->get();
|
|
|
+ ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
|
|
|
foreach ($orders->chunk(50) as $or){
|
|
|
dispatch(new OrderCreateInstantBill($or));
|
|
|
}
|
|
|
@@ -200,11 +191,11 @@ 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-25 00:00:00"])
|
|
|
+ $stores = Store::query()->where("status","已入库")->whereBetween("updated_at",["2021-04-01 00:00:00","2021-04-26 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-25 00:00:00"]))->get();
|
|
|
- foreach ($stores as $store){
|
|
|
- dispatch(new StoreCreateInstantBill($store));
|
|
|
+ ->whereBetween("worked_at",["2021-04-01 00:00:00","2021-04-26 00:00:00"]))->get();
|
|
|
+ foreach ($stores->chunk(50) as $st){
|
|
|
+ dispatch(new OrderCreateInstantBill($st));
|
|
|
}
|
|
|
}
|
|
|
public function supplementMarchOwnerReport()
|