[修改] 报告book日志管理

This commit is contained in:
bupengxiang
2023-05-08 10:41:12 +08:00
parent 3542bd6899
commit 5742a5637d
@@ -182,6 +182,7 @@ public class ReportManageConroller {
map.put("content", html); map.put("content", html);
ReportLogBook reportLog = new ReportLogBook(); ReportLogBook reportLog = new ReportLogBook();
reportLog.setId(UUID.randomUUID().toString().replaceAll("-",""));
reportLog.setReportId(id); reportLog.setReportId(id);
reportLog.setType(1); reportLog.setType(1);
reportLog.setUpdateTime(new Date()); reportLog.setUpdateTime(new Date());
@@ -199,6 +200,7 @@ public class ReportManageConroller {
@GetMapping("/praise/{reportId}") @GetMapping("/praise/{reportId}")
public ResponseMessage praise(@PathVariable("reportId") String reportId) { public ResponseMessage praise(@PathVariable("reportId") String reportId) {
ReportLogBook reportLog = new ReportLogBook(); ReportLogBook reportLog = new ReportLogBook();
reportLog.setId(UUID.randomUUID().toString().replaceAll("-",""));
reportLog.setReportId(reportId); reportLog.setReportId(reportId);
reportLog.setType(3); reportLog.setType(3);
reportLog.setUpdateTime(new Date()); reportLog.setUpdateTime(new Date());
@@ -457,6 +459,7 @@ public class ReportManageConroller {
log.info(ex.getMessage(),ex); log.info(ex.getMessage(),ex);
} }
ReportLogBook reportLog = new ReportLogBook(); ReportLogBook reportLog = new ReportLogBook();
reportLog.setId(UUID.randomUUID().toString().replaceAll("-",""));
reportLog.setReportId(repostId); reportLog.setReportId(repostId);
reportLog.setType(2); reportLog.setType(2);
reportLog.setUpdateTime(new Date()); reportLog.setUpdateTime(new Date());