| | |
| | | public class TableToJsonWeb { |
| | | |
| | | //show create table c_orders 用这个语句获取 |
| | | public static final String createTableSql = "CREATE TABLE business_dockerfile(\n" + |
| | | " `id` varchar(64) NOT NULL comment '编号',\n" + |
| | | " `name` varchar(64) NOT NULL comment '名称',\n" + |
| | | " `dockerfile` varchar(10000) NOT NULL comment '内容'\n" + |
| | | ")"; |
| | | public static final String createTableSql = "CREATE TABLE `fee_combo` (\n" + |
| | | " `combo_id` varchar(30) NOT NULL COMMENT '套餐ID',\n" + |
| | | " `combo_name` varchar(30) NOT NULL COMMENT '套餐名称',\n" + |
| | | " `community_id` varchar(30) NOT NULL COMMENT '小区ID'\n" + |
| | | ") ENGINE=InnoDB DEFAULT CHARSET=utf8;"; |
| | | public static void main(String[] args) { |
| | | String templateName = "mydockerfile"; //业务名称 |
| | | String templateCode = "businessDockerfile"; //表名大写 |
| | | String templateKey = "id"; //表主键 |
| | | String templateName = "费用套餐"; //业务名称 |
| | | String templateCode = "feeCombo"; //表名大写 |
| | | String templateKey = "comboId"; //表主键 |
| | | String templateKeyName = "编号";//主键说明 |
| | | String searchCode = "id"; //分片字段 |
| | | String searchCode = "comboId"; //分片字段 |
| | | String searchName = "编号"; //分片字段说明 |
| | | String directories = "admin"; //前端生成到那个目录下 |
| | | String directories = "property"; //前端生成到那个目录下 |
| | | // templateName 业务名称 业务编码名称生成后文件名 templateCode 主键 templateKey |
| | | // 业务主键名称 templateKeyName=templateName+ID 主机驼峰 searchCode 主键名称 searchName |
| | | // directories 放在前端那个目录下 |