From 3e9ccce1b9c194a7e86863b0a17dfd0fab036347 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Wed, 31 Jul 2024 11:02:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?release:=E4=BF=AE=E5=A4=8D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=95=BF=E5=BA=A6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_music/src/main/resources/sql/20240724.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_music/src/main/resources/sql/20240724.sql b/luoo_music/src/main/resources/sql/20240724.sql index a54f131..326f2e3 100644 --- a/luoo_music/src/main/resources/sql/20240724.sql +++ b/luoo_music/src/main/resources/sql/20240724.sql @@ -2,7 +2,7 @@ create table tb_essay ( id varchar(20) not null comment 'id' primary key, - title varchar(20) null comment '标题', + title varchar(200) null comment '标题', summary varchar(200) null comment '摘要', read_count int null comment '阅读数', content text null comment '内容', From e6d376ff9babac0bf8d0e14aa1b77a9a36135d7a Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Wed, 31 Jul 2024 15:10:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?release:=E4=BF=AE=E5=A4=8D=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E4=BF=AE=E6=94=B9=E6=96=87=E7=AB=A0=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E6=95=B0=E5=92=8C=E5=88=9B=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/luoo/music/controller/CMSEssayController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luoo_music/src/main/java/com/luoo/music/controller/CMSEssayController.java b/luoo_music/src/main/java/com/luoo/music/controller/CMSEssayController.java index ed6def9..3e7d9e6 100644 --- a/luoo_music/src/main/java/com/luoo/music/controller/CMSEssayController.java +++ b/luoo_music/src/main/java/com/luoo/music/controller/CMSEssayController.java @@ -62,6 +62,10 @@ public class CMSEssayController { }) public Result update(@RequestHeader(value="Authorization",required = true) String authorization ,@PathVariable String id, @RequestBody Essay essay) { essay.setId(id); + Essay essay1 = essayService.getById(id); + essay.setReadCount(essay1.getReadCount()); + essay.setCreateTime(essay1.getCreateTime()); + essayService.update(essay); return Result.success(); }