From 2311b9a6f67181e4962291748a3946b4ab22bf1b Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 9 Jul 2024 11:04:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=94=99=E9=A2=98=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/manager/UserBookManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java index 26631e7..4460b92 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/UserBookManager.java @@ -3,13 +3,13 @@ package com.ruoyi.web.controller.manager; import cn.hutool.core.convert.Convert; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.system.domain.qu.ElQu; import com.ruoyi.system.domain.userbook.ElUserBook; import com.ruoyi.system.domain.userbook.dto.UserBookDTO; import com.ruoyi.system.service.ElQuService; import com.ruoyi.system.service.ElUserBookService; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; import javax.annotation.Resource; import java.util.Arrays; @@ -105,7 +105,7 @@ public class UserBookManager { public String findNext(String examId, String quId) { Integer sort = 999999; - if(Objects.nonNull(quId)){ + if(StringUtils.isNotBlank(quId)){ QueryWrapper wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(ElUserBook::getUserId, ShiroUtils.getUserId())