From c81052b0b90ed1deafb7307cf911ae05e7ea24b3 Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Sat, 19 Aug 2023 17:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=BD=92=E5=B1=9E=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CourseServiceImpl.java | 4 - .../zhiyun03/filter/LoginCheckFilter.java | 2 +- .../invite/service/impl/InviteServieImpl.java | 3 - .../serve/service/impl/ServeServiceImpl.java | 4 - src/main/resources/application.yml | 2 +- .../templates/layui-v2.6.8/academicList.html | 182 +++-- .../layui-v2.6.8/applicationList.html | 737 ++++++++++++----- .../templates/layui-v2.6.8/courseList.html | 737 ++++++++++++----- .../templates/layui-v2.6.8/downloadList.html | 156 +++- .../templates/layui-v2.6.8/inviteList.html | 7 + .../templates/layui-v2.6.8/login.html | 2 +- .../templates/layui-v2.6.8/textualList.html | 761 +++++++++++++----- 12 files changed, 1920 insertions(+), 677 deletions(-) diff --git a/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java index df5d65e..f522221 100644 --- a/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java +++ b/src/main/java/com/zhiyun/zhiyun03/course/service/impl/CourseServiceImpl.java @@ -49,10 +49,6 @@ public class CourseServiceImpl extends ServiceImpl implemen PageHelper.startPage(page,limit); //查询所有课程 List courseVoList = courseMapper.queryCourse(); - if (courseVoList.isEmpty()) - { - throw new ServiceException("400","课程数据为空"); - } PageInfo pageInfo = new PageInfo(courseVoList); PageVO courseVoPageInfo = new PageVO<>(); //当前页 diff --git a/src/main/java/com/zhiyun/zhiyun03/filter/LoginCheckFilter.java b/src/main/java/com/zhiyun/zhiyun03/filter/LoginCheckFilter.java index 8bcdcee..9d0a391 100644 --- a/src/main/java/com/zhiyun/zhiyun03/filter/LoginCheckFilter.java +++ b/src/main/java/com/zhiyun/zhiyun03/filter/LoginCheckFilter.java @@ -17,7 +17,7 @@ import java.io.IOException; * @author: Jie * @date: 2022/8/10 9:48 **/ -@WebFilter(filterName = "LoginCheckFilter", urlPatterns = "/*") +//@WebFilter(filterName = "LoginCheckFilter", urlPatterns = "/*") @Slf4j public class LoginCheckFilter implements Filter { diff --git a/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java b/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java index 4ee4f06..235e859 100644 --- a/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java +++ b/src/main/java/com/zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java @@ -42,9 +42,6 @@ public class InviteServieImpl extends ServiceImpl implemen PageHelper.startPage(page, limit); //查询所有课程 List inviteVoList = inviteMapper.queryInvite(); - if (inviteVoList.isEmpty()) { - throw new ServiceException("400", "课程数据为空"); - } PageInfo pageInfo = new PageInfo(inviteVoList); PageVO inviteVoPageVO = new PageVO<>(); //当前页 diff --git a/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java b/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java index bc26748..85121a0 100644 --- a/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java +++ b/src/main/java/com/zhiyun/zhiyun03/serve/service/impl/ServeServiceImpl.java @@ -43,10 +43,6 @@ public class ServeServiceImpl extends ServiceImpl implements PageHelper.startPage(page,limit); //查询所有课程 List serveVoList = serveMapper.queryService(); - if (serveVoList.isEmpty()) - { - throw new ServiceException("400","服务数据为空"); - } PageInfo pageInfo = new PageInfo(serveVoList); PageVO serveVoPageVO = new PageVO<>(); //当前页 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 0befe0c..8f27ab5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -19,7 +19,7 @@ spring: druid: url: jdbc:mysql://localhost:3306/zhiyun?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai username: root - password: 123456 + password: root thymeleaf: cache: false prefix: classpath:/templates diff --git a/src/main/resources/templates/layui-v2.6.8/academicList.html b/src/main/resources/templates/layui-v2.6.8/academicList.html index f117e9d..62dbb9c 100644 --- a/src/main/resources/templates/layui-v2.6.8/academicList.html +++ b/src/main/resources/templates/layui-v2.6.8/academicList.html @@ -7,44 +7,10 @@ + - @@ -338,7 +304,55 @@ + - + - - - + }) - + - \ No newline at end of file + diff --git a/src/main/resources/templates/layui-v2.6.8/courseList.html b/src/main/resources/templates/layui-v2.6.8/courseList.html index c87524e..410920d 100644 --- a/src/main/resources/templates/layui-v2.6.8/courseList.html +++ b/src/main/resources/templates/layui-v2.6.8/courseList.html @@ -1,5 +1,6 @@ + Layui @@ -7,45 +8,9 @@ - - + @@ -67,9 +32,12 @@ + + - + - \ No newline at end of file + diff --git a/src/main/resources/templates/layui-v2.6.8/downloadList.html b/src/main/resources/templates/layui-v2.6.8/downloadList.html index 288b1fd..375a4db 100644 --- a/src/main/resources/templates/layui-v2.6.8/downloadList.html +++ b/src/main/resources/templates/layui-v2.6.8/downloadList.html @@ -47,44 +47,6 @@ -
@@ -252,6 +214,7 @@ }); + layui.use(['upload', 'element', 'layer'], function(){ var $ = layui.jquery ,upload = layui.upload @@ -376,7 +339,55 @@ + - - + - - + - \ No newline at end of file +