Accept Merge Request #7: (feature/hant -> develop)

Merge Request: 订单录入

Created By: @todayswind
Accepted By: @todayswind
URL: https://g-bcrc3009.coding.net/p/allocatr/d/allocatr/git/merge/7?initial=true
This commit is contained in:
todayswind 2025-03-08 16:40:18 +08:00 committed by Coding
commit 3264048624
2 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,7 @@ class Order extends Backend
$area = new \app\admin\model\Area();
$area_name = $area->getNameByCode($order->area_id);
$order->area_name = $area_name;
// dd($area_name);
// 将订单数据传递到视图
$this->assign('row', $order);

View File

@ -13,7 +13,8 @@ class Area extends Model
public function getNameByCode($code){
return $this->where('area_code',$code)->find()->value('merge_name');
return $this->where('area_code','=',$code)
->value('merge_name');
}