├── .classpath ├── .idea ├── .name ├── compiler.xml ├── encodings.xml ├── inspectionProfiles │ └── Project_Default.xml ├── libraries │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ ├── Maven__com_fasterxml_classmate_1_3_4.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml │ ├── Maven__com_google_code_findbugs_jsr305_1_3_9.xml │ ├── Maven__com_google_errorprone_error_prone_annotations_2_0_18.xml │ ├── Maven__com_google_guava_guava_22_0.xml │ ├── Maven__com_google_j2objc_j2objc_annotations_1_1.xml │ ├── Maven__com_zaxxer_HikariCP_2_7_9.xml │ ├── Maven__commons_collections_commons_collections_3_2_1.xml │ ├── Maven__commons_configuration_commons_configuration_1_10.xml │ ├── Maven__commons_io_commons_io_2_5.xml │ ├── Maven__commons_lang_commons_lang_2_6.xml │ ├── Maven__commons_logging_commons_logging_1_1_1.xml │ ├── Maven__javax_annotation_javax_annotation_api_1_3_2.xml │ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml │ ├── Maven__mysql_mysql_connector_java_5_1_42.xml │ ├── Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml │ ├── Maven__org_apache_velocity_velocity_1_7.xml │ ├── Maven__org_codehaus_mojo_animal_sniffer_annotations_1_14.xml │ ├── Maven__org_hibernate_hibernate_validator_5_3_5_Final.xml │ ├── Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml │ ├── Maven__org_mybatis_generator_mybatis_generator_core_1_3_5.xml │ ├── Maven__org_mybatis_mybatis_3_4_1.xml │ ├── Maven__org_mybatis_mybatis_spring_1_3_2.xml │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_1_3_2.xml │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_1_3_2.xml │ ├── Maven__org_projectlombok_lombok_1_16_14.xml │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_25.xml │ ├── Maven__org_slf4j_slf4j_api_1_7_25.xml │ ├── Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_web_1_5_4_RELEASE.xml │ ├── Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_context_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_core_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_jdbc_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_tx_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_web_5_0_6_RELEASE.xml │ ├── Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml │ └── Maven__org_yaml_snakeyaml_1_19.xml ├── misc.xml ├── modules.xml ├── uiDesigner.xml └── workspace.xml ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.m2e.core.prefs └── org.eclipse.wst.common.project.facet.core.xml ├── CodeGenerator.iml ├── README.md ├── pom.xml ├── src └── main │ ├── java │ └── com │ │ └── demo │ │ └── shrek │ │ ├── CodeGenApplication.java │ │ ├── controller │ │ └── SysGeneratorController.java │ │ ├── dao │ │ └── SysGeneratorMapper.java │ │ ├── model │ │ └── test │ │ │ ├── ColumnEntity.java │ │ │ └── TableEntity.java │ │ ├── service │ │ ├── SysGeneratorService.java │ │ └── SysGeneratorServiceImpl.java │ │ └── util │ │ ├── DateUtils.java │ │ └── GeneratorUtils.java │ └── resources │ ├── application.yml │ ├── generator.properties │ ├── mapper │ └── SysGeneratorMapper.xml │ └── template │ ├── controller.java.vm │ ├── dao.java.vm │ ├── entity.java.vm │ ├── index.js.vm │ ├── index.vue.vm │ ├── mapper.xml.vm │ ├── service.java.vm │ └── serviceimpl.java.vm └── target ├── CodeGenerator-0.0.1-SNAPSHOT.jar ├── CodeGenerator-0.0.1-SNAPSHOT.jar.original ├── classes ├── BusMapper.xml ├── application.yml ├── com │ └── demo │ │ └── shrek │ │ ├── CodeGenApplication.class │ │ ├── controller │ │ └── SysGeneratorController.class │ │ ├── dao │ │ └── SysGeneratorMapper.class │ │ ├── model │ │ └── test │ │ │ ├── ColumnEntity.class │ │ │ └── TableEntity.class │ │ ├── service │ │ ├── SysGeneratorService.class │ │ └── SysGeneratorServiceImpl.class │ │ └── util │ │ ├── DateUtils.class │ │ └── GeneratorUtils.class ├── generator.properties ├── mapper │ └── SysGeneratorMapper.xml └── template │ ├── controller.java.vm │ ├── dao.java.vm │ ├── entity.java.vm │ ├── index.js.vm │ ├── index.vue.vm │ ├── mapper.xml.vm │ ├── service.java.vm │ └── serviceimpl.java.vm ├── maven-archiver └── pom.properties └── maven-status └── maven-compiler-plugin ├── compile └── default-compile │ ├── createdFiles.lst │ └── inputFiles.lst └── testCompile └── default-testCompile ├── createdFiles.lst └── inputFiles.lst /.classpath: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | CodeGenerator -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_0_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_guava_guava_22_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_zaxxer_HikariCP_2_7_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_collections_commons_collections_3_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_configuration_commons_configuration_1_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_io_commons_io_2_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__mysql_mysql_connector_java_5_1_42.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_31.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_31.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_31.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_velocity_velocity_1_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_hibernate_validator_5_3_5_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_generator_mybatis_generator_core_1_3_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_3_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_projectlombok_lombok_1_16_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_5_4_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jcl_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 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 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 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 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 256 | 257 | 258 | 259 | mapper 260 | MyMapper 261 | jdbc 262 | org.mybatis.spring.boot 263 | queryColumns 264 | scope 265 | comm 266 | pk 267 | delete 268 | com.demo.shrek.model.test 269 | org.mybatis.generator 270 | spring-boot-starter-web 271 | 272 | 273 | 274 | 276 | 277 | 280 | 281 | 282 | 321 | 322 | 323 | 324 | 325 | true 326 | DEFINITION_ORDER 327 | 328 | 329 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | CodeSpring CoreSpring 342 | 343 | 344 | Spring 345 | 346 | 347 | Spring CoreSpring 348 | 349 | 350 | 351 | 352 | SpringJavaAutowiringInspection 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 6 | select table_name tableName, engine, table_comment tableComment, create_time createTime from information_schema.tables 7 | where table_schema = (select database()) and table_name = #{tableName} 8 | 9 | 10 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/resources/template/controller.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.controller; 2 | 3 | import ${package}.service.${className}Service; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.PostMapping; 6 | import org.springframework.web.bind.annotation.PutMapping; 7 | import org.springframework.web.bind.annotation.DeleteMapping; 8 | import com.alibaba.fastjson.JSONObject; 9 | 10 | 11 | import org.springframework.web.bind.annotation.RestController; 12 | import org.springframework.web.bind.annotation.RequestMapping; 13 | import org.springframework.beans.factory.annotation.Autowired; 14 | import org.springframework.web.bind.annotation.RequestBody; 15 | import com.heeexy.example.util.CommonUtil; 16 | import javax.servlet.http.HttpServletRequest; 17 | 18 | @RestController 19 | @RequestMapping("${secondModuleName}") 20 | public class ${className}Controller { 21 | 22 | @Autowired 23 | private ${className}Service ${classname}Service; 24 | 25 | @PostMapping 26 | public JSONObject insert(@RequestBody JSONObject requestJson) { 27 | return ${classname}Service.insert(requestJson); 28 | } 29 | 30 | @PutMapping 31 | public JSONObject update(@RequestBody JSONObject requestJson) { 32 | return ${classname}Service.update(requestJson); 33 | } 34 | 35 | @DeleteMapping 36 | public JSONObject delete(HttpServletRequest request) { 37 | return ${classname}Service.delete(Long.valueOf(request.getParameter("id"))); 38 | } 39 | 40 | @GetMapping 41 | public JSONObject list(HttpServletRequest request) { 42 | JSONObject jsonObject=CommonUtil.request2Json(request); 43 | return ${classname}Service.list(jsonObject); 44 | } 45 | } -------------------------------------------------------------------------------- /src/main/resources/template/dao.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.dao; 2 | 3 | import com.alibaba.fastjson.JSONObject; 4 | import com.heeexy.example.util.CommonUtil; 5 | import java.util.List; 6 | /** 7 | * ${comments} 8 | * 9 | * @author ${author} 10 | * @email ${email} 11 | * @date ${datetime} 12 | */ 13 | 14 | public interface ${className}Dao { 15 | int update(JSONObject jsonObject); 16 | 17 | int insert(JSONObject jsonObject); 18 | 19 | List listByPage(JSONObject jsonObject); 20 | 21 | int delete (Long id); 22 | 23 | int count(JSONObject jsonObject); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/template/entity.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import javax.persistence.*; 6 | #if(${hasBigDecimal}) 7 | import java.math.BigDecimal; 8 | #end 9 | 10 | 11 | /** 12 | * ${comments} 13 | * 14 | * @author ${author} 15 | * @email ${email} 16 | * @date ${datetime} 17 | */ 18 | @Table(name = "${tableName}") 19 | public class ${className} implements Serializable { 20 | private static final long serialVersionUID = 1L; 21 | 22 | #foreach ($column in $columns) 23 | #if($column.columnName == $pk.columnName) 24 | //$column.comments 25 | @Id 26 | private $column.attrType $column.attrname; 27 | #else 28 | //$column.comments 29 | @Column(name = "$column.columnName") 30 | private $column.attrType $column.attrname; 31 | #end 32 | 33 | #end 34 | 35 | #foreach ($column in $columns) 36 | /** 37 | * 设置:${column.comments} 38 | */ 39 | public void set${column.attrName}($column.attrType $column.attrname) { 40 | this.$column.attrname = $column.attrname; 41 | } 42 | /** 43 | * 获取:${column.comments} 44 | */ 45 | public $column.attrType get${column.attrName}() { 46 | return $column.attrname; 47 | } 48 | #end 49 | } 50 | -------------------------------------------------------------------------------- /src/main/resources/template/index.js.vm: -------------------------------------------------------------------------------- 1 | import fetch from 'utils/fetch'; 2 | 3 | export function page(query) { 4 | return fetch({ 5 | url: '/${moduleName}/${secondModuleName}/page', 6 | method: 'get', 7 | params: query 8 | }); 9 | } 10 | 11 | export function addObj(obj) { 12 | return fetch({ 13 | url: '/api/${moduleName}', 14 | method: 'post', 15 | data: obj 16 | }); 17 | } 18 | 19 | export function getObj(id) { 20 | return fetch({ 21 | url: '/api/${moduleName}' + id, 22 | method: 'get' 23 | }) 24 | } 25 | 26 | export function delObj(id) { 27 | return fetch({ 28 | url: '/api/${moduleName}' + id, 29 | method: 'delete' 30 | }) 31 | } 32 | 33 | export function putObj(id, obj) { 34 | return fetch({ 35 | url: '/api/${moduleName}' + id, 36 | method: 'put', 37 | data: obj 38 | }) 39 | } 40 | -------------------------------------------------------------------------------- /src/main/resources/template/index.vue.vm: -------------------------------------------------------------------------------- 1 | 49 | 50 | 199 | -------------------------------------------------------------------------------- /src/main/resources/template/mapper.xml.vm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | 24 | 25 | 26 | INSERT INTO ${tableName} ( 27 | #foreach($column in $columns)#if(${column.columnName}!='id')${column.columnName}#if($foreach.hasNext),#end #end 28 | #end 29 | ) 30 | VALUES 31 | ( 32 | #foreach($column in $columns)#if(${column.columnName}!='id') 33 | #{${column.attrname}}#if($foreach.hasNext),#end #end 34 | #end 35 | ); 36 | 37 | 38 | 39 | UPDATE ${tableName} 40 | SET 41 | #foreach($column in $columns) #if(${column.columnName}!='id') ${column.columnName}=#{${column.attrname}}#if($foreach.hasNext),#end 42 | #end #end 43 | WHERE 44 | id = #{id}; 45 | 46 | 47 | 48 | 49 | update 50 | ${tableName} set delete_status=2 51 | where 52 | id = #{id} 53 | 54 | -------------------------------------------------------------------------------- /src/main/resources/template/service.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.service; 2 | 3 | 4 | import com.alibaba.fastjson.JSONObject; 5 | import java.util.List; 6 | 7 | /** 8 | * ${comments} 9 | * 10 | * @author ${author} 11 | * @email ${email} 12 | * @date ${datetime} 13 | */ 14 | public interface ${className}Service { 15 | JSONObject update(JSONObject jsonObject); 16 | 17 | JSONObject insert(JSONObject jsonObject); 18 | 19 | JSONObject list(JSONObject jsonObject); 20 | 21 | JSONObject delete (Long id); 22 | } -------------------------------------------------------------------------------- /src/main/resources/template/serviceimpl.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.service.impl; 2 | 3 | 4 | import ${package}.dao.mysql.${className}Dao; 5 | import com.alibaba.fastjson.JSONObject; 6 | import ${package}.service.${className}Service; 7 | import com.heeexy.example.util.CommonUtil; 8 | import java.util.List; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | /** 13 | * ${comments} 14 | * 15 | * @author ${author} 16 | * @email ${email} 17 | * @date ${datetime} 18 | */ 19 | @Service 20 | public class ${className}ServiceImpl implements ${className}Service { 21 | 22 | @Autowired 23 | private ${className}Dao ${classname}Dao; 24 | 25 | @Override 26 | public JSONObject update(JSONObject jsonObject){ 27 | ${classname}Dao.update(jsonObject); 28 | return CommonUtil.successJson(); 29 | } 30 | 31 | @Override 32 | public JSONObject insert(JSONObject jsonObject){ 33 | ${classname}Dao.insert(jsonObject); 34 | return CommonUtil.successJson(); 35 | } 36 | 37 | @Override 38 | public JSONObject list(JSONObject jsonObject){ 39 | CommonUtil.fillPageParam(jsonObject); 40 | int count = ${classname}Dao.count(jsonObject); 41 | List list = ${classname}Dao.listByPage(jsonObject); 42 | return CommonUtil.successPage(jsonObject, list, count); 43 | } 44 | 45 | @Override 46 | public JSONObject delete (Long id){ 47 | ${classname}Dao.delete(id); 48 | return CommonUtil.successJson(); 49 | } 50 | } -------------------------------------------------------------------------------- /target/CodeGenerator-0.0.1-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/CodeGenerator-0.0.1-SNAPSHOT.jar -------------------------------------------------------------------------------- /target/CodeGenerator-0.0.1-SNAPSHOT.jar.original: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/CodeGenerator-0.0.1-SNAPSHOT.jar.original -------------------------------------------------------------------------------- /target/classes/BusMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /target/classes/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8763 3 | 4 | spring: 5 | datasource: 6 | driver-class-name: com.mysql.jdbc.Driver 7 | username: root 8 | password: admin 9 | url: jdbc:mysql://192.168.197.15:3306/newdatadev?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true& 10 | 11 | mybatis: 12 | mapperLocations: classpath:/mapper/*.xml -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/CodeGenApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/CodeGenApplication.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/controller/SysGeneratorController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/controller/SysGeneratorController.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/dao/SysGeneratorMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/dao/SysGeneratorMapper.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/model/test/ColumnEntity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/model/test/ColumnEntity.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/model/test/TableEntity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/model/test/TableEntity.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/service/SysGeneratorService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/service/SysGeneratorService.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/service/SysGeneratorServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/service/SysGeneratorServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/util/DateUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/util/DateUtils.class -------------------------------------------------------------------------------- /target/classes/com/demo/shrek/util/GeneratorUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wushu0725/codegen/2b2e61cd0133448faca54f2aec261fd13d195733/target/classes/com/demo/shrek/util/GeneratorUtils.class -------------------------------------------------------------------------------- /target/classes/generator.properties: -------------------------------------------------------------------------------- 1 | #代码生成器,配置信息 2 | 3 | #包名 4 | package=com.heeexy.example 5 | #作者 6 | author=Wushu 7 | #Email 8 | email=156810150@qq.com 9 | #表前错误的Unicode字符串! 10 | tablePrefix=gate_ 11 | #前端模块前缀 12 | mainModule=auth 13 | 14 | #类型转换,配置信息 15 | tinyint=Integer 16 | smallint=Integer 17 | mediumint=Integer 18 | int=Integer 19 | integer=Integer 20 | bigint=Long 21 | float=Float 22 | double=Double 23 | decimal=BigDecimal 24 | bit=Boolean 25 | 26 | char=String 27 | varchar=String 28 | tinytext=String 29 | text=String 30 | mediumtext=String 31 | longtext=String 32 | 33 | date=Date 34 | datetime=Date 35 | timestamp=Date -------------------------------------------------------------------------------- /target/classes/mapper/SysGeneratorMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | -------------------------------------------------------------------------------- /target/classes/template/controller.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.controller; 2 | 3 | import ${package}.service.${className}Service; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.PostMapping; 6 | import org.springframework.web.bind.annotation.PutMapping; 7 | import org.springframework.web.bind.annotation.DeleteMapping; 8 | import com.alibaba.fastjson.JSONObject; 9 | 10 | 11 | import org.springframework.web.bind.annotation.RestController; 12 | import org.springframework.web.bind.annotation.RequestMapping; 13 | import org.springframework.beans.factory.annotation.Autowired; 14 | import org.springframework.web.bind.annotation.RequestBody; 15 | import com.heeexy.example.util.CommonUtil; 16 | import javax.servlet.http.HttpServletRequest; 17 | 18 | @RestController 19 | @RequestMapping("${secondModuleName}") 20 | public class ${className}Controller { 21 | 22 | @Autowired 23 | private ${className}Service ${classname}Service; 24 | 25 | @PostMapping 26 | public JSONObject insert(@RequestBody JSONObject requestJson) { 27 | return ${classname}Service.insert(requestJson); 28 | } 29 | 30 | @PutMapping 31 | public JSONObject update(@RequestBody JSONObject requestJson) { 32 | return ${classname}Service.update(requestJson); 33 | } 34 | 35 | @DeleteMapping 36 | public JSONObject delete(HttpServletRequest request) { 37 | return ${classname}Service.delete(Long.valueOf(request.getParameter("id"))); 38 | } 39 | 40 | @GetMapping 41 | public JSONObject list(HttpServletRequest request) { 42 | JSONObject jsonObject=CommonUtil.request2Json(request); 43 | return ${classname}Service.list(jsonObject); 44 | } 45 | } -------------------------------------------------------------------------------- /target/classes/template/dao.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.dao; 2 | 3 | import com.alibaba.fastjson.JSONObject; 4 | import com.heeexy.example.util.CommonUtil; 5 | import java.util.List; 6 | /** 7 | * ${comments} 8 | * 9 | * @author ${author} 10 | * @email ${email} 11 | * @date ${datetime} 12 | */ 13 | 14 | public interface ${className}Dao { 15 | int update(JSONObject jsonObject); 16 | 17 | int insert(JSONObject jsonObject); 18 | 19 | List listByPage(JSONObject jsonObject); 20 | 21 | int delete (Long id); 22 | 23 | int count(JSONObject jsonObject); 24 | } 25 | -------------------------------------------------------------------------------- /target/classes/template/entity.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import javax.persistence.*; 6 | #if(${hasBigDecimal}) 7 | import java.math.BigDecimal; 8 | #end 9 | 10 | 11 | /** 12 | * ${comments} 13 | * 14 | * @author ${author} 15 | * @email ${email} 16 | * @date ${datetime} 17 | */ 18 | @Table(name = "${tableName}") 19 | public class ${className} implements Serializable { 20 | private static final long serialVersionUID = 1L; 21 | 22 | #foreach ($column in $columns) 23 | #if($column.columnName == $pk.columnName) 24 | //$column.comments 25 | @Id 26 | private $column.attrType $column.attrname; 27 | #else 28 | //$column.comments 29 | @Column(name = "$column.columnName") 30 | private $column.attrType $column.attrname; 31 | #end 32 | 33 | #end 34 | 35 | #foreach ($column in $columns) 36 | /** 37 | * 设置:${column.comments} 38 | */ 39 | public void set${column.attrName}($column.attrType $column.attrname) { 40 | this.$column.attrname = $column.attrname; 41 | } 42 | /** 43 | * 获取:${column.comments} 44 | */ 45 | public $column.attrType get${column.attrName}() { 46 | return $column.attrname; 47 | } 48 | #end 49 | } 50 | -------------------------------------------------------------------------------- /target/classes/template/index.js.vm: -------------------------------------------------------------------------------- 1 | import fetch from 'utils/fetch'; 2 | 3 | export function page(query) { 4 | return fetch({ 5 | url: '/${moduleName}/${secondModuleName}/page', 6 | method: 'get', 7 | params: query 8 | }); 9 | } 10 | 11 | export function addObj(obj) { 12 | return fetch({ 13 | url: '/api/${moduleName}', 14 | method: 'post', 15 | data: obj 16 | }); 17 | } 18 | 19 | export function getObj(id) { 20 | return fetch({ 21 | url: '/api/${moduleName}' + id, 22 | method: 'get' 23 | }) 24 | } 25 | 26 | export function delObj(id) { 27 | return fetch({ 28 | url: '/api/${moduleName}' + id, 29 | method: 'delete' 30 | }) 31 | } 32 | 33 | export function putObj(id, obj) { 34 | return fetch({ 35 | url: '/api/${moduleName}' + id, 36 | method: 'put', 37 | data: obj 38 | }) 39 | } 40 | -------------------------------------------------------------------------------- /target/classes/template/index.vue.vm: -------------------------------------------------------------------------------- 1 | 49 | 50 | 199 | -------------------------------------------------------------------------------- /target/classes/template/mapper.xml.vm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | 24 | 25 | 26 | INSERT INTO ${tableName} ( 27 | #foreach($column in $columns)#if(${column.columnName}!='id')${column.columnName}#if($foreach.hasNext),#end #end 28 | #end 29 | ) 30 | VALUES 31 | ( 32 | #foreach($column in $columns)#if(${column.columnName}!='id') 33 | #{${column.attrname}}#if($foreach.hasNext),#end #end 34 | #end 35 | ); 36 | 37 | 38 | 39 | UPDATE ${tableName} 40 | SET 41 | #foreach($column in $columns) #if(${column.columnName}!='id') ${column.columnName}=#{${column.attrname}}#if($foreach.hasNext),#end 42 | #end #end 43 | WHERE 44 | id = #{id}; 45 | 46 | 47 | 48 | 49 | update 50 | ${tableName} set delete_status=2 51 | where 52 | id = #{id} 53 | 54 | -------------------------------------------------------------------------------- /target/classes/template/service.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.service; 2 | 3 | 4 | import com.alibaba.fastjson.JSONObject; 5 | import java.util.List; 6 | 7 | /** 8 | * ${comments} 9 | * 10 | * @author ${author} 11 | * @email ${email} 12 | * @date ${datetime} 13 | */ 14 | public interface ${className}Service { 15 | JSONObject update(JSONObject jsonObject); 16 | 17 | JSONObject insert(JSONObject jsonObject); 18 | 19 | JSONObject list(JSONObject jsonObject); 20 | 21 | JSONObject delete (Long id); 22 | } -------------------------------------------------------------------------------- /target/classes/template/serviceimpl.java.vm: -------------------------------------------------------------------------------- 1 | package ${package}.service.impl; 2 | 3 | 4 | import ${package}.dao.mysql.${className}Dao; 5 | import com.alibaba.fastjson.JSONObject; 6 | import ${package}.service.${className}Service; 7 | import com.heeexy.example.util.CommonUtil; 8 | import java.util.List; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | /** 13 | * ${comments} 14 | * 15 | * @author ${author} 16 | * @email ${email} 17 | * @date ${datetime} 18 | */ 19 | @Service 20 | public class ${className}ServiceImpl implements ${className}Service { 21 | 22 | @Autowired 23 | private ${className}Dao ${classname}Dao; 24 | 25 | @Override 26 | public JSONObject update(JSONObject jsonObject){ 27 | ${classname}Dao.update(jsonObject); 28 | return CommonUtil.successJson(); 29 | } 30 | 31 | @Override 32 | public JSONObject insert(JSONObject jsonObject){ 33 | ${classname}Dao.insert(jsonObject); 34 | return CommonUtil.successJson(); 35 | } 36 | 37 | @Override 38 | public JSONObject list(JSONObject jsonObject){ 39 | CommonUtil.fillPageParam(jsonObject); 40 | int count = ${classname}Dao.count(jsonObject); 41 | List list = ${classname}Dao.listByPage(jsonObject); 42 | return CommonUtil.successPage(jsonObject, list, count); 43 | } 44 | 45 | @Override 46 | public JSONObject delete (Long id){ 47 | ${classname}Dao.delete(id); 48 | return CommonUtil.successJson(); 49 | } 50 | } -------------------------------------------------------------------------------- /target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Created by Apache Maven 3.5.4 2 | version=0.0.1-SNAPSHOT 3 | groupId=com.codegen 4 | artifactId=CodeGenerator 5 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com\bigsea\sns\model\test\TableEntity.class 2 | com\bigsea\sns\web\controller\test\DemoController.class 3 | com\bigsea\sns\controller\SysGeneratorController.class 4 | com\bigsea\sns\util\GeneratorUtils.class 5 | com\bigsea\sns\util\DateUtils.class 6 | com\bigsea\sns\model\test\GenConfig.class 7 | com\bigsea\sns\service\SysGeneratorService.class 8 | com\bigsea\sns\CodeGenApplication.class 9 | com\bigsea\sns\service\AbstractService.class 10 | com\bigsea\sns\model\test\ColumnEntity.class 11 | com\bigsea\sns\service\Service.class 12 | com\bigsea\sns\model\test\Demo.class 13 | com\bigsea\sns\dao\mapper\test\BusMapper.class 14 | com\bigsea\sns\dao\SysGeneratorMapper.class 15 | com\bigsea\sns\dao\mapper\test\DemoMapper.class 16 | com\bigsea\sns\model\test\Bus.class 17 | com\bigsea\sns\service\impl\test\DemoServiceImpl.class 18 | com\bigsea\sns\service\SysGeneratorServiceImpl.class 19 | com\bigsea\sns\service\test\DemoService.class 20 | com\bigsea\sns\dao\MyMapper.class 21 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\dao\MyMapper.java 2 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\model\test\ColumnEntity.java 3 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\model\test\GenConfig.java 4 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\controller\SysGeneratorController.java 5 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\SysGeneratorService.java 6 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\impl\test\DemoServiceImpl.java 7 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\test\DemoService.java 8 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\util\GeneratorUtils.java 9 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\CodeGenApplication.java 10 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\dao\SysGeneratorMapper.java 11 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\web\controller\test\DemoController.java 12 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\model\test\Demo.java 13 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\util\DateUtils.java 14 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\model\test\TableEntity.java 15 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\SysGeneratorServiceImpl.java 16 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\dao\mapper\test\DemoMapper.java 17 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\AbstractService.java 18 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\service\Service.java 19 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\dao\mapper\test\BusMapper.java 20 | D:\code\CodeGenerator-master\src\main\java\com\bigsea\sns\model\test\Bus.java 21 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com\codegen\util\StringUtils.class 2 | com\codegen\main\CodeGeneratorMain.class 3 | com\codegen\service\CodeGeneratorManager.class 4 | com\codegen\service\impl\ControllerGenerator.class 5 | com\codegen\service\impl\ModelAndMapperGenerator.class 6 | com\codegen\service\CodeGeneratorConfig.class 7 | com\codegen\service\CodeGenerator.class 8 | com\codegen\service\impl\ServiceGenerator.class 9 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\impl\ModelAndMapperGenerator.java 2 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\impl\ServiceGenerator.java 3 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\CodeGeneratorManager.java 4 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\impl\ControllerGenerator.java 5 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\CodeGeneratorConfig.java 6 | D:\code\CodeGenerator-master\src\test\java\com\codegen\service\CodeGenerator.java 7 | D:\code\CodeGenerator-master\src\test\java\com\codegen\main\CodeGeneratorMain.java 8 | D:\code\CodeGenerator-master\src\test\java\com\codegen\util\StringUtils.java 9 | --------------------------------------------------------------------------------