判断只获取未注销用户生成会话id
This commit is contained in:
parent
977f81e6cc
commit
e20f385f08
@ -3700,11 +3700,20 @@ public class PALRepositoryQueryAPIManager {
|
||||
|
||||
if(object.getBoolean("folder")==false){
|
||||
|
||||
|
||||
//判断数据库用户是否注销状态
|
||||
UserModel userModel=SDK.getORGAPI().getUser(model.getCreateUser());
|
||||
boolean isclosed=userModel.isClosed();
|
||||
if(isclosed==false){
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword(model.getCreateUser(), LoginConst.DEFAULT_LANG, "127.0.0.1", LoginConst.DEVICE_PC);
|
||||
|
||||
String url=SDK.getPortalAPI().getPortalUrl()+"/r/w?uuid="+model.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId+"";
|
||||
|
||||
object.put("url",url);
|
||||
}else{
|
||||
object.put("url","");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2261,6 +2261,13 @@ public class CoeProcessLevelUtil {
|
||||
//如果是关联属性,增加链接功能
|
||||
if(attributeModel.getType().equals("relation")){
|
||||
String appUrl;
|
||||
|
||||
|
||||
//判断数据库用户是否注销状态
|
||||
UserModel userModel=SDK.getORGAPI().getUser(plModel.getCreateUser());
|
||||
boolean isclosed=userModel.isClosed();
|
||||
if(isclosed==false){
|
||||
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword(plModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
|
||||
if(JSONObject.parseObject(property.getPropertyValue())!=null){
|
||||
@ -2289,6 +2296,11 @@ public class CoeProcessLevelUtil {
|
||||
appUrl="<a href='"+url+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
||||
attribute.put("value", appUrl);
|
||||
}
|
||||
}else{
|
||||
appUrl="<a href='"+'#'+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
||||
attribute.put("value", appUrl);
|
||||
}
|
||||
|
||||
|
||||
}else{
|
||||
attribute.put("value", inputValue);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user