| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.bo.VciLogObjectBO; |
| | | import com.vci.corba.common.data.UserEntityInfo; |
| | | import com.vci.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.starter.web.util.WebThreadLocalUtil; |
| | | import com.vci.web.bo.VciLogObjectBO; |
| | | import com.vci.web.service.WebLogServiceI; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import com.vci.web.util.WebUtil; |
| | |
| | | @Override |
| | | public void addOperateLog(VciLogObjectBO logObject) { |
| | | //VCIInvocationInfo vcii = WebThreadLocalUtil.getCurrentUserInvocationInfoInThread().get(); |
| | | SessionInfo si = WebThreadLocalUtil.getCurrentUserSessionInfoInThread().get(); |
| | | SessionInfo si = WebThreadLocalUtil.getCurrentUserSessionInfoInThread(); |
| | | if(si!=null){ |
| | | logObject.setUserId(si.getUserId()); |
| | | logObject.setUserName(si.getUserName()); |
| | |
| | | UserEntityInfo ue = new UserEntityInfo(); |
| | | ue.modules = log.getModelName(); |
| | | ue.userName = log.getUserId(); |
| | | WebThreadLocalUtil.getCurrentUserSessionInfoInThread().set(si); |
| | | WebThreadLocalUtil.setCurrentUserSessionInfoInThread(si); |
| | | if(log.isDebug()){ |
| | | log.setDescription(log.getDescription() + "," + log.getController() + "/" + log.getMethod()); |
| | | } |