优化日志模块

This commit is contained in:
季圣华
2020-06-09 00:31:46 +08:00
parent b6f79820f5
commit 5168a11b1e
22 changed files with 80 additions and 64 deletions

View File

@@ -148,7 +148,7 @@ public class LogService {
}
}
public void insertLog(String moduleName, String type, HttpServletRequest request)throws Exception{
public void insertLog(String moduleName, String content, HttpServletRequest request)throws Exception{
try{
Long userId = getUserId(request);
if(userId!=null) {
@@ -159,7 +159,7 @@ public class LogService {
log.setCreatetime(new Date());
Byte status = 0;
log.setStatus(status);
log.setContentdetails(type + moduleName);
log.setContentdetails(content);
logMapper.insertSelective(log);
}
}catch(Exception e){