日志模块

master
星期八 5 years ago
parent 8ca3de2f0d
commit 51ce509b60
  1. 1
      src/main/java/com/lq/cms/web/sys/UserController.java
  2. 2
      src/main/java/com/lq/code/interceptor/SpringmvcInterceptor.java

@ -119,7 +119,6 @@ public class UserController {
ajaxResult.setSuccess(false); ajaxResult.setSuccess(false);
ajaxResult.setMsg("更新失败"); ajaxResult.setMsg("更新失败");
} }
return ajaxResult; return ajaxResult;
} }

@ -1,5 +1,6 @@
package com.lq.code.interceptor; package com.lq.code.interceptor;
import com.lq.cms.emun.StatusTypeEnum;
import com.lq.code.util.CusAccessObjectUtil; import com.lq.code.util.CusAccessObjectUtil;
import com.lq.dao.SysLogDao; import com.lq.dao.SysLogDao;
import com.lq.entity.SysLog; import com.lq.entity.SysLog;
@ -29,6 +30,7 @@ public class SpringmvcInterceptor implements HandlerInterceptor {
log.setUserIp(ip); log.setUserIp(ip);
log.setUrl(request.getRequestURI()); log.setUrl(request.getRequestURI());
log.setCreateTime(new Date()); log.setCreateTime(new Date());
log.setStatus(StatusTypeEnum.STATUS_ACTIVITY_YES.getValue());
sysLogDao.save(log); sysLogDao.save(log);
return true; return true;
} }

Loading…
Cancel
Save