Merge remote-tracking branch 'origin/release-2024-04-25' into release-2024-04-25

release-2024-08-08
huangyw 4 months ago
commit 42bcd7fddf

@ -62,6 +62,10 @@ public class CMSEssayController {
}) })
public Result update(@RequestHeader(value="Authorization",required = true) String authorization ,@PathVariable String id, @RequestBody Essay essay) { public Result update(@RequestHeader(value="Authorization",required = true) String authorization ,@PathVariable String id, @RequestBody Essay essay) {
essay.setId(id); essay.setId(id);
Essay essay1 = essayService.getById(id);
essay.setReadCount(essay1.getReadCount());
essay.setCreateTime(essay1.getCreateTime());
essayService.update(essay); essayService.update(essay);
return Result.success(); return Result.success();
} }

@ -2,7 +2,7 @@ create table tb_essay
( (
id varchar(20) not null comment 'id' id varchar(20) not null comment 'id'
primary key, primary key,
title varchar(20) null comment '标题', title varchar(200) null comment '标题',
summary varchar(200) null comment '摘要', summary varchar(200) null comment '摘要',
read_count int null comment '阅读数', read_count int null comment '阅读数',
content text null comment '内容', content text null comment '内容',

Loading…
Cancel
Save