Browse Source

企业信息增加saas域名

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1313 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 years ago
parent
commit
175a9096bd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/main/java/com/uas/platform/b2b/model/UserInfo.java

+ 5 - 0
src/main/java/com/uas/platform/b2b/model/UserInfo.java

@@ -9,6 +9,8 @@ import org.springframework.data.domain.Page;
 import org.springframework.data.domain.PageImpl;
 import org.springframework.data.domain.PageImpl;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.CollectionUtils;
 
 
+import com.uas.platform.core.model.Status;
+
 /**
 /**
  * 用户简单信息,前台程序使用
  * 用户简单信息,前台程序使用
  * 
  * 
@@ -40,6 +42,9 @@ public class UserInfo {
 				Map<String, Object> map = new HashMap<String, Object>();
 				Map<String, Object> map = new HashMap<String, Object>();
 				map.put("enName", enterprise.getEnName());
 				map.put("enName", enterprise.getEnName());
 				map.put("uu", enterprise.getUu());
 				map.put("uu", enterprise.getUu());
+				if(enterprise.getEnSaasStatus() != null && enterprise.getEnSaasStatus() == Status.ENABLED.value()) {
+					map.put("enSaasUrl", enterprise.getEnSaasUrl());
+				}
 				if (enterprise.equals(current))
 				if (enterprise.equals(current))
 					map.put("current", true);
 					map.put("current", true);
 				list.add(map);
 				list.add(map);