文件架构批量刷新属性代码修改

This commit is contained in:
Mr-wang 2023-06-30 17:37:27 +08:00
parent 99edb3460c
commit f796545496

View File

@ -97,11 +97,24 @@ public class SyncFrameData_job_Controller {
PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao();
if (isResul) {
String name1 = frameworkName1.substring(frameworkName1.lastIndexOf(".") + 2).trim();
// 设置四级架构名称
bo.set("L4", name1);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L4", name1);
// 设置三级架构名称
bo.set("L3", name1);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name1);
String sql4 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + parentId1
+ "'";
String prd4 = DBSql.getString(sql4);
String sqlp4 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd4 + "'";
RowMap map4 = DBSql.getMap(sqlp4);
if (map4 != null) {
String uuid4 = map4.getString("ID");
String plName4 = map4.getString("PLNAME");
String name4 = plName4.substring(plName4.lastIndexOf(".") + 2).trim();
bo.set("L3", name4);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name4);
// 设置二级架构名称
String sql2 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + parentId1
String sql2 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + uuid4
+ "'";
String prd2 = DBSql.getString(sql2);
String sqlp2 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd2 + "'";
@ -125,30 +138,46 @@ public class SyncFrameData_job_Controller {
String plName1 = map1.getString("PLNAME");
String name3 = plName1.substring(plName1.lastIndexOf(".") + 2).trim();
bo.set("L1", name3);
bo.set("LEVELS", "4");
bo.set("LEVELS", "5");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name3);
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '4' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '5' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
} else {
bo.set("L1", name1);
bo.set("L2", name2);
bo.set("L3", "/");
bo.set("LEVELS", "3");
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/");
bo.set("L3", name4);
bo.set("L4", "/");
bo.set("LEVELS", "4");
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '4' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L4", "/");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name4);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name2);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name1);
}
} else {
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name4);
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L4", "/");
bo.set("L1", name1);
bo.set("L2", name4);
bo.set("L3", "/");
bo.set("L4", "/");
bo.set("LEVELS", "3");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name1);
}
}else {
DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", "/");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L4", "/");
bo.set("L1", name1);
bo.set("L2", "/");
bo.set("L3", "/");
bo.set("L4", "/");
bo.set("LEVELS", "2");
propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name1);
}
bo.set("RESULT", "成功");