!158 修复demo模块字段类型错误问题

Merge pull request !158 from KonBAI/demo_field_type
This commit is contained in:
疯狂的狮子Li 2022-03-18 12:53:26 +00:00 committed by Gitee
commit cd33cd66ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 10 additions and 10 deletions

View File

@ -45,7 +45,7 @@ public class TestBatchController extends BaseController {
List<TestDemo> list = new ArrayList<>();
for (int i = 0; i < 1000; i++) {
TestDemo testDemo = new TestDemo();
testDemo.setOrderNum(-1L);
testDemo.setOrderNum(-1);
testDemo.setTestKey("批量新增");
testDemo.setValue("测试新增");
list.add(testDemo);
@ -65,7 +65,7 @@ public class TestBatchController extends BaseController {
List<TestDemo> list = new ArrayList<>();
for (int i = 0; i < 1000; i++) {
TestDemo testDemo = new TestDemo();
testDemo.setOrderNum(-1L);
testDemo.setOrderNum(-1);
testDemo.setTestKey("批量新增");
testDemo.setValue("测试新增");
list.add(testDemo); }

View File

@ -39,7 +39,7 @@ public class TestDemo extends BaseEntity {
* 排序号
*/
@OrderBy(asc = false, sort = 1)
private Long orderNum;
private Integer orderNum;
/**
* key键

View File

@ -1,9 +1,9 @@
DROP TABLE if EXISTS test_demo;
CREATE TABLE test_demo
(
id int(0) NOT NULL COMMENT '主键',
dept_id int(0) NULL DEFAULT NULL COMMENT '部门id',
user_id int(0) NULL DEFAULT NULL COMMENT '用户id',
id bigint(20) NOT NULL COMMENT '主键',
dept_id bigint(20) NULL DEFAULT NULL COMMENT '部门id',
user_id bigint(20) NULL DEFAULT NULL COMMENT '用户id',
order_num int(0) NULL DEFAULT 0 COMMENT '排序号',
test_key varchar(255) NULL DEFAULT NULL COMMENT 'key键',
value varchar(255) NULL DEFAULT NULL COMMENT '',
@ -19,10 +19,10 @@ CREATE TABLE test_demo
DROP TABLE if EXISTS test_tree;
CREATE TABLE test_tree
(
id int(0) NOT NULL COMMENT '主键',
parent_id int(0) NULL DEFAULT 0 COMMENT '父id',
dept_id int(0) NULL DEFAULT NULL COMMENT '部门id',
user_id int(0) NULL DEFAULT NULL COMMENT '用户id',
id bigint(20) NOT NULL COMMENT '主键',
parent_id bigint(20) NULL DEFAULT 0 COMMENT '父id',
dept_id bigint(20) NULL DEFAULT NULL COMMENT '部门id',
user_id bigint(20) NULL DEFAULT NULL COMMENT '用户id',
tree_name varchar(255) NULL DEFAULT NULL COMMENT '',
version int(0) NULL DEFAULT 0 COMMENT '版本',
create_time datetime(0) NULL DEFAULT NULL COMMENT '创建时间',