release:修复后台修改文章缺失浏览数和创建时间的bug

release-2024-08-08
wangqing 6 months ago
parent 3e9ccce1b9
commit e6d376ff9b

@ -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();
}

Loading…
Cancel
Save