日志
This commit is contained in:
parent
2861adee48
commit
4611d17caa
@ -69,7 +69,7 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
|
||||
StringBuilder sb = new StringBuilder();
|
||||
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
|
||||
for (StackTraceElement e : stackTrace) {
|
||||
if (e.getClassName().startsWith("com.zhgd.xmgl")) {
|
||||
if (e.getClassName().startsWith("com.zhgd")) {
|
||||
sb.append(e.getClassName());
|
||||
sb.append(".");
|
||||
sb.append(e.getMethodName());
|
||||
@ -113,13 +113,13 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
|
||||
if (EnvironmentUtil.getActiveEnvironment().equals("gsx-other-env-show-dev")) {
|
||||
//开发环境
|
||||
if (sct == SqlCommandType.SELECT) {
|
||||
log.debug("查询mapper方法: {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
log.debug("查询mapper方法:\r\n {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
} else if (sct == SqlCommandType.UPDATE) {
|
||||
log.debug("更新mapper方法: {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
log.debug("更新mapper方法:\r\n {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
} else if (sct == SqlCommandType.INSERT) {
|
||||
log.debug("插入mapper方法: {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
log.debug("插入mapper方法:\r\n {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
} else if (sct == SqlCommandType.DELETE) {
|
||||
log.debug("删除mapper方法: {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
log.debug("删除mapper方法:\r\n {} >>> {}#{}", getCallPositionForDev(), clazz.getName(), methodName);
|
||||
}
|
||||
} else {
|
||||
if (sct == SqlCommandType.SELECT) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user