|
|
@@ -10,6 +10,7 @@ import com.github.microservice.auth.client.type.LoginType;
|
|
|
import com.github.microservice.components.data.base.util.PageEntityUtil;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
import com.github.microservice.net.ResultMessage;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import com.zhongshu.card.client.model.base.AuthTypeParam;
|
|
|
import com.zhongshu.card.client.model.base.UserIdModel;
|
|
|
import com.zhongshu.card.client.model.org.*;
|
|
|
@@ -659,6 +660,13 @@ public class UserAccountServiceImpl extends SuperService implements UserAccountS
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ public List<UserCountSimpleModel> toListSimpleModel(List<UserAccount> list) {
|
|
|
+ if (ObjectUtils.isNotEmpty(list)) {
|
|
|
+ return list.stream().map(this::toSimpleModel).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+ return Lists.newArrayList();
|
|
|
+ }
|
|
|
+
|
|
|
public UserCountModel toModel(UserAccount entity) {
|
|
|
UserCountModel model = null;
|
|
|
if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
@@ -668,6 +676,15 @@ public class UserAccountServiceImpl extends SuperService implements UserAccountS
|
|
|
return model;
|
|
|
}
|
|
|
|
|
|
+ public UserCountSimpleModel toSimpleModel(UserAccount entity) {
|
|
|
+ UserCountSimpleModel model = null;
|
|
|
+ if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
+ model = new UserCountSimpleModel();
|
|
|
+ BeanUtils.copyProperties(entity, model);
|
|
|
+ }
|
|
|
+ return model;
|
|
|
+ }
|
|
|
+
|
|
|
public OrganizationUserModel toOrgUserModel(OrganizationUser entity) {
|
|
|
OrganizationUserModel model = new OrganizationUserModel();
|
|
|
if (ObjectUtils.isNotEmpty(entity)) {
|