#
vincentlu
昨天 10492a922d3a8d295ada4ec99cc928031f3abd0e
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package com.zy.acs.manager.common;
 
 
import com.zy.acs.framework.generators.ReactGenerator;
import com.zy.acs.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/rcs_ctu_stable";
        generator.username="root";
        generator.password="xltys1995";
//        generator.url="47.97.1.152:51433;databasename=jkasrs";
//        generator.username="sa";priority
//        generator.password="Zoneyung@zy56$";
 
        generator.table="man_guarantee";
        generator.tableDesc="Guarantee";
        generator.packagePath="com.zy.acs.manager.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;
 */
 
}
/**
 *
  # dual
  TRUNCATE man_bus;
  TRUNCATE man_task;
  TRUNCATE man_travel;
  TRUNCATE man_segment;
  TRUNCATE man_jam;
  TRUNCATE man_action;
  TRUNCATE man_sta_reserve;
  TRUNCATE man_integration_record;
  TRUNCATE sys_operation_record;
  TRUNCATE man_veh_fault_rec;
 
  # log
  TRUNCATE man_bus_log;
  TRUNCATE man_jam_log;
  TRUNCATE man_lane;
  TRUNCATE man_segment_log;
  TRUNCATE man_sta_reserve_log;
  TRUNCATE man_task_log;
  TRUNCATE man_travel_log;
  TRUNCATE man_action_log;
 
  # init
  TRUNCATE man_code;
  TRUNCATE man_code_gap;
  TRUNCATE man_route;
  TRUNCATE man_func_sta;
  TRUNCATE man_loc;
  TRUNCATE man_sta;
  TRUNCATE man_nav_map;
  TRUNCATE man_agv;
  TRUNCATE man_agv_detail;
  TRUNCATE man_area;
  TRUNCATE man_area_agv;
  TRUNCATE man_guarantee;
 *
 */