| | |
| | | public class TableToJsonWeb { |
| | | |
| | | //show create table c_orders 用这个语句获取 |
| | | public static final String createTableSql = "CREATE TABLE business_images(\n" + |
| | | " `id` varchar(64) PRIMARY KEY NOT NULL comment '编号',\n" + |
| | | " `name` varchar(64) NOT NULL comment '镜像名称',\n" + |
| | | " images_type varchar(12) not null comment '镜像类型',\n" + |
| | | " type_url varchar(512) not null comment '镜像url',\n" + |
| | | " images_flag varchar(12) not null comment '镜像标识'\n" + |
| | | ")"; |
| | | public static final String createTableSql = "CREATE TABLE waf_ip_black_white(\n" + |
| | | " id varchar(64) not null COMMENT '编号',\n" + |
| | | " type_cd varchar(64) not null COMMENT '类型',\n" + |
| | | " ip varchar(64) not null COMMENT 'IP'\n" + |
| | | ");"; |
| | | public static void main(String[] args) { |
| | | String templateName = "镜像"; //业务名称 |
| | | String templateCode = "businessImages"; //表名大写 |
| | | String templateName = "黑白名单"; //业务名称 |
| | | String templateCode = "wafIpBlackWhite"; //表名大写 |
| | | String templateKey = "id"; //表主键 |
| | | String templateKeyName = "编号";//主键说明 |
| | | String searchCode = "id"; //分片字段 |