From 15ac56a48a27dcfe8a8c23f9431cd59662e5b113 Mon Sep 17 00:00:00 2001
From: whb <17803890193@163.com>
Date: Fri, 18 Aug 2023 16:22:00 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=BD=92=E5=B1=9E?=
 =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../zhiyun/zhiyun03/invite/service/impl/InviteServieImpl.java | 4 ----
 1 file changed, 4 deletions(-)

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 2d29a9e..8322f33 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
@@ -110,8 +110,6 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
             throw new ServiceException("400","添加就业失败");
         }
     }
-
-
     /*
      * 根据id删除数据
      * */
@@ -196,6 +194,4 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
         return directoryList;
 
     }
-
-
 }

From bde8f15d63623419b483d316d97bcea868849947 Mon Sep 17 00:00:00 2001
From: whb <17803890193@163.com>
Date: Fri, 18 Aug 2023 18:03:41 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=BD=92=E5=B1=9E?=
 =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../invite/service/impl/InviteServieImpl.java | 95 +++++++++----------
 .../templates/layui-v2.6.8/index.html         |  5 +-
 .../templates/layui-v2.6.8/inviteList.html    | 20 ++--
 .../templates/layui-v2.6.8/password.html      | 13 +++
 4 files changed, 66 insertions(+), 67 deletions(-)
 create mode 100644 src/main/resources/templates/layui-v2.6.8/password.html

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 8322f33..4ee4f06 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
@@ -39,12 +39,11 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
     @Override
     public PageVO<InviteVo> queryInvite(Integer page, Integer limit) {
 
-        PageHelper.startPage(page,limit);
+        PageHelper.startPage(page, limit);
         //查询所有课程
-        List<InviteVo> inviteVoList  = inviteMapper.queryInvite();
-        if (inviteVoList.isEmpty())
-        {
-            throw new ServiceException("400","课程数据为空");
+        List<InviteVo> inviteVoList = inviteMapper.queryInvite();
+        if (inviteVoList.isEmpty()) {
+            throw new ServiceException("400", "课程数据为空");
         }
         PageInfo<InviteVo> pageInfo = new PageInfo<InviteVo>(inviteVoList);
         PageVO<InviteVo> inviteVoPageVO = new PageVO<>();
@@ -58,6 +57,7 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
         return inviteVoPageVO;
 
     }
+
     /*
      * 根据id查询就业
      * */
@@ -69,7 +69,7 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
         Directory directory = directoryMapper.selectById(invite.getDirId());
         InviteVo inviteVo = new InviteVo();
         //复制给vo
-        BeanUtils.copyProperties(invite,inviteVo);
+        BeanUtils.copyProperties(invite, inviteVo);
         inviteVo.setDirName(directory.getDirName());
         return inviteVo;
     }
@@ -80,54 +80,48 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
     @Override
     public int addInvite(InviteVo vo) {
         /*判断目录名是否为空*/
-        if (vo.getInviteName().isEmpty())
-        {
-            throw new ServiceException("400","就业名不能为空");
+        if (vo.getInviteName().isEmpty()) {
+            throw new ServiceException("400", "就业名不能为空");
         }
         //查询就业名称是否已经存在
-        int count =  inviteMapper.selectByName(vo.getInviteName());
-        if (count>0)
-        {
-            throw new ServiceException("403","就业名已存在");
+        int count = inviteMapper.selectByName(vo.getInviteName());
+        if (count > 0) {
+            throw new ServiceException("403", "就业名已存在");
         }
         //将vo值传给就业
         Invite invite = new Invite();
-        BeanUtils.copyProperties(vo,invite);
+        BeanUtils.copyProperties(vo, invite);
         //查询归属目录id
-        Integer dirId = directoryMapper.selectByName(vo.getDirName(),"8");
-        if (dirId==null){
-            throw new ServiceException("400","目录不存在");
+        Integer dirId = directoryMapper.selectByName(vo.getDirName(), "8");
+        if (dirId == null) {
+            throw new ServiceException("400", "目录不存在");
         }
         invite.setDirId(dirId);
         invite.setInviteUpdatetime(new Date());
         //添加就业
         int insert = inviteMapper.insert(invite);
-        if (insert>0)
-        {
+        if (insert > 0) {
             return insert;
-        }else
-        {
-            throw new ServiceException("400","添加就业失败");
+        } else {
+            throw new ServiceException("400", "添加就业失败");
         }
     }
+
     /*
      * 根据id删除数据
      * */
     @Override
     public int delInviteById(Integer id) {
-        if (id == null)
-        {
-            throw  new ServiceException("400","查询id值为空");
+        if (id == null) {
+            throw new ServiceException("400", "查询id值为空");
         }
         //根据id删除
         int count = inviteMapper.deleteById(id);
 
-        if (count>0)
-        {
+        if (count > 0) {
             return count;
-        }else
-        {
-            throw new ServiceException("400","删除失败");
+        } else {
+            throw new ServiceException("400", "删除失败");
         }
     }
 
@@ -145,48 +139,45 @@ public class InviteServieImpl extends ServiceImpl<InviteMapper, Invite> implemen
 
         //将vo值传给download
         Invite invite = new Invite();
-        BeanUtils.copyProperties(vo,invite);
+        BeanUtils.copyProperties(vo, invite);
         //查询归属目录id
-        Integer dirId = directoryMapper.selectByName(vo.getDirName(),"8");
+        Integer dirId = directoryMapper.selectByName(vo.getDirName(), "8");
         invite.setDirId(dirId);
         invite.setInviteUpdatetime(new Date());
         //添加download
         int updated = inviteMapper.updateDownloadById(invite);
-        if (updated>0)
-        {
+        if (updated > 0) {
             return updated;
-        }else
-        {
-            throw new ServiceException("400","更新失败");
+        } else {
+            throw new ServiceException("400", "更新失败");
         }
     }
-/*添加目录*/
+
+    /*添加目录*/
     @Override
     public void addInviteDirectory(Directory directory) {
-        if (directory.getDirName().isEmpty())
-        {
-            throw new ServiceException("400","目录名称不能为空");
+        if (directory.getDirName().isEmpty()) {
+            throw new ServiceException("400", "目录名称不能为空");
         }
-        if (directory.getDirImg().isEmpty())
-        {
-            throw new ServiceException("400","请选择一个icon");
+        if (directory.getDirImg().isEmpty()) {
+            throw new ServiceException("400", "请选择一个icon");
         }
 
-        Integer count = directoryMapper.selectByName(directory.getDirName(),"8");
-        if (count!=null)
-        {
-            throw new ServiceException("400","目录已存在");
+        Integer count = directoryMapper.selectByName(directory.getDirName(), "8");
+        if (count != null) {
+            throw new ServiceException("400", "目录已存在");
         }
 
-        int uuid= UUID.randomUUID().hashCode();
-        if(uuid<0){
-            uuid=-uuid;
+        int uuid = UUID.randomUUID().hashCode();
+        if (uuid < 0) {
+            uuid = -uuid;
         }
         directory.setDirAddtime(new Date());
         directory.setId(uuid);
         directoryMapper.addInviteDirectory(directory);
     }
-/*查询目录*/
+
+    /*查询目录*/
     @Override
     public List<DirectoryVo> queryInviteDirectory() {
 
diff --git a/src/main/resources/templates/layui-v2.6.8/index.html b/src/main/resources/templates/layui-v2.6.8/index.html
index 4f275bd..bdd9e6d 100644
--- a/src/main/resources/templates/layui-v2.6.8/index.html
+++ b/src/main/resources/templates/layui-v2.6.8/index.html
@@ -17,9 +17,8 @@
                     tester
                 </a>
                 <dl class="layui-nav-child">
-                    <dd><a href="">Your Profile</a></dd>
-                    <dd><a href="">Settings</a></dd>
-                    <dd><a href="lgoin.html">Sign out</a></dd>
+                    <dd><a href="" onclick="openUrl('password.html')">修改密码</a></dd>
+                    <dd><a href="lgoin.html">退出登录</a></dd>
                 </dl>
             </li>
             <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
diff --git a/src/main/resources/templates/layui-v2.6.8/inviteList.html b/src/main/resources/templates/layui-v2.6.8/inviteList.html
index 03b12d1..d75dcca 100644
--- a/src/main/resources/templates/layui-v2.6.8/inviteList.html
+++ b/src/main/resources/templates/layui-v2.6.8/inviteList.html
@@ -8,7 +8,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <link rel="stylesheet" href="layui/css/layui.css" tppabs="//res.ilayuis.com/layui/dist/css/layui.css" media="all">
-    <!-- 注意:如果你直接复制所有代码到本地,上述css路径需要改成你本地的 -->
+
     <style>
         .select-img-wrap {
             width: calc(100% - 40px);
@@ -47,9 +47,7 @@
         }
     </style>
 </head>
-
 <body>
-
 <table class="layui-hide" id="test" lay-filter="test"></table>
 <script type="text/html" id="toolbarDemo">
     <div class="layui-btn-container">
@@ -61,7 +59,7 @@
     <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
 </script>
-<script src="layui/layui.js" charset="utf-8"></script>
+<!--<script src="layui/layui.js" charset="utf-8"></script>-->
 <!-- 注意:如果你直接复制所有代码到本地,上述 JS 路径需要改成你本地的 -->
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
 <link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet">
@@ -124,16 +122,16 @@
                     //获取要删除的服务的id
                     var deleteDownloadId = data.id
                     $.get("http://localhost:8080/api/invite/delInviteById", { "id": deleteDownloadId }, function (result) {
-                        if (result.code == 200) {
+                        if (result.code==200){
                             // 删除成功之后 弹出msg
-                            layer.msg(result.msg)
+                            layer.msg(result.msg);
                             // 重点:继续显示当前页
-                            $(".layui-laypage-btn").click()
+                            $(".layui-laypage-btn").click();
                         } else {
-                            layer.msg(result.msg, { icon: 2 })
-                            layer.close(index)
+                            layer.msg(result.msg, {icon: 2});
+                            layer.close(index);
                         }
-                    })
+                    });
 
                 })
             } else if (obj.event === 'edit') {
@@ -294,7 +292,6 @@
         </div>
     </form>
 </script>
-
 <script>
     function addDir(data) {
         var $ = layui.jquery
@@ -513,7 +510,6 @@
         })
     }
 </script>
-
 <script type="text/html" id="addForm1">
     <form class="layui-form" id="addInvite" lay-filter="addInviteForm">
         <!-- 把id 作为隐藏域传过去 -->
diff --git a/src/main/resources/templates/layui-v2.6.8/password.html b/src/main/resources/templates/layui-v2.6.8/password.html
new file mode 100644
index 0000000..35f8a82
--- /dev/null
+++ b/src/main/resources/templates/layui-v2.6.8/password.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Title</title>
+</head>
+<body>
+
+
+
+
+</body>
+</html>
\ No newline at end of file