mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
Merge branch 'master-0720-lyc' into release-20250328-master
This commit is contained in:
@@ -196,6 +196,23 @@ public class CourseManageApi extends ApiBaseController{
|
|||||||
return success(rs);
|
return success(rs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@GetMapping("/getDictIds")
|
||||||
|
public JsonResponse<Map<String,Object>> getDictIds(Long pid,Integer type){
|
||||||
|
CommonSearchVo searcher = new CommonSearchVo();
|
||||||
|
if(pid==null || type ==null){
|
||||||
|
return badRequest("参数错误");
|
||||||
|
}
|
||||||
|
Map<String,Object> rs=new HashMap<String,Object>();
|
||||||
|
searcher.setPid(pid);
|
||||||
|
searcher.setType(type);
|
||||||
|
List<Dict> dictList = thirdApi.getDictItems(searcher);
|
||||||
|
rs.put("dicts",null);
|
||||||
|
if(dictList != null && dictList.size() > 0){
|
||||||
|
List<String> dicts = dictList.stream().map(Dict::getValue).collect(Collectors.toList());
|
||||||
|
rs.put("dicts",dicts);
|
||||||
|
}
|
||||||
|
return success(rs);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 管理员审核列表,教师的审核不在这里,此审核也应该移动CourseAuditApi中去
|
* 管理员审核列表,教师的审核不在这里,此审核也应该移动CourseAuditApi中去
|
||||||
|
|||||||
Reference in New Issue
Block a user