Commit 83db5e0c authored by hujun's avatar hujun

district_id as id

parent 24f96bb1
...@@ -180,6 +180,7 @@ public function saveList(){ ...@@ -180,6 +180,7 @@ public function saveList(){
$result = array(); $result = array();
foreach ($data as $k=>$v){ foreach ($data as $k=>$v){
$result[$k] = $v; $result[$k] = $v;
$result[$k]['id'] = $v->district_id;
if (isset($v->district_id)) { if (isset($v->district_id)) {
$district_where['id'] = $v->district_id; $district_where['id'] = $v->district_id;
$result[$k]['district_name'] = Db::table('a_district')->where($district_where)->value('district_name'); $result[$k]['district_name'] = Db::table('a_district')->where($district_where)->value('district_name');
......
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