仅内网只可看 调整

This commit is contained in:
670788339
2025-07-23 16:08:59 +08:00
parent aa04e16209
commit 541e542d9b

View File

@@ -197,11 +197,14 @@ public class CourseManageApi extends ApiBaseController{
}
@GetMapping("/getDictIds")
public JsonResponse<Map<String,Object>> getDictIds(CommonSearchVo searcher){
if(searcher==null){
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){