field('id,title') ->where('org_id',$this->orgId) ->where('enable',1) ->where('del',0) ->where('is_show',0) ->select(); HelpHander::success($lists); } public function userByDep(){ $depId = input('depId/d',0); $lists = Db::name('user') ->alias('u') ->field('u.id,u.account,u.real_name,u.mobile,u.head_image') ->join('user_dep ud','ud.user_id=u.id') ->where('u.del',0) ->where('u.del',0) ->where('ud.dep_id',$depId) ->select(); HelpHander::success($lists); } }