lists($page,$size,$name,$this->orgId); HelpHander::success($ret); } // 新增 public function save(){ model('AttendanceClass')->add(); HelpHander::success([],'操作成功'); } // 编辑 public function update(){ model('AttendanceClass')->add(); HelpHander::success([],'操作成功'); } // 删除 public function del(){ $id = input('id/d',0); model('AttendanceClass')->del($id); HelpHander::success([],'操作成功'); } // 详情 public function detail(){ $id = input('id/d',0); $ret = model('AttendanceClass')->info($id); HelpHander::success($ret); } public function all(){ $ret = model('AttendanceClass')->all($this->orgId); HelpHander::success($ret); } }