|
@@ -24,15 +24,9 @@ class HrLogic extends BaseLogic |
|
@@ -24,15 +24,9 @@ class HrLogic extends BaseLogic |
|
24
|
$this->model = new ManageHr();
|
24
|
$this->model = new ManageHr();
|
|
25
|
}
|
25
|
}
|
|
26
|
|
26
|
|
|
27
|
- public function getList(array $param = [], array $sort = ['id' => 'desc'], array $columns = ['*'], int $limit = 20){
|
|
|
|
28
|
- $search = isset($param['search'])?$param['search']:'';
|
|
|
|
29
|
- $pagesize = isset($param['pagesize'])?$param['pagesize']:20;
|
|
|
|
30
|
- $map = [];
|
|
|
|
31
|
- if($search){
|
|
|
|
32
|
- $map[] = ['name','like','%'.$search.'%'];
|
|
|
|
33
|
- }
|
|
|
|
34
|
- $list = parent::getList($map, $sort, $columns, $pagesize);
|
|
|
|
35
|
- return $list;
|
27
|
+ public function getList($map,$page,$row,$order = 'id',$filed = ['*']){
|
|
|
|
28
|
+ $lists = $this->model->lists($map,$page,$row,$order,$filed);
|
|
|
|
29
|
+ return $this->success($lists);
|
|
36
|
}
|
30
|
}
|
|
37
|
|
31
|
|
|
38
|
public function save($param){
|
32
|
public function save($param){
|
|
@@ -73,7 +67,7 @@ class HrLogic extends BaseLogic |
|
@@ -73,7 +67,7 @@ class HrLogic extends BaseLogic |
|
73
|
$data['entry_position'] = $this->entryPositionList();
|
67
|
$data['entry_position'] = $this->entryPositionList();
|
|
74
|
$data['p_level'] = $this->pLevel();
|
68
|
$data['p_level'] = $this->pLevel();
|
|
75
|
$data['political_outlook'] = $this->politicalOutlook();
|
69
|
$data['political_outlook'] = $this->politicalOutlook();
|
|
76
|
- $data['partyBranch'] = $this->IsPartyBranch();
|
70
|
+ $data['party_branch'] = $this->IsPartyBranch();
|
|
77
|
return $data;
|
71
|
return $data;
|
|
78
|
}
|
72
|
}
|
|
79
|
|
73
|
|