Commit 67d675dc authored by hangjun83's avatar hangjun83

openapi 1.1

parent 3953e4d3
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
namespace App\Rhawn\Services; namespace App\Rhawn\Services;
use App\Rhawn\Repositories\Contracts\RhawnSoitemsRepository; use App\Rhawn\Repositories\Eloquent\RhawnSoitemsRepositoryEloquent;
use App\Rhawn\Repositories\Contracts\RhawnSordersRepository; use App\Rhawn\Repositories\Eloquent\RhawnSordersRepositoryEloquent;
use App\Services\PlatformDataEntriesService; use App\Services\PlatformDataEntriesService;
use App\Support\Facades\SimpleLogs; use App\Support\Facades\SimpleLogs;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
...@@ -22,8 +22,8 @@ class ZhenkhService ...@@ -22,8 +22,8 @@ class ZhenkhService
public function __construct() public function __construct()
{ {
$this->dataEntries = app(PlatformDataEntriesService::class); $this->dataEntries = app(PlatformDataEntriesService::class);
$this->rhawnOrdersRepository = app(RhawnSordersRepository::class); $this->rhawnOrdersRepository = app(RhawnSordersRepositoryEloquent::class);
$this->rhawnSoitemsrepository = app(RhawnSoitemsRepository::class); $this->rhawnSoitemsrepository = app(RhawnSoitemsRepositoryEloquent::class);
} }
/** /**
...@@ -104,7 +104,7 @@ class ZhenkhService ...@@ -104,7 +104,7 @@ class ZhenkhService
$dbConnect = DB::connection($this->rhawnOrdersRepository->getConnectionName()); $dbConnect = DB::connection($this->rhawnOrdersRepository->getConnectionName());
//判断订单是否已经存在 //判断订单是否已经存在
$oneOrder = $dbConnect->table('sorders') $oneOrder = $dbConnect->table($this->rhawnOrdersRepository->getTableName())
->where('so_cus_po',$order['purchaseOrderId']) ->where('so_cus_po',$order['purchaseOrderId'])
->get()->toArray(); ->get()->toArray();
if($oneOrder){ if($oneOrder){
...@@ -113,7 +113,7 @@ class ZhenkhService ...@@ -113,7 +113,7 @@ class ZhenkhService
} }
//获取订单发票信息 //获取订单发票信息
$dataEntries = app(ZhenKhService::class)->apiService->getPlatformDataEntries('zkh_order_invoice','data_values'); $dataEntries = app(\App\Services\ThirdPlatform\ZhenKhService::class)->apiService->getPlatformDataEntries('zkh_order_invoice','data_values');
$updateOrderArray = []; $updateOrderArray = [];
$updateOrderArray['cus_id'] = $dataEntries['id']; $updateOrderArray['cus_id'] = $dataEntries['id'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment