【更新】当代码生成的时候选择了顶级出现问题的更新
This commit is contained in:
parent
20f71f23f7
commit
9661868ea1
@ -106,6 +106,6 @@ public class XnCodeGenParam {
|
||||
/**
|
||||
* 菜单上级父ids
|
||||
*/
|
||||
private String menuPids;
|
||||
private String menuPids = "";
|
||||
|
||||
}
|
||||
|
@ -238,8 +238,10 @@ public class CodeGenerateServiceImpl extends ServiceImpl<CodeGenerateMapper, Cod
|
||||
param.setFunctionName(codeGenerate.getTableComment());
|
||||
param.setConfigList(configList);
|
||||
param.setCreateTimeString(StringDateTool.getStringDate());
|
||||
Map<String, Object> map = SqlRunner.db().selectOne(SELECT_SYS_MENU_SQL, codeGenerate.getMenuPid());
|
||||
param.setMenuPids(map.get("pids").toString());
|
||||
if (!codeGenerate.getMenuPid().equals("0")) {
|
||||
Map<String, Object> map = SqlRunner.db().selectOne(SELECT_SYS_MENU_SQL, codeGenerate.getMenuPid());
|
||||
param.setMenuPids(map.get("pids").toString());
|
||||
}
|
||||
return param;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user