流程属性Word导入日志改造-- arise名称匹配规则调整
This commit is contained in:
parent
9f79f45f66
commit
dea0b8d773
Binary file not shown.
@ -788,16 +788,23 @@ public class DataMigrationWeb extends ActionWeb {
|
||||
* @return
|
||||
*/
|
||||
private PALRepositoryModel getRepositoryByArisName(String wsId, String repositoryName) {
|
||||
List<PALRepositoryModel> palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getAllCoeProcessLevelByWsId(wsId);
|
||||
for (PALRepositoryModel palRepositoryModel : palRepositoryModels) {
|
||||
List<PALRepositoryPropertyModel> propertys = new PALRepositoryPropertyDao().getPropertysByPlid(palRepositoryModel.getId(), "ARIS_process_name");
|
||||
if (propertys.isEmpty()){
|
||||
return null;
|
||||
/*PALRepositoryPropertyModel resProperty = null;
|
||||
List<PALRepositoryPropertyModel> propertyModels = new PALRepositoryPropertyDao().queryByWsId(wsId);
|
||||
for (PALRepositoryPropertyModel propertyModel : propertyModels) {
|
||||
if (propertyModel.getPropertyValue().equals(repositoryName)){
|
||||
resProperty = propertyModel;
|
||||
break;
|
||||
}
|
||||
for (PALRepositoryPropertyModel property : propertys) {
|
||||
if (palRepositoryModel.isUse() && property.getPropertyValue().equals(repositoryName)) {
|
||||
return palRepositoryModel;
|
||||
}
|
||||
}
|
||||
if (null == resProperty){
|
||||
return null;
|
||||
}
|
||||
PALRepositoryModel model = PALRepositoryCache.getCache().get(resProperty.getPlId());
|
||||
return model;*/
|
||||
Map<String, String> arisNameMap = ProcessUtil.getPalRepositoryArisNameMap(wsId);
|
||||
for (Map.Entry<String, String> entry : arisNameMap.entrySet()) {
|
||||
if (entry.getValue().equals(repositoryName)){
|
||||
return PALRepositoryCache.getCache().get(entry.getKey());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user