|
...
|
...
|
@@ -39,6 +39,15 @@ class ServerConfigLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function serviceConfigList($map,$page,$row,$order = 'id',$filed = ['*']){
|
|
|
|
$lists = $this->model->lists($map,$page,$row,$order,$filed);
|
|
|
|
if(!empty($lists) && !empty($lists)){
|
|
|
|
$projectModel = new Project();
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
if($v['type'] == $this->model::TYPE_SERVER){
|
|
|
|
$v['count'] = $projectModel->where(['serve_id'=>$v['id']])->count();
|
|
|
|
}
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($lists);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|