...
|
...
|
@@ -230,6 +230,7 @@ class AdminBusinessmanController extends AdminBaseController |
|
|
$showModel = new ShowModel();
|
|
|
$list = $showModel
|
|
|
->where($map)
|
|
|
->order('sort desc')
|
|
|
->paginate(30);
|
|
|
|
|
|
$this->assign('list',$list);
|
...
|
...
|
@@ -262,7 +263,7 @@ class AdminBusinessmanController extends AdminBaseController |
|
|
}
|
|
|
$res = $showModel->save($param);
|
|
|
if($res){
|
|
|
$this->success('添加成功');
|
|
|
$this->success('添加成功','AdminBusinessman/aspirations');
|
|
|
}
|
|
|
}else{
|
|
|
return $this->fetch();
|
...
|
...
|
@@ -293,7 +294,7 @@ class AdminBusinessmanController extends AdminBaseController |
|
|
}
|
|
|
$res = $showModel->isUpdate(true)->save($param);
|
|
|
if($res){
|
|
|
$this->success('更新成功');
|
|
|
$this->success('更新成功','AdminBusinessman/aspirations');
|
|
|
}
|
|
|
}else{
|
|
|
$info = $showModel->where('id',$id)->find();
|
...
|
...
|
|