|
|
@@ -384,4 +384,22 @@ class OrderMainDao |
|
|
|
return Util::returnArrEr("将主订单从收款单下移除失败".$e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param $id |
|
|
|
* @param $name |
|
|
|
* @return array |
|
|
|
*/ |
|
|
|
public function updateReceiptOrderName($id, $name) { |
|
|
|
try{ |
|
|
|
$data = [ |
|
|
|
"receipt_order_name"=>$name |
|
|
|
]; |
|
|
|
$model = new OrderMain(); |
|
|
|
$model->save($data,["receipt_order_id"=>$id]); |
|
|
|
return Util::returnArrSu(); |
|
|
|
}catch (Exception $e){ |
|
|
|
return Util::returnArrEr("同步名称到订单失败".$e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |