发邮件功能处理提交
日志功能修复
This commit is contained in:
@@ -62,7 +62,12 @@ public class ReportLogAspect {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
LogEntity entity = new LogEntity();
|
||||
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
if (UserUtils.getUser() == null){
|
||||
entity.setAccount("系统自动操作");
|
||||
} else {
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
}
|
||||
|
||||
entity.setClassName(cs.getName());
|
||||
entity.setOperateTime(format.format(new Date()));
|
||||
entity.setMethod(name);
|
||||
|
||||
@@ -765,7 +765,12 @@ public class ReportManageConroller {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
LogEntity entity = new LogEntity();
|
||||
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
if (UserUtils.getUser() == null){
|
||||
entity.setAccount("系统自动操作");
|
||||
} else {
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
}
|
||||
|
||||
entity.setClassName("com.adc.da.report.controller.ReportManageConroller");
|
||||
entity.setOperateTime(format.format(new Date()));
|
||||
entity.setMethod("downloadPic");
|
||||
|
||||
@@ -931,7 +931,12 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
LogEntity entity = new LogEntity();
|
||||
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
if (UserUtils.getUser() == null){
|
||||
entity.setAccount("系统自动操作");
|
||||
} else {
|
||||
entity.setAccount(UserUtils.getUser().getAccount());
|
||||
}
|
||||
|
||||
entity.setClassName("com.adc.da.report.service.impl.IReportServiceImpl");
|
||||
entity.setOperateTime(format.format(new Date()));
|
||||
entity.setMethod("reportDetail");
|
||||
|
||||
Reference in New Issue
Block a user