From 5135b12ce37efc54a25c6ed6f37fff0057e669bd Mon Sep 17 00:00:00 2001 From: qi Date: Fri, 3 Apr 2020 03:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=8A=B6=E6=80=81=E5=BF=83=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mybatis/mapping/SysLogDao.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mybatis/mapping/SysLogDao.xml b/src/main/resources/mybatis/mapping/SysLogDao.xml index 08a17ec..65d1394 100644 --- a/src/main/resources/mybatis/mapping/SysLogDao.xml +++ b/src/main/resources/mybatis/mapping/SysLogDao.xml @@ -38,14 +38,15 @@ SELECT LAST_INSERT_ID() INSERT INTO - sys_log(CREATE_TIME,USER_IP,URL) + sys_log(CREATE_TIME,USER_IP,URL,STATUS) VALUES ( #{createTime},#{userIp},#{url},#{status} + ) - UPDATE sys_log SET CREATE_TIME=#{createTime},USER_IP=#{userIp},URL=#{url} name= WHERE id=#{id} + UPDATE sys_log SET CREATE_TIME=#{createTime},USER_IP=#{userIp},URL=#{url},STATUS=#{status} WHERE id=#{id}