Browse Source

修改收样人默认值

15168162575 2 years ago
parent
commit
30973042bd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/admin/controller/Entrust.php

+ 2 - 1
application/admin/controller/Entrust.php

@@ -113,9 +113,10 @@ class Entrust extends Backend
             }
             }
             $judgeData = Db::name('item_judge')->whereNull('delete')->order('weigh asc')->column('id,name');
             $judgeData = Db::name('item_judge')->whereNull('delete')->order('weigh asc')->column('id,name');
             $receiveData = Db::name('receive_people')->where('company_id',$company_id)->column('id,name');
             $receiveData = Db::name('receive_people')->where('company_id',$company_id)->column('id,name');
+            $nick_id = Db::name('receive_people')->where('name',$nickname)->value('id');
             $this->assign('company',$company);
             $this->assign('company',$company);
             $this->view->assign('judgeData', $judgeData);
             $this->view->assign('judgeData', $judgeData);
-            $this->view->assign('nickname', $nickname);
+            $this->view->assign('nickname', $nick_id);
             $this->view->assign('receiveData', $receiveData);
             $this->view->assign('receiveData', $receiveData);
             return $this->view->fetch();
             return $this->view->fetch();
         }
         }