java110
2022-03-01 4ba3f994d013286f20285249fede34c8a6438c91
java110-generator/src/main/java/com/java110/code/TableToJsonWeb.java
@@ -7,19 +7,19 @@
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 `s_store` (\n" +
            "  `store_id` varchar(30) NOT NULL COMMENT '商店ID',\n" +
            "  `name` varchar(100) NOT NULL COMMENT '名称',\n" +
            "  `address` varchar(200) NOT NULL COMMENT '地址',\n" +
            "  `tel` varchar(11) NOT NULL COMMENT '电话',\n" +
            "  `nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标',\n" +
            ")";
    public static void main(String[] args) {
        String templateName = "镜像"; //业务名称
        String templateCode = "businessImages"; //表名大写
        String templateKey = "id"; //表主键
        String templateName = "物业公司"; //业务名称
        String templateCode = "propertyCompany"; //表名大写
        String templateKey = "storeId"; //表主键
        String templateKeyName = "编号";//主键说明
        String searchCode = "id"; //分片字段
        String searchCode = "storeId"; //分片字段
        String searchName = "编号"; //分片字段说明
        String directories = "admin"; //前端生成到那个目录下
        // templateName 业务名称 业务编码名称生成后文件名 templateCode 主键 templateKey