generated from dxfeng/secondev-chapanda-feishu
BUG修复---获取建模自定义页面ID
This commit is contained in:
parent
23cbb70c1a
commit
0d43aaac44
|
|
@ -91,7 +91,7 @@ public class InitRecruitDataServiceImpl extends Service implements InitRecruitDa
|
|||
searchCodeMap.put("操作按钮列表", "e14a2ce232d844239c00a0b3ead1af04");
|
||||
|
||||
Map<String, String> customPageMap = new HashMap<>();
|
||||
customPageMap.put("入职管理", "126b5994-68d0-11ee-b71a-000c2989f365");
|
||||
customPageMap.put("入职管理", "073e0628016a46b588d76fdd872a7369");
|
||||
|
||||
Map<String, String> customTreeMap = new HashMap<>();
|
||||
customTreeMap.put("数据字典树", "31717568fca8435f9e55eb08c1fbed4b");
|
||||
|
|
@ -140,7 +140,7 @@ public class InitRecruitDataServiceImpl extends Service implements InitRecruitDa
|
|||
// 操作按钮
|
||||
menuSqlList.add("update LeftMenuInfo set fullrouteurl = '/spa/cube/index.html#/main/cube/search?customid=" + getCustomSearchId(searchCodeMap.get("操作按钮列表")) + "' where id = " + 100215);
|
||||
// 入职管理
|
||||
menuSqlList.add("update LeftMenuInfo set fullrouteurl= '/spa/cube/index.html#/main/cube/viewCustomPage?id=" + getCustomPageId(customPageMap.get("入职管理")) + "&noTitleShow=1' where id = " + 100199);
|
||||
menuSqlList.add("update LeftMenuInfo set fullrouteurl= '/spa/cube/index.html#/main/cube/viewCustomPage?id=" + getCustomPageId("入职管理", customPageMap.get("入职管理")) + "&noTitleShow=1' where id = " + 100199);
|
||||
// 数据字典
|
||||
menuSqlList.add("update LeftMenuInfo set fullrouteurl= '/spa/cube/index.html#/main/cube/tree?id=" + getCustomTreeId(customTreeMap.get("数据字典树")) + "&noTitleShow=1' where id = " + 100204);
|
||||
|
||||
|
|
@ -169,16 +169,21 @@ public class InitRecruitDataServiceImpl extends Service implements InitRecruitDa
|
|||
/**
|
||||
* 获取建模自定义页面ID
|
||||
*
|
||||
* @param cubeUuid
|
||||
* @param customPageName 自定义页面名称
|
||||
* @param customSearchCode
|
||||
* @return
|
||||
*/
|
||||
private String getCustomPageId(String cubeUuid) {
|
||||
private String getCustomPageId(String customPageName, String customSearchCode) {
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select id from mode_custompage where cubeuuid =? ", cubeUuid);
|
||||
rs.executeQuery("select appid from mode_customsearch where customsearchcode = ? ", customSearchCode);
|
||||
if (rs.next()) {
|
||||
return rs.getString("id");
|
||||
String appId = rs.getString("appid");
|
||||
rs.executeQuery("select id from mode_custompage where appid = ? and customname = ?", appId, customPageName);
|
||||
if (rs.next()) {
|
||||
return rs.getString("id");
|
||||
}
|
||||
}
|
||||
throw new CustomizeRunTimeException("招聘管理菜单初始化失败,请检查建模引擎自定义页面配置[" + cubeUuid + "]");
|
||||
throw new CustomizeRunTimeException("招聘管理菜单初始化失败,请检查建模引擎自定义页面配置[" + customPageName + "," + customSearchCode + "]");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue