"src/main/java/git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "b08d349b45605e464c83ae7ca748355a35297f10"
Commit 5168a11b authored by 季圣华's avatar 季圣华
Browse files

优化日志模块

parent b6f79820
...@@ -121,7 +121,8 @@ public class UserService { ...@@ -121,7 +121,8 @@ public class UserService {
int result=0; int result=0;
try{ try{
result=userMapper.insertSelective(user); result=userMapper.insertSelective(user);
logService.insertLog("用户", BusinessConstants.LOG_OPERATION_TYPE_ADD, request); logService.insertLog("用户",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(user.getLoginName()).toString(), request);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
} }
...@@ -144,7 +145,7 @@ public class UserService { ...@@ -144,7 +145,7 @@ public class UserService {
try{ try{
result=userMapper.updateByPrimaryKeySelective(user); result=userMapper.updateByPrimaryKeySelective(user);
logService.insertLog("用户", logService.insertLog("用户",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(id).toString(), request); new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(user.getLoginName()).toString(), request);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
} }
......
...@@ -86,8 +86,7 @@ public class UserBusinessService { ...@@ -86,8 +86,7 @@ public class UserBusinessService {
int result=0; int result=0;
try{ try{
result=userBusinessMapper.updateByPrimaryKeySelective(userBusiness); result=userBusinessMapper.updateByPrimaryKeySelective(userBusiness);
logService.insertLog("关联关系", logService.insertLog("关联关系", BusinessConstants.LOG_OPERATION_TYPE_EDIT, request);
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(id).toString(), request);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment