1、swagger接口文档

beetlsql3-dev
陈沅 1 year ago
parent 5444358a9e
commit 43f67916cc

@ -44,4 +44,6 @@ public interface SchoolClassDao extends BaseMapper<SchoolClass> {
List<SchoolClass>getClassesByOldSchoolId(Long oldSchoolId);
List<Map<String,Object>> getClassIdsByZhiyun(Long userId);
List<Map<String,Object>> findAllClass();
}

@ -305,4 +305,9 @@ public class SchoolClassService extends CoreBaseService<SchoolClass> {
public List<Map<String,Object>> getClassIdsByZhiyun(Long userId){
return schoolClassDao.getClassIdsByZhiyun(userId);
}
public List<Map<String,Object>> findAllClass(){
return schoolClassDao.findAllClass();
}
}

@ -1093,4 +1093,10 @@ public class AccountController {
public JsonResult getClassIdsByZhiyun(Long userId) {
return JsonResult.success(schoolClassService.getClassIdsByZhiyun(userId));
}
@ApiOperation("理财接口:获取所有班级")
@GetMapping("findAllClass.json")
public JsonResult findAllClass() {
return JsonResult.success(schoolClassService.findAllClass());
}
}

@ -223,3 +223,7 @@ GROUP BY
teacher.teacher_id, universities_colleges.universities_colleges_id, universities_colleges.universities_colleges_name
ORDER BY
teacher.teacher_id;
findAllClass
===
select class_id as id,class_name as name from school_class where class_status = 1
Loading…
Cancel
Save