feat:修改

new-exam
wangxy 5 months ago
parent ad29ddd3e3
commit 6c85bcb3cc

@ -73,7 +73,7 @@ public class UserBookManager {
wrapper.lambda()
.eq(ElUserBook::getExamId, examId)
.eq(ElUserBook::getUserId, userId);
wrapper.last(" ORDER BY `sort` DESC");
wrapper.last(" ORDER BY sort DESC");
ElUserBook book = userBookService.getOne(wrapper, false);
if(Objects.isNull(book)){
return 0;
@ -110,7 +110,7 @@ public class UserBookManager {
.eq(ElUserBook::getUserId, ShiroUtils.getUserId())
.eq(ElUserBook::getExamId, examId)
.eq(ElUserBook::getQuId, quId);
wrapper.last(" ORDER BY `sort` DESC");
wrapper.last(" ORDER BY sort DESC");
ElUserBook last = userBookService.getOne(wrapper, false);
if(last!=null){
sort = last.getSort();
@ -121,7 +121,7 @@ public class UserBookManager {
.eq(ElUserBook::getUserId, ShiroUtils.getUserId())
.eq(ElUserBook::getExamId, examId)
.lt(ElUserBook::getSort, sort);
wrapper.last(" ORDER BY `sort` DESC");
wrapper.last(" ORDER BY sort DESC");
ElUserBook next = userBookService.getOne(wrapper, false);
if(next != null){
return next.getQuId();

Loading…
Cancel
Save