Browse Source

mysql测试修正

miemie 7 years ago
parent
commit
2d8be33004

+ 1 - 1
mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/mysql/MysqlTestDataMapperTest.java

@@ -71,7 +71,7 @@ public class MysqlTestDataMapperTest {
     public void deleteByMap() {
         Map<String, Object> map = new HashMap<>();
         map.put("id", 2);
-        map.put("test_int", 5);
+        map.put("test_int", 2);
         Assert.assertEquals(0, commonMapper.deleteByMap(map));
         Assert.assertEquals(0, commonLogicMapper.deleteByMap(map));
         Assert.assertEquals(0, mysqlMapper.deleteByMap(map));

+ 3 - 3
mybatis-plus/src/test/resources/mysql/test_data.ddl.sql

@@ -26,9 +26,9 @@ CREATE TABLE common_logic_data (
 DEFAULT CHARSET = utf8;
 
 CREATE TABLE mysql_data (
-    id BIGINT primary key,
-    ` order ` integer,
-    ` group ` integer
+    id      BIGINT primary key,
+    `order` integer,
+    `group` integer
 )
     ENGINE = innodb
 DEFAULT CHARSET = utf8;