学年管理-新增模块标签
This commit is contained in:
@@ -35,6 +35,9 @@ public class SrsStuYearController extends BaseController
|
||||
public AjaxResult listAllYear(){
|
||||
return srsStuYearService.listAllYear();
|
||||
}
|
||||
/**
|
||||
* 所有启用的学年
|
||||
*/
|
||||
@GetMapping("/listQiyongYear")
|
||||
public AjaxResult listQiyongYear(){
|
||||
return srsStuYearService.listQiyongYear();
|
||||
@@ -148,4 +151,29 @@ public class SrsStuYearController extends BaseController
|
||||
return success("解析成功").put("导入失败的数据",srsStuYearService.addStuYear());
|
||||
}
|
||||
|
||||
/**
|
||||
* 为学年分配标签
|
||||
*/
|
||||
@PostMapping("/{yearId}/assign-tag")
|
||||
public AjaxResult assignTag(@PathVariable Long yearId, @RequestParam String tag) {
|
||||
return srsStuYearService.assignTagToYear(tag, yearId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据标签查询学年
|
||||
*/
|
||||
@GetMapping("/by-tag")
|
||||
public AjaxResult getByTag(@RequestParam String tag) {
|
||||
List<SrsStuYear> years = srsStuYearService.getYearsByTag(tag);
|
||||
return AjaxResult.success(years);
|
||||
}
|
||||
|
||||
/**
|
||||
* 移除年份中的标签
|
||||
*/
|
||||
/*@PostMapping("/{yearId}/removeTag")
|
||||
public AjaxResult removeTag(@PathVariable Long yearId, @RequestParam List<String> tags) {
|
||||
return srsStuYearService.removeTagFromYear(tags, yearId);
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
@@ -81,15 +81,15 @@ spring:
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost #正式环境redis
|
||||
# host: 47.112.118.149 #测试开发地址
|
||||
# host: localhost #正式环境redis
|
||||
host: 47.112.118.149 #测试开发地址
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# 密码SSSS
|
||||
# password: Houpuyfb #测试开发密码
|
||||
password: #正式环境密码
|
||||
password: Houpuyfb #测试开发密码
|
||||
# password: #正式环境密码
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
|
||||
Reference in New Issue
Block a user