提交 c0073dd0 authored 作者: LJJ's avatar LJJ

修改部分日志信息

上级 5a8a9622
...@@ -170,11 +170,15 @@ public class UserController { ...@@ -170,11 +170,15 @@ public class UserController {
if (type == 1 ) { if (type == 1 ) {
id = "admin"; id = "admin";
msg = "[管理员]修改了[" + old.getUnit() + msg = "[管理员]修改了[" + old.getUnit() +
"][" + old.getDepartment() + "_" + old.getName() +
"][" + old.getName() +
"]的信息"; "]的信息";
efsLogUtil.addLog(new EfsLog(null,id,msg,new Date()));
} else {
if (type == 2) {
msg = userDo.getName() + "修改了账户信息";
efsLogUtil.addLog(new EfsLog(null, id, msg, new Date()));
}
} }
efsLogUtil.addLog(new EfsLog(null,id,msg,new Date()));
return ResponseEntity.ok(rs); return ResponseEntity.ok(rs);
} }
......
...@@ -65,8 +65,7 @@ public class UserServiceImpl implements UserService { ...@@ -65,8 +65,7 @@ public class UserServiceImpl implements UserService {
} }
String msg = "[管理员]" + action + String msg = "[管理员]" + action +
"了[" + userDo.getUnit() + "了[" + userDo.getUnit() +
"][" + userDo.getDepartment() + "_" + userDo.getName() +
"][" + userDo.getName() +
"]的账号"; "]的账号";
efsLogUtil.addLog(new EfsLog(null, "admin", msg, new Date())); efsLogUtil.addLog(new EfsLog(null, "admin", msg, new Date()));
return true; return true;
...@@ -93,8 +92,8 @@ public class UserServiceImpl implements UserService { ...@@ -93,8 +92,8 @@ public class UserServiceImpl implements UserService {
userDao.save(userDo); userDao.save(userDo);
String msg = "[管理员]重置了" + "["+ String msg = "[管理员]重置了" + "["+
userDo.getUnit() + "][" + userDo.getDepartment() userDo.getUnit()
+ "][" + userDo.getName() + "]的密码"; + "_" + userDo.getName() + "]的密码";
efsLogUtil.addLog(new EfsLog(null,"admin", efsLogUtil.addLog(new EfsLog(null,"admin",
msg, msg,
...@@ -112,8 +111,7 @@ public class UserServiceImpl implements UserService { ...@@ -112,8 +111,7 @@ public class UserServiceImpl implements UserService {
//创建日志 //创建日志
String msg = "[管理员]用户了[" + userDo.getUnit() + String msg = "[管理员]用户了[" + userDo.getUnit() +
"][" + userDo.getDepartment() + "_" + userDo.getName() +
"][" + userDo.getName() +
"]"; "]";
efsLogUtil.addLog(new EfsLog(null,"admin",msg, new Date())); efsLogUtil.addLog(new EfsLog(null,"admin",msg, new Date()));
...@@ -172,8 +170,7 @@ public class UserServiceImpl implements UserService { ...@@ -172,8 +170,7 @@ public class UserServiceImpl implements UserService {
//修改记录日志 //修改记录日志
String msg = "[" + user.getUnit() + String msg = "[" + user.getUnit() +
"][" + user.getDepartment() + "_" + user.getName() +
"][" + user.getName() +
"]修改了密码"; "]修改了密码";
efsLogUtil.addLog(new EfsLog(null, id, msg, new Date())); efsLogUtil.addLog(new EfsLog(null, id, msg, new Date()));
return user; return user;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论