#
vincentlu
2025-02-07 019e73c5ea3b6dc8875a9ebc6cfdc6aa6f923dc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.vincent.rsf.server.common;
 
 
import com.vincent.rsf.framework.generators.ReactGenerator;
import com.vincent.rsf.framework.generators.constant.SqlOsType;
 
/**
 * Created by vincent on 2019-06-04
 */
public class CodeBuilder {
 
    public static void main(String[] args) throws Exception {
        ReactGenerator generator = new ReactGenerator();
        generator.backendPrefixPath = "zy-acs-manager/";
        generator.frontendPrefixPath = "zy-acs-flow/";
 
        generator.sqlOsType = SqlOsType.MYSQL;
        generator.url="localhost:3306/react_admin_dev";
        generator.username="root";
        generator.password="xltys1995";
//        generator.url="47.97.1.152:51433;databasename=jkasrs";
//        generator.username="sa";
//        generator.password="Zoneyung@zy56$";
 
        generator.table="man_map";
        generator.tableDesc="Map";
        generator.packagePath="com.vincent.rsf.server.manager";
 
        generator.build();
    }
/*
 CREATE TABLE `man_tablename` (
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
 `uuid` VARCHAR(255) DEFAULT NULL COMMENT '标识',
 `name` VARCHAR(255) DEFAULT NULL COMMENT '名称(*)',
 `status` INT(1) NOT NULL DEFAULT '1' COMMENT '状态{1:正常,0:冻结}',
 `deleted` INT(1) NOT NULL DEFAULT '0' COMMENT '是否删除{1:是,0:否}',
 `tenant_id` INT(11) DEFAULT NULL COMMENT '租户[sys_tenant]',
 `create_by` BIGINT(20) DEFAULT NULL COMMENT '添加人员[sys_user]',
 `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
 `update_by` BIGINT(20) DEFAULT NULL COMMENT '修改人员[sys_user]',
 `update_time` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
 `memo` VARCHAR(255) DEFAULT NULL COMMENT '备注',
 PRIMARY KEY (`id`)
 ) ENGINE=INNODB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
 */
 
}
/**
 *
 * TRUNCATE man_bus;
 * TRUNCATE man_task;
 * TRUNCATE man_travel;
 * TRUNCATE man_segment;
 * TRUNCATE man_jam;
 * TRUNCATE man_action;
 *
 * TRUNCATE man_code;
 * TRUNCATE man_code_gap;
 * TRUNCATE man_route;
 *
 * TRUNCATE man_func_sta;
 * TRUNCATE man_loc;
 * TRUNCATE man_sta;
 * TRUNCATE man_nav_map;
 *
 */