Bläddra i källkod

无用的修改

huianan 2 år sedan
förälder
incheckning
dccecfe587

+ 23 - 97
README.md

@@ -1,97 +1,23 @@
-<p align="center">
-	<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
-</p>
-<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.5</h1>
-<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
-<p align="center">
-	<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
-	<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.5-brightgreen.svg"></a>
-	<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
-</p>
-
-## 平台简介
-
-若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
-
-* 前端采用Vue、Element UI。
-* 后端采用Spring Boot、Spring Security、Redis & Jwt。
-* 权限认证使用Jwt,支持多终端认证系统。
-* 支持加载动态权限菜单,多方式轻松权限控制。
-* 高效率开发,使用代码生成器可以一键生成前后端代码。
-* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
-* 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
-* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
-* 特别鸣谢:[element](https://github.com/ElemeFE/element),[vue-element-admin](https://github.com/PanJiaChen/vue-element-admin),[eladmin-web](https://github.com/elunez/eladmin-web)。
-* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)&nbsp;&nbsp;
-* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)&nbsp;&nbsp;
-
-## 内置功能
-
-1.  用户管理:用户是系统操作者,该功能主要完成系统用户配置。
-2.  部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
-3.  岗位管理:配置系统用户所属担任职务。
-4.  菜单管理:配置系统菜单,操作权限,按钮权限标识等。
-5.  角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
-6.  字典管理:对系统中经常使用的一些较为固定的数据进行维护。
-7.  参数管理:对系统动态配置常用参数。
-8.  通知公告:系统通知公告信息发布维护。
-9.  操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
-10. 登录日志:系统登录日志记录查询包含登录异常。
-11. 在线用户:当前系统中活跃用户状态监控。
-12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
-13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
-14. 系统接口:根据业务代码自动生成相关的api接口文档。
-15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
-16. 缓存监控:对系统的缓存信息查询,命令统计等。
-17. 在线构建器:拖动表单元素生成相应的HTML代码。
-18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
-
-## 在线体验
-
-- admin/admin123  
-- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
-
-演示地址:http://vue.ruoyi.vip  
-文档地址:http://doc.ruoyi.vip
-
-## 演示图
-
-<table>
-    <tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
-    </tr>
-    <tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
-    </tr>
-    <tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
-    </tr>
-	<tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
-    </tr>	 
-    <tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
-    </tr>
-	<tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
-    </tr>
-	<tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
-    </tr>
-    <tr>
-        <td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
-        <td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
-    </tr>
-</table>
-
-
-## 若依前后端分离交流群
-
-QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) 点击按钮入群。
+┏┓   ┏┓+ +
+┏┛┻━━━┛┻┓ + +
+┃       ┃
+┃   ━   ┃ ++ + + +
+████━████ ┃+
+┃       ┃ +
+┃   ┻   ┃
+┃       ┃ + +
+┗━┓   ┏━┛
+┃   ┃
+┃   ┃ + + + +
+┃   ┃
+┃   ┃ +  神兽保佑
+┃   ┃    代码无bug
+┃   ┃  +
+┃    ┗━━━┓ + +
+┃        ┣┓
+┃        ┏┛
+┗┓┓┏━┳┓┏┛ + + + +
+┃┫┫ ┃┫┫
+┗┻┛ ┗┻┛+ + + +
+
+邮贝板块:ruoyi-post

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostBulletinController.java

@@ -68,7 +68,7 @@ public class PostBulletinController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:bulletin:add')")
     @Log(title = "通知公告; ", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PostBulletin postBulletin)
     {
         return toAjax(postBulletinService.insertPostBulletin(postBulletin));
@@ -79,7 +79,7 @@ public class PostBulletinController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:bulletin:edit')")
     @Log(title = "通知公告; ", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PutMapping("/edit")
     public AjaxResult edit(@RequestBody PostBulletin postBulletin)
     {
         return toAjax(postBulletinService.updatePostBulletin(postBulletin));

+ 3 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/post/PostNewsController.java

@@ -72,7 +72,7 @@ public class PostNewsController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:news:add')")
     @Log(title = "通知消息管理; ", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PostNews postNews)
     {
         return toAjax(postNewsService.insertPostNews(postNews));
@@ -83,7 +83,7 @@ public class PostNewsController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('system:news:edit')")
     @Log(title = "通知消息管理;", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PutMapping("/edit")
     public AjaxResult edit(@RequestBody PostNews postNews)
     {
         return toAjax(postNewsService.updatePostNews(postNews));
@@ -97,6 +97,7 @@ public class PostNewsController extends BaseController
     @DeleteMapping("/{newsIds}")
     public AjaxResult remove(@PathVariable Integer[] newsIds)
     {
+
         return toAjax(postNewsService.deletePostNewsByNewsIds(newsIds));
     }
 

+ 22 - 22
ruoyi-admin/src/main/resources/banner.txt

@@ -1,24 +1,24 @@
 Application Version: ${ruoyi.version}
 Spring Boot Version: ${spring-boot.version}
-////////////////////////////////////////////////////////////////////
-//                          _ooOoo_                               //
-//                         o8888888o                              //
-//                         88" . "88                              //
-//                         (| ^_^ |)                              //
-//                         O\  =  /O                              //
-//                      ____/`---'\____                           //
-//                    .'  \\|     |//  `.                         //
-//                   /  \\|||  :  |||//  \                        //
-//                  /  _||||| -:- |||||-  \                       //
-//                  |   | \\\  -  /// |   |                       //
-//                  | \_|  ''\---/''  |   |                       //
-//                  \  .-\__  `-`  ___/-. /                       //
-//                ___`. .'  /--.--\  `. . ___                     //
-//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
-//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
-//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
-//      ========`-.____`-.___\_____/___.-`____.-'========         //
-//                           `=---='                              //
-//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
-//             佛祖保佑       永不宕机      永无BUG               //
-////////////////////////////////////////////////////////////////////
+    ┏┓   ┏┓+ +
+  ┏┛┻━━━┛┻┓ + +
+  ┃       ┃  
+  ┃   ━   ┃ ++ + + +
+  ████━████ ┃+
+  ┃       ┃ +
+  ┃   ┻   ┃
+  ┃       ┃ + +
+  ┗━┓   ┏━┛
+    ┃   ┃           
+    ┃   ┃ + + + +
+    ┃   ┃
+    ┃   ┃ +  神兽保佑
+    ┃   ┃    代码无bug  
+    ┃   ┃  +         
+    ┃    ┗━━━┓ + +
+    ┃        ┣┓
+    ┃        ┏┛
+    ┗┓┓┏━┳┓┏┛ + + + +
+     ┃┫┫ ┃┫┫
+     ┗┻┛ ┗┻┛+ + + +
+

+ 2 - 0
ruoyi-post/src/main/java/com/ruoyi/post/mapper/PostPublisherMapper.java

@@ -58,4 +58,6 @@ public interface PostPublisherMapper
      * @return 结果
      */
     public int deletePostPublisherByPublisherIds(Long[] publisherIds);
+
+
 }

+ 13 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/IPostBulletinService.java

@@ -1,6 +1,7 @@
 package com.ruoyi.post.service;
 
 import com.ruoyi.post.domain.PostBulletin;
+import com.ruoyi.post.domain.PostNews;
 
 import java.util.List;
 
@@ -50,4 +51,16 @@ public interface IPostBulletinService
      * @return 结果
      */
     public int deletePostBulletinByNoticeId(Integer noticeId);
+
+    /**
+     * 判断消息标题是否重复
+     */
+    public void newsTitleIfRepeat(PostNews postNews);
+
+    /**
+     * 消息标题以及消息内容为空判断
+     */
+    public void newsTitleAndNewsContentIsNull(PostNews postNews);
+
+
 }

+ 2 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/IPostPublisherService.java

@@ -58,4 +58,6 @@ public interface IPostPublisherService
      * @return 结果
      */
     public int deletePostPublisherByPublisherId(Long publisherId);
+
+
 }

+ 18 - 0
ruoyi-post/src/main/java/com/ruoyi/post/service/impl/PostBulletinServiceImpl.java

@@ -2,6 +2,7 @@ package com.ruoyi.post.service.impl;
 
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.post.domain.PostBulletin;
+import com.ruoyi.post.domain.PostNews;
 import com.ruoyi.post.mapper.PostBulletinMapper;
 import com.ruoyi.post.service.IPostBulletinService;
 import org.springframework.stereotype.Service;
@@ -93,4 +94,21 @@ public class PostBulletinServiceImpl implements IPostBulletinService
     {
         return postBulletinMapper.deletePostBulletinByNoticeId(noticeId);
     }
+
+    /**
+     * 判断消息标题是否重复
+     * @param postNews
+     */
+    @Override
+    public void newsTitleIfRepeat(PostNews postNews) {
+
+     }
+    /**
+     * 消息标题以及消息内容为空判断
+     * @param postNews
+     */
+    @Override
+    public void newsTitleAndNewsContentIsNull(PostNews postNews) {
+
+    }
 }

+ 36 - 24
ruoyi-post/src/main/resources/mapper/PostBulletinMapper.xml

@@ -21,7 +21,8 @@
     <sql id="selectPostBulletinVo">
         select notice_id,
                notice_title,
-               cast(notice_content as char) as notice_content status,
+               cast(notice_content as char) as notice_content,
+               status,
                publisher_id,
                publisher_by,
                create_by,
@@ -35,9 +36,18 @@
     <select id="selectPostBulletinList" parameterType="PostBulletin" resultMap="PostBulletinResult">
         <include refid="selectPostBulletinVo"/>
         <where>
+--标题查询
             <if test="noticeTitle != null and noticeTitle != ''">
                 AND notice_title like concat('%', #{noticeTitle}, '%')
             </if>
+--内容查询
+            <if test="noticeContent != null and noticeTitle != ''">
+                AND notice_content like concat('%', #{noticeContent}, '%')
+            </if>
+-- 时间查询
+            <if test="createTime != null and noticeTitle != ''">
+                AND create_time like concat('%', #{createTime}, '%')
+            </if>
         </where>
     </select>
 
@@ -47,29 +57,31 @@
     </select>
 
     <insert id="insertPostBulletin" parameterType="PostBulletin" useGeneratedKeys="true" keyProperty="noticeId">
-        insert into post_bulletin(
-        <if test="noticeTitle != null and noticeTitle != ''">notice_title,</if>
-        <if test="noticeContent != null">notice_content,</if>
-        <if test="status != null">status,</if>
-        <if test="publisherId != null">publisher_id,</if>
-        <if test="publisherBy != null">publisher_by,</if>
-        <if test="createBy != null">create_by,</if>
-        <if test="createTime != null">create_time,</if>
-        <if test="updateBy != null">update_by,</if>
-        <if test="updateTime != null">update_time,</if>
-        <if test="remark != null">remark,</if>
-        )values(
-        <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle},</if>
-        <if test="noticeContent != null">#{noticeContent},</if>
-        <if test="status != null">#{status},</if>
-        <if test="publisherId != null">#{publisherId},</if>
-        <if test="publisherBy != null">#{publisherBy},</if>
-        <if test="createBy != null">#{createBy},</if>
-        <if test="createTime != null">#{createTime},</if>
-        <if test="updateBy != null">#{updateBy},</if>
-        <if test="updateTime != null">#{updateTime},</if>
-        <if test="remark != null">#{remark},</if>
-        )
+        insert into post_bulletin
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="noticeTitle != null and noticeTitle != ''">notice_title,</if>
+            <if test="noticeContent != null">notice_content,</if>
+            <if test="status != null">status,</if>
+            <if test="publisherId != null">publisher_id,</if>
+            <if test="publisherBy != null">publisher_by,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle},</if>
+            <if test="noticeContent != null">#{noticeContent},</if>
+            <if test="status != null">#{status},</if>
+            <if test="publisherId != null">#{publisherId},</if>
+            <if test="publisherBy != null">#{publisherBy},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+        </trim>
     </insert>
 
     <update id="updatePostBulletin" parameterType="PostBulletin">