From 0928200f9ca991957f129cc9c1a77c025f4186d0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 14 May 2020 17:31:14 +0800
Subject: [PATCH] add sql log and mybatis interceptor

---
 src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
index 5756df4..bc04524 100644
--- a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
+++ b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
@@ -2,6 +2,7 @@
 
 import com.xcong.excoin.modules.test.dao.TestUserDao;
 import com.xcong.excoin.modules.test.entity.TestUserEntity;
+import com.xcong.excoin.modules.test.service.TestUserService;
 import org.junit.jupiter.api.Test;
 import org.springframework.boot.test.context.SpringBootTest;
 
@@ -30,18 +31,20 @@
 
     }
 
+    @Resource
+    TestUserService testUserService;
+
     @Test
     public void mybatisInterceptorTest() {
         TestUserEntity testUser = new TestUserEntity();
-        testUser.setCreateBy("123");
-        testUser.setCreateTime(new Date());
-        testUser.setUpdateBy("123");
-        testUser.setUpdateTime(new Date());
+        testUser.setId(3L);
         testUser.setAccount("123333345");
         testUser.setName("hehe111");
         testUser.setPassword("33333");
 
-        testUserDao.insert(testUser);
+        testUserDao.updateById(testUser);
+
     }
 
+
 }

--
Gitblit v1.9.1