查询评估方式数据字典接口、插入评估方式相关数据sql

This commit is contained in:
wangzhijiang
2022-07-12 14:48:59 +08:00
parent cae3176109
commit d49a86e28b
3 changed files with 19 additions and 0 deletions
@@ -594,4 +594,13 @@ public class SysCategoryController {
return Result.OK(sysCategoryService.getSysCategoryTree(flag));
}
/**
* 只查询评估方式的树形数据字典
* @return
*/
@GetMapping("/getEvaluationMethodTree")
public Result getevaluationMethodTree() {
String flag = "evaluation_method";
return Result.OK(sysCategoryService.getSysCategoryTree(flag));
}
}
@@ -273,6 +273,8 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
String dictId = "";
if("deliverable_template".equals(flag)){
dictId = sysCategoryMapper.getDictId("deliverable_template");
}else if("evaluation_method".equals(flag)){
dictId = sysCategoryMapper.getDictId("evaluation_method");
}else{
dictId = sysCategoryMapper.getFieldInfo("technology_territory");
}