Commit b0ff2742 authored by hujun's avatar hujun

district_name

parent cd88e993
......@@ -82,7 +82,7 @@ class AStore extends BaseModel
$data = $this->where('id',$id)->where('status',0)->find();
$agents = new AAgents();
$agents_name = $agents->field('id,name,phone')->where('store_id',$data['id'])->where('level','in',[20,40])->find();
$data['district_name'] = Db::table('a_district')->where('district_id',$data['district_id'])->value('district_name');
$data['district_name'] = Db::table('a_district')->where('id',$data['district_id'])->value('district_name');
$data['agents_id'] = $agents_name['id'];
$data['agents_name'] = $agents_name['name'].'-'.$agents_name['phone'];
return $data;
......
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