|
|
@@ -8,10 +8,12 @@ use App\Components\AsyncResponse;
|
|
|
use App\Components\Database;
|
|
|
use App\Components\ErrorPush;
|
|
|
use App\Exceptions\Exception;
|
|
|
+use App\Jobs\SyncOrderRejectingStatusJob;
|
|
|
use App\OracleDOCWaveDetails;
|
|
|
use App\Order;
|
|
|
use App\OrderBin;
|
|
|
use App\OrderCommodity;
|
|
|
+use App\OrderIssue;
|
|
|
use App\Rejected;
|
|
|
use App\RejectedBill;
|
|
|
use App\RejectedBillItem;
|
|
|
@@ -19,6 +21,7 @@ use App\Services\LogService;
|
|
|
use App\Services\OracleDocAsnHerderService;
|
|
|
use App\Services\OracleDOCOrderHeaderService;
|
|
|
use App\Services\OrderCommodityService;
|
|
|
+use App\Services\OrderRejectedBillRelationService;
|
|
|
use App\Services\OrderService;
|
|
|
use App\Services\OwnerService;
|
|
|
use App\Services\RejectedBillService;
|
|
|
@@ -91,5 +94,12 @@ class TestController extends Controller
|
|
|
Controller::logS(__METHOD__,''.__FUNCTION__,"向WMS提交运单成功,SO单号:{$waybill['wms_bill_number']}。返回:{$response->body()}",0);
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ public function sync(){
|
|
|
+ $items = RejectedBill::query()->where("created_at",">=",'2022-10-01')->get();
|
|
|
+ foreach ($items as $item) {
|
|
|
+ SyncOrderRejectingStatusJob::dispatch($item);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|