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