|
|
|
@ -16,7 +16,6 @@ import com.supervision.knowsub.model.SystemDept;
|
|
|
|
|
import com.supervision.knowsub.model.SystemRole;
|
|
|
|
|
import com.supervision.knowsub.model.SystemUser;
|
|
|
|
|
import com.supervision.knowsub.service.SystemDeptService;
|
|
|
|
|
import com.supervision.knowsub.service.SystemRoleService;
|
|
|
|
|
import com.supervision.knowsub.service.UserManageService;
|
|
|
|
|
import com.supervision.knowsub.service.UserRoleRelationManageService;
|
|
|
|
|
import com.supervision.knowsub.util.TokenUtil;
|
|
|
|
@ -25,6 +24,7 @@ import com.supervision.knowsub.vo.user.LoginReqVO;
|
|
|
|
|
import com.supervision.knowsub.vo.user.LoginResVO;
|
|
|
|
|
import com.supervision.knowsub.vo.user.UserInfoReqVo;
|
|
|
|
|
import com.supervision.knowsub.dto.user.UserInfoDTO;
|
|
|
|
|
import com.supervision.knowsub.vo.user.UserStatusReqVo;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@ -187,4 +187,12 @@ public class UserManageServiceImpl implements UserManageService {
|
|
|
|
|
return systemUserService.lambdaUpdate().set(SystemUser::getUserPd, UserUtil.signPassword(defaultPassword))
|
|
|
|
|
.eq(SystemUser::getId, id).update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateUserStatus(UserStatusReqVo userStatusReqVo) {
|
|
|
|
|
Assert.notEmpty(userStatusReqVo.getId(), "用户id不能为空");
|
|
|
|
|
Assert.notNull(userStatusReqVo.getStatus(), "用户状态不能为空");
|
|
|
|
|
systemUserService.lambdaUpdate().set(SystemUser::getStatus, userStatusReqVo.getStatus())
|
|
|
|
|
.eq(SystemUser::getId, userStatusReqVo.getId()).update();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|