mirror of https://gitee.com/xiaonuobase/snowy
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());
|
||||
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…
Reference in New Issue