|
|
@@ -37,6 +37,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -249,9 +250,12 @@ public class UserServiceImpl extends MPJBaseServiceImpl<UserMapper, User> implem
|
|
|
List<Long> userIds = null;
|
|
|
if (!CommUtil.isEmptyOrNull(params.getMobilePhone())) {
|
|
|
userIds = lambdaQuery().
|
|
|
- eq(User::getMobilePhone, params.getMobilePhone())
|
|
|
+ like(User::getMobilePhone, params.getMobilePhone())
|
|
|
.eq(!CommUtil.isEmptyOrNull(params.getStatus()),User::getStatus, params.getStatus()).list().stream().map(User::getId).toList();
|
|
|
}
|
|
|
+ if (CommUtil.isEmptyOrNull(userIds)) {
|
|
|
+ return new PageBean<>(Collections.emptyList());
|
|
|
+ }
|
|
|
PageHelper.startPage(params.getPageNum(), params.getPageSize());
|
|
|
var result = baseMapper.listUser(userIds);
|
|
|
var page = new PageBean<>(result);
|