|
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.sql.Timestamp;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author sean
|
|
@@ -130,7 +129,7 @@ public class UserLogicImpl extends BaseLogic implements UserLogic {
|
|
|
@Override
|
|
|
public List<UserDTO> getUserByFuzzyNameOrEmail(UserDTO userDTO) {
|
|
|
String keyword = null;
|
|
|
- if(userDTO.getName() != null) {
|
|
|
+ if (userDTO.getName() != null) {
|
|
|
keyword = userDTO.getName();
|
|
|
} else if (userDTO.getEmail() != null) {
|
|
|
keyword = userDTO.getEmail();
|
|
@@ -138,4 +137,14 @@ public class UserLogicImpl extends BaseLogic implements UserLogic {
|
|
|
List<User> userList = userService.findByFuzzyNameOrEmail(keyword);
|
|
|
return userWrapper.wrap(userList);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<UserDTO> getUserList(List<Long> userIds) {
|
|
|
+ if (userIds.size() < 1) {
|
|
|
+ throw new HttpBadRequestException("userId length <1");
|
|
|
+ }
|
|
|
+ String userIdList = userIds.toString();
|
|
|
+ String list = userIdList.substring(1, userIdList.length() - 1);
|
|
|
+ return userWrapper.wrap(userService.findAll(list));
|
|
|
+ }
|
|
|
}
|