| | |
| | | public class TableToJsonWeb { |
| | | |
| | | //show create table c_orders 用这个语句获取 |
| | | public static final String createTableSql = "CREATE TABLE `inspection_item` (\n" + |
| | | " `item_id` varchar(30) NOT NULL COMMENT '主键ID',\n" + |
| | | " `item_name` varchar(256) NOT NULL COMMENT '巡检项目',\n" + |
| | | " `community_id` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '小区ID',\n" + |
| | | " `remark` varchar(512) DEFAULT 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 = "巡检项目"; //业务名称 |
| | | String templateCode = "inspectionItem"; //表名大写 |
| | | String templateKey = "itemId"; //表主键 |
| | | String templateName = "费用套餐"; //业务名称 |
| | | String templateCode = "feeCombo"; //表名大写 |
| | | String templateKey = "comboId"; //表主键 |
| | | String templateKeyName = "编号";//主键说明 |
| | | String searchCode = "itemId"; //分片字段 |
| | | String searchCode = "comboId"; //分片字段 |
| | | String searchName = "编号"; //分片字段说明 |
| | | String directories = "property"; //前端生成到那个目录下 |
| | | // templateName 业务名称 业务编码名称生成后文件名 templateCode 主键 templateKey |