From 60ead7edca85452a4ca55faa15a0447abf3f09bb Mon Sep 17 00:00:00 2001 From: lbw Date: Tue, 8 Nov 2022 18:05:28 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactoring=20code.=20close=20#I5ZZ?= =?UTF-8?q?CF=20=E6=97=A5=E5=BF=97=E6=A8=A1=E5=9D=97=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=AF=B7=E6=B1=82=E5=85=B6=E4=BD=99=E4=BB=BB?= =?UTF-8?q?=E4=BD=95=E8=AF=B7=E6=B1=82mybatis=E8=87=AA=E5=8A=A8=E5=A1=AB?= =?UTF-8?q?=E5=85=85=E7=9A=84username=E9=83=BD=E4=B8=BAanonymousUser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/pig4cloud/pig/common/log/util/SysLogUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/util/SysLogUtils.java b/pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/util/SysLogUtils.java index 7aa7cae2..4d980646 100755 --- a/pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/util/SysLogUtils.java +++ b/pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/util/SysLogUtils.java @@ -54,6 +54,8 @@ public class SysLogUtils { sysLog.setMethod(request.getMethod()); sysLog.setUserAgent(request.getHeader(HttpHeaders.USER_AGENT)); sysLog.setParams(HttpUtil.toParams(request.getParameterMap())); + sysLog.setCreateBy(getUsername()); + sysLog.setUpdateBy(getUsername()); return sysLog; }