Commit f9fae663 authored by hangjun83's avatar hangjun83

openapi 1.1

parent 67d675dc
...@@ -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($this->rhawnOrdersRepository->getTableName()) $oneOrder = $dbConnect->table('sorders')
->where('so_cus_po',$order['purchaseOrderId']) ->where('so_cus_po',$order['purchaseOrderId'])
->get()->toArray(); ->get()->toArray();
if($oneOrder){ if($oneOrder){
...@@ -164,12 +164,12 @@ class ZhenkhService ...@@ -164,12 +164,12 @@ class ZhenkhService
try{ try{
$dbConnect->beginTransaction(); $dbConnect->beginTransaction();
$orderId = $dbConnect->table($this->rhawnOrdersRepository->getTableName())->insertGetId($updateOrderArray); $orderId = $dbConnect->table('sorders')->insertGetId($updateOrderArray);
if($orderId > 0){ if($orderId > 0){
$so_no = 1000000 + $orderId; $so_no = 1000000 + $orderId;
$so_no = date('Ymd',time()).'-'.$so_no; $so_no = date('Ymd',time()).'-'.$so_no;
$dbConnect->table($this->rhawnOrdersRepository->getTableName()) $dbConnect->table('sorders')
->where('so_id',$orderId) ->where('so_id',$orderId)
->update(['so_no' => $so_no]); ->update(['so_no' => $so_no]);
...@@ -207,7 +207,7 @@ class ZhenkhService ...@@ -207,7 +207,7 @@ class ZhenkhService
$orderItemsArray['si_sales_note'] = ''; $orderItemsArray['si_sales_note'] = '';
$orderItemsArray['si_cus_note'] = ''; $orderItemsArray['si_cus_note'] = '';
$dbConnect->table($this->rhawnSoitemsrepository->getTableName())->insert($orderItemsArray); $dbConnect->table('sorders')->insert($orderItemsArray);
} }
} }
} }
...@@ -228,7 +228,7 @@ class ZhenkhService ...@@ -228,7 +228,7 @@ class ZhenkhService
$soitems[$soitems_count]['si_cus_note'] = ''; $soitems[$soitems_count]['si_cus_note'] = '';
$soitems[$soitems_count]['si_molbase_pog'] = ''; $soitems[$soitems_count]['si_molbase_pog'] = '';
$dbConnect->table($this->rhawnSoitemsrepository->getTableName())->insert($soitems); $dbConnect->table('soitems')->insert($soitems);
} }
} }
......
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