|
|
@ -1,15 +1,6 @@ |
|
|
|
package com.ruoyi.system.service.impl; |
|
|
|
package com.ruoyi.system.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import javax.validation.Validator; |
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.DataScope; |
|
|
|
import com.ruoyi.common.annotation.DataScope; |
|
|
|
import com.ruoyi.common.constant.UserConstants; |
|
|
|
import com.ruoyi.common.constant.UserConstants; |
|
|
|
import com.ruoyi.common.core.domain.entity.SysRole; |
|
|
|
import com.ruoyi.common.core.domain.entity.SysRole; |
|
|
@ -22,13 +13,20 @@ import com.ruoyi.common.utils.spring.SpringUtils; |
|
|
|
import com.ruoyi.system.domain.SysPost; |
|
|
|
import com.ruoyi.system.domain.SysPost; |
|
|
|
import com.ruoyi.system.domain.SysUserPost; |
|
|
|
import com.ruoyi.system.domain.SysUserPost; |
|
|
|
import com.ruoyi.system.domain.SysUserRole; |
|
|
|
import com.ruoyi.system.domain.SysUserRole; |
|
|
|
import com.ruoyi.system.mapper.SysPostMapper; |
|
|
|
import com.ruoyi.system.mapper.*; |
|
|
|
import com.ruoyi.system.mapper.SysRoleMapper; |
|
|
|
|
|
|
|
import com.ruoyi.system.mapper.SysUserMapper; |
|
|
|
|
|
|
|
import com.ruoyi.system.mapper.SysUserPostMapper; |
|
|
|
|
|
|
|
import com.ruoyi.system.mapper.SysUserRoleMapper; |
|
|
|
|
|
|
|
import com.ruoyi.system.service.ISysConfigService; |
|
|
|
import com.ruoyi.system.service.ISysConfigService; |
|
|
|
import com.ruoyi.system.service.ISysUserService; |
|
|
|
import com.ruoyi.system.service.ISysUserService; |
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.Validator; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 用户 业务层处理 |
|
|
|
* 用户 业务层处理 |
|
|
@ -540,4 +538,11 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
} |
|
|
|
} |
|
|
|
return successMsg.toString(); |
|
|
|
return successMsg.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public List<SysUser> queryUserByPhone(String phonenumber) { |
|
|
|
|
|
|
|
LambdaQueryWrapper<SysUser> wrapper=new LambdaQueryWrapper<>(); |
|
|
|
|
|
|
|
wrapper.select(SysUser::getUserId,SysUser::getPhonenumber).like(SysUser::getPhonenumber,phonenumber); |
|
|
|
|
|
|
|
return userMapper.selectList(wrapper); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|