|
|
@@ -299,5 +299,21 @@ public class User implements Serializable {
|
|
|
public void setIp(String ip) {
|
|
|
this.ip = ip;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户所属企业UU号
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ @JsonIgnore
|
|
|
+ public Set<Long> getEnUUs() {
|
|
|
+ Set<Long> enUUs = new HashSet<Long>();
|
|
|
+ if( ! CollectionUtils.isEmpty(enterprises)) {
|
|
|
+ for(Enterprise en : enterprises) {
|
|
|
+ enUUs.add(en.getUu());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return enUUs;
|
|
|
+ }
|
|
|
|
|
|
}
|