Commit f6758a2e6a038ab2a6a976c849463882758feb82
1 parent
b5261d5ca6
Exists in
master
and in
6 other branches
操作日志
Showing 2 changed files with 11 additions and 1 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/OperateLogModel.java
View file @
f6758a2
... | ... | @@ -49,6 +49,16 @@ |
49 | 49 | |
50 | 50 | private String modifyContent; |
51 | 51 | |
52 | + private String _class; | |
53 | + | |
54 | + public String get_class() { | |
55 | + return _class; | |
56 | + } | |
57 | + | |
58 | + public void set_class(String _class) { | |
59 | + this._class = _class; | |
60 | + } | |
61 | + | |
52 | 62 | public String getModifyContent() { |
53 | 63 | return modifyContent; |
54 | 64 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/OperateLogFacade.java
View file @
f6758a2
... | ... | @@ -54,7 +54,6 @@ |
54 | 54 | String operateRemark) |
55 | 55 | { |
56 | 56 | OperateLogModel model = new OperateLogModel(); |
57 | - | |
58 | 57 | UsersQuery usersQuery = new UsersQuery(); |
59 | 58 | usersQuery.setId(userId); |
60 | 59 | List<Users> list = usersService.queryUsers(usersQuery); |
... | ... | @@ -67,6 +66,7 @@ |
67 | 66 | } |
68 | 67 | |
69 | 68 | model.setOperateAction(operateAction); |
69 | + model.set_class(operateBeforeContent.getClass().getName()); | |
70 | 70 | model.setOperateBeforeContent(JsonUtil.obj2Str(operateBeforeContent)); |
71 | 71 | model.setOperateAfterContent(JsonUtil.obj2Str(operateAfterContent)); |
72 | 72 | model.setOperateRemark(operateRemark); |