├── .idea
├── .name
├── compiler.xml
├── encodings.xml
├── libraries
│ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml
│ ├── Maven__com_alibaba_druid_1_1_10.xml
│ ├── Maven__com_alibaba_druid_spring_boot_starter_1_1_10.xml
│ ├── Maven__com_fasterxml_classmate_1_5_1.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_1.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_10_1.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_10_1.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_1.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_1.xml
│ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_1.xml
│ ├── Maven__com_google_guava_guava_18_0.xml
│ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml
│ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
│ ├── Maven__com_zaxxer_HikariCP_3_4_1.xml
│ ├── Maven__commons_beanutils_commons_beanutils_1_8_0.xml
│ ├── Maven__commons_collections_commons_collections_3_2_1.xml
│ ├── Maven__commons_lang_commons_lang_2_5.xml
│ ├── Maven__commons_logging_commons_logging_1_1_1.xml
│ ├── Maven__io_springfox_springfox_core_2_7_0.xml
│ ├── Maven__io_springfox_springfox_schema_2_7_0.xml
│ ├── Maven__io_springfox_springfox_spi_2_7_0.xml
│ ├── Maven__io_springfox_springfox_spring_web_2_7_0.xml
│ ├── Maven__io_springfox_springfox_swagger2_2_7_0.xml
│ ├── Maven__io_springfox_springfox_swagger_common_2_7_0.xml
│ ├── Maven__io_springfox_springfox_swagger_ui_2_7_0.xml
│ ├── Maven__io_swagger_swagger_annotations_1_5_13.xml
│ ├── Maven__io_swagger_swagger_models_1_5_13.xml
│ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
│ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml
│ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml
│ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
│ ├── Maven__mysql_mysql_connector_java_5_1_28.xml
│ ├── Maven__net_bytebuddy_byte_buddy_1_10_4.xml
│ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_4.xml
│ ├── Maven__net_minidev_accessors_smart_1_2.xml
│ ├── Maven__net_minidev_json_smart_2_3.xml
│ ├── Maven__net_sf_ezmorph_ezmorph_1_0_6.xml
│ ├── Maven__net_sf_json_lib_json_lib_jdk15_2_4.xml
│ ├── Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml
│ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml
│ ├── Maven__org_apache_shiro_shiro_cache_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_config_core_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_config_ogdl_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_core_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_crypto_cipher_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_crypto_core_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_crypto_hash_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_event_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_lang_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_spring_1_4_0.xml
│ ├── Maven__org_apache_shiro_shiro_web_1_4_0.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_29.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_29.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_29.xml
│ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml
│ ├── Maven__org_assertj_assertj_core_3_13_2.xml
│ ├── Maven__org_hamcrest_hamcrest_2_1.xml
│ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml
│ ├── Maven__org_javassist_javassist_3_21_0_GA.xml
│ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml
│ ├── Maven__org_junit_platform_junit_platform_commons_1_5_2.xml
│ ├── Maven__org_junit_platform_junit_platform_engine_1_5_2.xml
│ ├── Maven__org_mapstruct_mapstruct_1_1_0_Final.xml
│ ├── Maven__org_mockito_mockito_core_3_1_0.xml
│ ├── Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml
│ ├── Maven__org_mybatis_mybatis_3_5_0.xml
│ ├── Maven__org_mybatis_mybatis_spring_2_0_0.xml
│ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_0_0.xml
│ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_0_0.xml
│ ├── Maven__org_objenesis_objenesis_2_6.xml
│ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml
│ ├── Maven__org_ow2_asm_asm_5_0_4.xml
│ ├── Maven__org_projectlombok_lombok_1_18_10.xml
│ ├── Maven__org_reflections_reflections_0_9_11.xml
│ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml
│ ├── Maven__org_slf4j_jul_to_slf4j_1_7_29.xml
│ ├── Maven__org_slf4j_slf4j_api_1_7_29.xml
│ ├── Maven__org_springframework_boot_spring_boot_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_plugin_spring_plugin_core_1_2_0_RELEASE.xml
│ ├── Maven__org_springframework_plugin_spring_plugin_metadata_1_2_0_RELEASE.xml
│ ├── Maven__org_springframework_spring_aop_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_beans_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_context_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_core_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_expression_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_jcl_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_jdbc_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_test_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_tx_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_web_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_webmvc_5_2_2_RELEASE.xml
│ ├── Maven__org_xmlunit_xmlunit_core_2_6_3.xml
│ └── Maven__org_yaml_snakeyaml_1_25.xml
├── misc.xml
├── modules.xml
├── uiDesigner.xml
└── workspace.xml
├── .mvn
└── wrapper
│ ├── MavenWrapperDownloader.java
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── HELP.md
├── README.md
├── mvnw
├── mvnw.cmd
├── pom.xml
├── spring.iml
├── src
├── main
│ ├── java
│ │ └── com
│ │ │ └── xc
│ │ │ └── takeaway
│ │ │ ├── CorsConfig.java
│ │ │ ├── Swagger2.java
│ │ │ ├── TakeawayApplication.java
│ │ │ ├── WebAPIResult.java
│ │ │ ├── WebAppConfig.java
│ │ │ ├── controller
│ │ │ ├── ResourceController.java
│ │ │ ├── commentController.java
│ │ │ ├── foodController.java
│ │ │ ├── leftnameController.java
│ │ │ ├── orderController.java
│ │ │ ├── shopOrder.java
│ │ │ ├── typeController.java
│ │ │ └── userCheck.java
│ │ │ ├── reponsitory
│ │ │ ├── CommentReponsitory.java
│ │ │ ├── FoodReponsitory.java
│ │ │ ├── LeftNameReponsitory.java
│ │ │ ├── OrderReponsitory.java
│ │ │ ├── ShopReponsitory.java
│ │ │ ├── TypeReponsitory.java
│ │ │ └── UserReponsitory.java
│ │ │ ├── service
│ │ │ ├── commentService.java
│ │ │ ├── foodService.java
│ │ │ ├── leftnameService.java
│ │ │ ├── orderService.java
│ │ │ ├── shopService.java
│ │ │ ├── typeService.java
│ │ │ └── userService.java
│ │ │ ├── token
│ │ │ ├── TokenEncryptUtils.java
│ │ │ └── TokenUtils.java
│ │ │ └── utils
│ │ │ ├── Food.java
│ │ │ ├── Order.java
│ │ │ ├── Shop.java
│ │ │ ├── Type.java
│ │ │ ├── UploadInfo.java
│ │ │ ├── User.java
│ │ │ ├── foodComment.java
│ │ │ ├── leftName.java
│ │ │ └── shopComment.java
│ └── resources
│ │ ├── application.properties
│ │ └── mapper
│ │ ├── Comment.xml
│ │ ├── Food.xml
│ │ ├── LeftName.xml
│ │ ├── Order.xml
│ │ ├── Shop.xml
│ │ ├── Type.xml
│ │ └── User.xml
└── test
│ └── java
│ └── com
│ └── xc
│ └── takeaway
│ └── TakeawayApplicationTests.java
└── target
├── classes
├── META-INF
│ └── spring.kotlin_module
├── application.properties
├── com
│ └── xc
│ │ └── takeaway
│ │ ├── CorsConfig.class
│ │ ├── Swagger2.class
│ │ ├── TakeawayApplication.class
│ │ ├── WebAPIResult.class
│ │ ├── WebAppConfig.class
│ │ ├── controller
│ │ ├── ResourceController.class
│ │ ├── commentController.class
│ │ ├── foodController.class
│ │ ├── leftnameController.class
│ │ ├── orderController.class
│ │ ├── shopOrder.class
│ │ ├── typeController.class
│ │ └── userCheck.class
│ │ ├── reponsitory
│ │ ├── CommentReponsitory.class
│ │ ├── FoodReponsitory.class
│ │ ├── LeftNameReponsitory.class
│ │ ├── OrderReponsitory.class
│ │ ├── ShopReponsitory.class
│ │ ├── TypeReponsitory.class
│ │ └── UserReponsitory.class
│ │ ├── service
│ │ ├── commentService.class
│ │ ├── foodService.class
│ │ ├── leftnameService.class
│ │ ├── orderService.class
│ │ ├── shopService.class
│ │ ├── typeService.class
│ │ └── userService.class
│ │ ├── token
│ │ ├── TokenEncryptUtils.class
│ │ └── TokenUtils.class
│ │ └── utils
│ │ ├── Food.class
│ │ ├── Order.class
│ │ ├── Shop.class
│ │ ├── Type.class
│ │ ├── UploadInfo.class
│ │ ├── User.class
│ │ ├── foodComment.class
│ │ ├── leftName.class
│ │ └── shopComment.class
└── mapper
│ ├── Comment.xml
│ ├── Food.xml
│ ├── LeftName.xml
│ ├── Order.xml
│ ├── Shop.xml
│ ├── Type.xml
│ └── User.xml
└── test-classes
└── com
└── xc
└── takeaway
└── TakeawayApplicationTests.class
/.idea/.name:
--------------------------------------------------------------------------------
1 | takeaway
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
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_alibaba_druid_1_1_10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_alibaba_druid_spring_boot_starter_1_1_10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_guava_guava_18_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_8_0.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_lang_commons_lang_2_5.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__io_springfox_springfox_core_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_schema_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_spi_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_spring_web_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_swagger2_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_swagger_common_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_springfox_springfox_swagger_ui_2_7_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_swagger_swagger_annotations_1_5_13.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__io_swagger_swagger_models_1_5_13.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_28.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_sf_ezmorph_ezmorph_1_0_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_sf_json_lib_json_lib_jdk15_2_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_12_1.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_12_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_cache_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_config_core_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_config_ogdl_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_core_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_crypto_cipher_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_crypto_core_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_crypto_hash_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_event_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_lang_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_spring_1_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_web_1_4_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_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_assertj_assertj_core_3_13_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mapstruct_mapstruct_1_1_0_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_mybatis_3_5_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_0.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_2_0_0.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_2_0_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_projectlombok_lombok_1_18_10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_reflections_reflections_0_9_11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_2_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_2_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_2_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_2_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_json_2_2_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_2_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_test_2_2_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_2_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_validation_2_2_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_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_plugin_spring_plugin_core_1_2_0_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_plugin_spring_plugin_metadata_1_2_0_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_aop_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_beans_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_context_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_core_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_expression_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_jcl_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_test_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_tx_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_web_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.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 |
--------------------------------------------------------------------------------
/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import java.net.*;
18 | import java.io.*;
19 | import java.nio.channels.*;
20 | import java.util.Properties;
21 |
22 | public class MavenWrapperDownloader {
23 |
24 | private static final String WRAPPER_VERSION = "0.5.6";
25 | /**
26 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
27 | */
28 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
29 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
30 |
31 | /**
32 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
33 | * use instead of the default one.
34 | */
35 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
36 | ".mvn/wrapper/maven-wrapper.properties";
37 |
38 | /**
39 | * Path where the maven-wrapper.jar will be saved to.
40 | */
41 | private static final String MAVEN_WRAPPER_JAR_PATH =
42 | ".mvn/wrapper/maven-wrapper.jar";
43 |
44 | /**
45 | * Name of the property which should be used to override the default download url for the wrapper.
46 | */
47 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
48 |
49 | public static void main(String args[]) {
50 | System.out.println("- Downloader started");
51 | File baseDirectory = new File(args[0]);
52 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
53 |
54 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
55 | // wrapperUrl parameter.
56 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
57 | String url = DEFAULT_DOWNLOAD_URL;
58 | if (mavenWrapperPropertyFile.exists()) {
59 | FileInputStream mavenWrapperPropertyFileInputStream = null;
60 | try {
61 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
62 | Properties mavenWrapperProperties = new Properties();
63 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
64 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
65 | } catch (IOException e) {
66 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
67 | } finally {
68 | try {
69 | if (mavenWrapperPropertyFileInputStream != null) {
70 | mavenWrapperPropertyFileInputStream.close();
71 | }
72 | } catch (IOException e) {
73 | // Ignore ...
74 | }
75 | }
76 | }
77 | System.out.println("- Downloading from: " + url);
78 |
79 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
80 | if (!outputFile.getParentFile().exists()) {
81 | if (!outputFile.getParentFile().mkdirs()) {
82 | System.out.println(
83 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
84 | }
85 | }
86 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
87 | try {
88 | downloadFileFromURL(url, outputFile);
89 | System.out.println("Done");
90 | System.exit(0);
91 | } catch (Throwable e) {
92 | System.out.println("- Error downloading");
93 | e.printStackTrace();
94 | System.exit(1);
95 | }
96 | }
97 |
98 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
99 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
100 | String username = System.getenv("MVNW_USERNAME");
101 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
102 | Authenticator.setDefault(new Authenticator() {
103 | @Override
104 | protected PasswordAuthentication getPasswordAuthentication() {
105 | return new PasswordAuthentication(username, password);
106 | }
107 | });
108 | }
109 | URL website = new URL(urlString);
110 | ReadableByteChannel rbc;
111 | rbc = Channels.newChannel(website.openStream());
112 | FileOutputStream fos = new FileOutputStream(destination);
113 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
114 | fos.close();
115 | rbc.close();
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/HELP.md:
--------------------------------------------------------------------------------
1 | # Getting Started
2 |
3 | ### Reference Documentation
4 | For further reference, please consider the following sections:
5 |
6 | * [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
7 | * [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.2.2.RELEASE/maven-plugin/)
8 |
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # takeaway
2 | 外卖点餐系统 后端接口
3 | 技术栈:Springboot+Mybatis+Swagger
4 | 数据库为mysql 5.6
5 | 后台管理系统:https://github.com/Blacksnow123/takeawayback
6 | 前端:https://github.com/Blacksnow123/takeawayui
7 |
8 |
--------------------------------------------------------------------------------
/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 2.2.2.RELEASE
9 |
10 |
11 | com.xc
12 | takeaway
13 | 0.0.1-SNAPSHOT
14 | takeaway
15 | Spring Boot
16 |
17 |
18 | 1.8
19 |
20 |
21 |
22 |
23 | org.springframework.boot
24 | spring-boot-starter
25 |
26 |
27 |
28 | org.projectlombok
29 | lombok
30 | true
31 |
32 |
33 | org.springframework.boot
34 | spring-boot-starter-test
35 | test
36 |
37 |
38 | org.junit.vintage
39 | junit-vintage-engine
40 |
41 |
42 |
43 |
44 |
45 | io.springfox
46 | springfox-swagger2
47 | 2.7.0
48 |
49 |
50 | io.springfox
51 | springfox-swagger-ui
52 | 2.7.0
53 |
54 |
55 |
56 | net.sf.json-lib
57 | json-lib
58 | 2.4
59 | jdk15
60 |
61 |
62 |
63 | org.springframework.boot
64 | spring-boot-starter-web
65 |
66 |
67 | org.mybatis.spring.boot
68 | mybatis-spring-boot-starter
69 | 2.0.0
70 |
71 |
72 | com.alibaba
73 | druid-spring-boot-starter
74 | 1.1.10
75 |
76 |
77 | mysql
78 | mysql-connector-java
79 | 5.1.28
80 | runtime
81 |
82 |
83 |
84 |
85 | org.apache.shiro
86 | shiro-spring
87 | 1.4.0
88 |
89 |
90 |
91 |
92 |
93 |
94 | org.springframework.boot
95 | spring-boot-maven-plugin
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/CorsConfig.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 |
3 | import org.springframework.context.annotation.Bean;
4 | import org.springframework.context.annotation.Configuration;
5 | import org.springframework.web.cors.CorsConfiguration;
6 | import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
7 | import org.springframework.web.filter.CorsFilter;
8 |
9 | @Configuration
10 | public class CorsConfig {
11 | private CorsConfiguration buildConfig() {
12 | CorsConfiguration corsConfiguration = new CorsConfiguration();
13 | corsConfiguration.addAllowedOrigin("*"); // 允许任何域名使用
14 | corsConfiguration.addAllowedHeader("*"); // 允许任何头
15 | corsConfiguration.addAllowedMethod("*"); // 允许任何方法(post、get等)
16 | return corsConfiguration;
17 | }
18 |
19 | @Bean
20 | public CorsFilter corsFilter() {
21 | UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
22 | source.registerCorsConfiguration("/**", buildConfig()); // 对接口配置跨域设置
23 | return new CorsFilter(source);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/Swagger2.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 | import org.springframework.context.annotation.Bean;
3 | import org.springframework.context.annotation.Configuration;
4 |
5 | import springfox.documentation.builders.ApiInfoBuilder;
6 | import springfox.documentation.builders.PathSelectors;
7 | import springfox.documentation.builders.RequestHandlerSelectors;
8 | import springfox.documentation.service.ApiInfo;
9 | import springfox.documentation.spi.DocumentationType;
10 | import springfox.documentation.spring.web.plugins.Docket;
11 | import springfox.documentation.swagger2.annotations.EnableSwagger2;
12 |
13 | @Configuration
14 | @EnableSwagger2
15 | public class Swagger2 {
16 |
17 | @Bean
18 | public Docket createRestApi() {
19 | return new Docket(DocumentationType.SWAGGER_2)
20 | .apiInfo(apiInfo())
21 | .select()
22 | //扫描包路径
23 | .apis(RequestHandlerSelectors.basePackage("com.xc.takeaway"))
24 | .paths(PathSelectors.any())
25 | .build();
26 | }
27 |
28 | //构建 api文档的详细信息函数,注意这里的注解引用的是哪个
29 | private ApiInfo apiInfo() {
30 | return new ApiInfoBuilder()
31 | //页面标题
32 | .title("外卖")
33 | //描述
34 | .description("接口文档")
35 | //版本号
36 | .version("1.0")
37 | .build();
38 | }
39 |
40 |
41 | }
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/TakeawayApplication.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 |
3 | import org.mybatis.spring.annotation.MapperScan;
4 | import org.springframework.boot.SpringApplication;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |
7 | @SpringBootApplication
8 |
9 | public class TakeawayApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(TakeawayApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/WebAPIResult.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 |
3 | import com.fasterxml.jackson.annotation.JsonIgnore;
4 | import com.fasterxml.jackson.core.JsonProcessingException;
5 | import com.fasterxml.jackson.databind.ObjectMapper;
6 | import com.fasterxml.jackson.databind.SerializationFeature;
7 |
8 | import java.io.Serializable;
9 | import java.text.SimpleDateFormat;
10 | import java.util.HashMap;
11 | import java.util.Map;
12 | import java.util.TimeZone;
13 |
14 | public class WebAPIResult implements Serializable {
15 |
16 | /**
17 | * serialVersionUID
18 | */
19 | private static final long serialVersionUID = 1L;
20 |
21 | /** 成功 */
22 | public static final int SUCCESS = 1;
23 |
24 | /** 失败 */
25 | public static final int FAIL = 0;
26 |
27 | /** 警告 */
28 | public static final int WARN = 2;
29 | /** 错误 */
30 | public static final int ERROR = -1;
31 |
32 | /** 登陆超时 */
33 | public static final int TIMEOUT = -2;
34 | //数据库中数据条数
35 | private int total;
36 | // 返回结果(成功或失败)
37 | private int result = SUCCESS;
38 | // 返回消息
39 | private String message = "";
40 | // 引起原因
41 | private String cause = "";
42 | // 返回变量
43 | private Map vars = new HashMap();
44 | // 返回数据
45 | private Object data;
46 | //token
47 | private String token;
48 |
49 |
50 | public WebAPIResult() {
51 | }
52 |
53 | public WebAPIResult(int result) {
54 | super();
55 | this.result = result;
56 | }
57 |
58 | public String getToken() {
59 | return token;
60 | }
61 |
62 | public void setToken(String token) {
63 | this.token = token;
64 | }
65 |
66 | public WebAPIResult(int result, String message) {
67 | this.result = result;
68 | this.message = message;
69 | }
70 |
71 | public WebAPIResult(int result, String message, String cause) {
72 | this.result = result;
73 | this.message = message;
74 | this.cause = cause;
75 | }
76 |
77 | public int getTotal() {
78 | return total;
79 | }
80 |
81 | public void setTotal(int total) {
82 | this.total = total;
83 | }
84 |
85 |
86 | public void addVariable(String key, Object value) {
87 | this.vars.put(key, value);
88 | }
89 |
90 | public int getResult() {
91 | return result;
92 | }
93 |
94 | public void setResult(int result) {
95 | this.result = result;
96 | }
97 |
98 | @JsonIgnore
99 | public boolean isSuccess(){
100 | return SUCCESS == result;
101 | }
102 |
103 | public String getMessage() {
104 | return message;
105 | }
106 |
107 | public void setMessage(String message) {
108 | this.message = message;
109 | }
110 |
111 | public String getCause() {
112 | return cause;
113 | }
114 |
115 | public void setCause(String cause) {
116 | this.cause = cause;
117 | }
118 |
119 | public Object getVar(String key) {
120 | if(null == vars){
121 | return null;
122 | }
123 | return vars.get(key);
124 | }
125 |
126 | public Map getVars() {
127 | return vars;
128 | }
129 |
130 | public void setVars(Map vars) {
131 | this.vars = vars;
132 | }
133 |
134 | public Object getData() {
135 | return data;
136 | }
137 |
138 | public void setData(Object data) {
139 | this.data = data;
140 | }
141 |
142 | public void setResultMessage(int result, String message){
143 | this.setResult(result);
144 | this.setMessage(message);
145 | }
146 |
147 | public void setResultMessage(int result, String message, String cause){
148 | this.setResult(result);
149 | this.setMessage(message);
150 | this.setCause(cause);
151 | }
152 |
153 | public String toString() {
154 | /*JSONStringer stringer = new JSONStringer();
155 | stringer.object()
156 | .key("result").value(result)
157 | .key("data").value(data)
158 | .key("message").value(message)
159 | .key("cause").value(cause);
160 | if (!vars.isEmpty()) {
161 | for (Entry entry : vars.entrySet()) {
162 | stringer.key(entry.getKey()).value(entry.getValue());
163 | }
164 | }
165 | stringer.endObject();*/
166 |
167 | ObjectMapper mapper = new ObjectMapper();
168 | // 取消默认时间日期格式转换
169 | mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
170 | // 设置JSON时间格式
171 | SimpleDateFormat myDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:dd");
172 | mapper.setDateFormat(myDateFormat);
173 | // 设置北京时间
174 | mapper.setTimeZone(TimeZone.getTimeZone("GMT+8"));
175 |
176 | try {
177 | return mapper.writeValueAsString(this);
178 | } catch (JsonProcessingException e) {
179 | return "{}";
180 | }
181 | }
182 |
183 | }
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/WebAppConfig.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 |
3 | import org.springframework.beans.factory.annotation.Value;
4 | import org.springframework.boot.SpringBootConfiguration;
5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
6 | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
7 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
8 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
9 |
10 |
11 | @SpringBootConfiguration
12 | public class WebAppConfig extends WebMvcConfigurationSupport {
13 |
14 | @Value("${resources.root}")
15 | private String rootResourcesPath;
16 |
17 | @Value("${resources.path}")
18 | private String resources;
19 |
20 | @Override
21 | public void addResourceHandlers(ResourceHandlerRegistry registry) {
22 | //registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
23 | registry.addResourceHandler("/**").addResourceLocations(
24 | "classpath:/static/");
25 | registry.addResourceHandler("swagger-ui.html").addResourceLocations(
26 | "classpath:/META-INF/resources/");
27 | registry.addResourceHandler("/webjars/**").addResourceLocations(
28 | "classpath:/META-INF/resources/webjars/");
29 | registry.addResourceHandler("/resources/**").addResourceLocations("file:"+rootResourcesPath+resources);
30 | super.addResourceHandlers(registry);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/ResourceController.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.xc.takeaway.utils.UploadInfo;
4 | import org.springframework.beans.factory.annotation.Value;
5 | import org.springframework.stereotype.Controller;
6 | import org.springframework.web.bind.annotation.*;
7 | import org.springframework.web.multipart.MultipartFile;
8 |
9 | import java.io.File;
10 | import java.io.IOException;
11 | import java.util.Calendar;
12 | import java.util.HashMap;
13 | import java.util.Map;
14 |
15 | @RestController
16 | public class ResourceController {
17 |
18 | @Value("${resources.root}")
19 | private String rootResourcesPath;
20 |
21 | @Value("${resources.path}")
22 | private String resources;
23 |
24 | @Value("${resources.images}")
25 | private String imagesPath;
26 | // @Value("${server.servlet.context-path}")
27 | private String serverPath="";
28 |
29 | @RequestMapping(value = "uploadimage",method = RequestMethod.POST)
30 | public UploadInfo imgUpdate(MultipartFile file) {
31 | UploadInfo uploadInfo = new UploadInfo();
32 | if (file.isEmpty()) {
33 | uploadInfo.setMsg("上传失败");
34 | uploadInfo.setCode(200);
35 | return uploadInfo;
36 | }
37 | // 获取文件名
38 | String fileName = file.getOriginalFilename();
39 | // 获取文件的后缀名
40 | String suffixName = fileName.substring(fileName.lastIndexOf("."));
41 | // 这里我使用随机字符串来重新命名图片
42 | fileName = Calendar.getInstance().getTimeInMillis() + Math.random() + suffixName;
43 | String urlPath = rootResourcesPath+resources+imagesPath + fileName;
44 |
45 | File dest = new File(urlPath);
46 | // 检测是否存在目录
47 | if (!dest.getParentFile().exists()) {
48 | dest.getParentFile().mkdirs();
49 | }
50 | try {
51 | file.transferTo(dest);
52 | Map map = new HashMap();
53 | map.put("src",serverPath+"/"+resources+imagesPath+fileName);
54 | map.put("saveSrc","/"+resources+imagesPath+fileName);
55 | map.put("title",fileName);
56 | uploadInfo.setCode(0);
57 | uploadInfo.setMsg("上传成功");
58 | uploadInfo.setData(map);
59 | return uploadInfo;
60 | } catch (IllegalStateException e) {
61 | e.printStackTrace();
62 | } catch (IOException e) {
63 | e.printStackTrace();
64 | }
65 | return uploadInfo;
66 | }
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/commentController.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.xc.takeaway.WebAPIResult;
4 | import com.xc.takeaway.reponsitory.CommentReponsitory;
5 | import com.xc.takeaway.service.commentService;
6 | import com.xc.takeaway.service.shopService;
7 | import com.xc.takeaway.utils.Shop;
8 | import com.xc.takeaway.utils.shopComment;
9 | import io.swagger.annotations.Api;
10 | import org.springframework.beans.factory.annotation.Autowired;
11 | import org.springframework.web.bind.annotation.RequestBody;
12 | import org.springframework.web.bind.annotation.RequestMapping;
13 | import org.springframework.web.bind.annotation.RequestMethod;
14 | import org.springframework.web.bind.annotation.RestController;
15 |
16 | import java.text.DecimalFormat;
17 | import java.text.SimpleDateFormat;
18 | import java.util.Date;
19 | import java.util.List;
20 | import java.util.UUID;
21 |
22 | @RestController
23 | @Api("评论")
24 | public class commentController {
25 | @Autowired
26 | commentService commentService;
27 |
28 | @Autowired
29 | shopService shopService;
30 |
31 | @RequestMapping(value = "/insertComment",method = RequestMethod.POST)
32 | public WebAPIResult insertComment(
33 | @RequestBody shopComment shopComment
34 | ){
35 | WebAPIResult webAPIResult=new WebAPIResult();
36 |
37 | String id;
38 | UUID uuid = UUID.randomUUID();
39 | id = uuid.toString();
40 | id = id.replace("-", "");
41 | int num = id.hashCode();
42 | num = num < 0 ? -num : num;
43 | id = String.valueOf(num);
44 |
45 | shopComment.setId(id);
46 |
47 | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
48 | shopComment.setComment_time(df.format(new Date()));
49 |
50 | System.out.println(shopComment);
51 | int a=commentService.insertComment(shopComment);
52 |
53 | webAPIResult.setData(a);
54 |
55 | //更新评分
56 | Shop shop=new Shop();
57 | shop.setShop_num(shopComment.getShop_num());
58 | List list1=shopService.oneShop(shop);
59 |
60 | DecimalFormat count = new DecimalFormat("#.0");
61 |
62 | Double p=Double.parseDouble(list1.get(0).pack_score);
63 | Double t=Double.parseDouble(list1.get(0).taste_score);
64 | Double s=Double.parseDouble(list1.get(0).send_score);
65 | Double sc=Double.parseDouble(list1.get(0).shop_score);
66 |
67 | String pack_score=count.format((p+Double.parseDouble(shopComment.pack_score))/2);
68 | String taste_score=count.format((t+Double.parseDouble(shopComment.taste_score))/2);
69 | String send_score=count.format((s+Double.parseDouble(shopComment.send_score))/2);
70 | String shop_score=count.format((sc+Double.parseDouble(shopComment.shop_score))/2);
71 |
72 | Shop lastshop=new Shop();
73 |
74 | lastshop.setId(list1.get(0).id);
75 | lastshop.setPack_score(pack_score);
76 | lastshop.setTaste_score(taste_score);
77 | lastshop.setSend_score(send_score);
78 | lastshop.setShop_score(shop_score);
79 |
80 | int b=shopService.updateScore(lastshop);
81 |
82 | if(a==1&&b==1){
83 | webAPIResult.setResult(0);
84 | }
85 | return webAPIResult;
86 | }
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/leftnameController.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.xc.takeaway.WebAPIResult;
4 | import com.xc.takeaway.service.leftnameService;
5 | import com.xc.takeaway.utils.leftName;
6 | import io.swagger.annotations.Api;
7 | import io.swagger.annotations.ApiOperation;
8 | import org.springframework.beans.factory.annotation.Autowired;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RequestMethod;
12 | import org.springframework.web.bind.annotation.RestController;
13 |
14 | import java.util.List;
15 | import java.util.UUID;
16 |
17 | @RestController
18 | @Api("商铺左侧栏")
19 | public class leftnameController {
20 |
21 | @Autowired
22 | leftnameService leftnameService;
23 |
24 | @RequestMapping(value = "/leftnames",method = RequestMethod.POST)
25 | public WebAPIResult leftnames(
26 | @RequestBody leftName leftName
27 | ){
28 | WebAPIResult webAPIResult=new WebAPIResult();
29 |
30 | List list=leftnameService.leftNames(leftName);
31 |
32 | webAPIResult.setResult(0);
33 | webAPIResult.setData(list);
34 | return webAPIResult;
35 | }
36 |
37 | @RequestMapping(value = "/insertName",method = RequestMethod.POST)
38 | public WebAPIResult insertName(
39 | @RequestBody leftName leftName
40 | ){
41 | WebAPIResult webAPIResult=new WebAPIResult();
42 | System.out.println(leftName);
43 | String id;
44 | UUID uuid = UUID.randomUUID();
45 | id = uuid.toString();
46 | id = id.replace("-", "");
47 | int num = id.hashCode();
48 | num = num < 0 ? -num : num;
49 | id = String.valueOf(num);
50 |
51 | leftName.setId(id);
52 |
53 | int a=leftnameService.insertName(leftName);
54 |
55 | webAPIResult.setResult(0);
56 | webAPIResult.setData(a);
57 | return webAPIResult;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/orderController.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.fasterxml.jackson.databind.util.JSONPObject;
4 | import com.xc.takeaway.WebAPIResult;
5 | import com.xc.takeaway.service.orderService;
6 | import com.xc.takeaway.service.shopService;
7 | import com.xc.takeaway.utils.Food;
8 | import com.xc.takeaway.utils.Order;
9 | import com.xc.takeaway.utils.Shop;
10 | import io.swagger.annotations.Api;
11 | import io.swagger.annotations.ApiOperation;
12 | import net.sf.json.JSONArray;
13 | import org.springframework.beans.factory.annotation.Autowired;
14 | import org.springframework.web.bind.annotation.*;
15 |
16 | import java.text.SimpleDateFormat;
17 | import java.util.Date;
18 | import java.util.List;
19 | import java.util.UUID;
20 |
21 | @RestController
22 | @Api("订单接口")
23 | public class orderController {
24 | @Autowired
25 | orderService orderService;
26 | @Autowired
27 | shopService shopService;
28 |
29 | @ApiOperation("插入订单")
30 | @RequestMapping(value = "/insertOrder",method = RequestMethod.POST)
31 | public WebAPIResult insertOrder(
32 | @RequestBody String foodList
33 | ){
34 | WebAPIResult webAPIResult=new WebAPIResult();
35 |
36 | System.out.println(foodList);
37 | int start=foodList.indexOf('[');
38 | int end=foodList.indexOf(']')+1;
39 |
40 | String a=foodList.substring(start,end);
41 | System.out.println(a);
42 | List list= JSONArray.toList(JSONArray.fromObject(a),Food.class);
43 |
44 |
45 |
46 | // System.out.println("list");
47 | // System.out.println(list);
48 | //随机id
49 | String id;
50 | UUID uuid = UUID.randomUUID();
51 | id = uuid.toString();
52 | id = id.replace("-", "");
53 | int num = id.hashCode();
54 | num = num < 0 ? -num : num;
55 | id = String.valueOf(num);
56 |
57 | SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
58 |
59 | String totalPrice="";
60 | //店铺id
61 | String shop_num=list.get(0).shop_num;
62 | String extraInfo="";
63 | //
64 | String b=foodList.substring(end+1);
65 | // int a=orderService.insertOrder();
66 | int infostart=b.indexOf(',');
67 | //备注信息
68 | extraInfo=b.substring(13,infostart-1);
69 | // System.out.println("111");
70 | // System.out.println(extraInfo);
71 |
72 | String c=b.substring(infostart+14);
73 |
74 | int priceend=c.indexOf(',');
75 | String a1=c.substring(0,priceend);
76 |
77 | totalPrice=a1;
78 |
79 | // System.out.println(totalPrice);
80 |
81 | String a2=c.substring(priceend+17);
82 | int location =a2.indexOf(",");
83 | String a4= a2.substring(0,location-1);
84 | // System.out.println(a4);
85 |
86 |
87 | int last=a2.indexOf('}');
88 |
89 | String a3=a2.substring(location+9,last-1);
90 |
91 | System.out.println(a3);
92 |
93 | Shop myshop =new Shop();
94 | myshop.setShop_num(shop_num);
95 | List shopList= shopService.oneShop(myshop);
96 | int mysellcount =Integer.parseInt(shopList.get(0).getSell_count());
97 | String shop_img=shopList.get(0).shop_img;
98 |
99 | //更新平均
100 | int myaverage=Integer.parseInt(shopList.get(0).getAverage());
101 | int average1=Integer.parseInt(totalPrice)+myaverage/2;
102 |
103 | //更新销量
104 | int count=list.size()+mysellcount;
105 | System.out.println("count:");
106 | System.out.println(count);
107 | Shop shopCount =new Shop();
108 | shopCount.setShop_num(shop_num);
109 | shopCount.setSell_count(Integer.toString(count));
110 | shopCount.setAverage(Integer.toString(average1));
111 | int mycount=shopService.shopCount(shopCount);
112 |
113 |
114 |
115 |
116 |
117 | Order order=new Order();
118 | order.setOrder_id(id);
119 | order.setShop_num(shop_num);
120 | order.setOrder_time(df.format(new Date()));
121 | order.setTotal_price(totalPrice);
122 | order.setPay_state("0");
123 | order.setFood_info(a);
124 | order.setExtra_info(extraInfo);
125 | order.setLocation(a4);
126 | order.setUser_name(a3);
127 | order.setShop_img(shop_img);
128 | System.out.println(order);
129 |
130 | int result=orderService.insertOrder(order);
131 | System.out.println(result);
132 | if (result==1){
133 | webAPIResult.setResult(0);
134 | }else{
135 | webAPIResult.setResult(1);
136 | }
137 | return webAPIResult;
138 | }
139 |
140 | @ApiOperation("获取用户所有订单")
141 | @RequestMapping(value = "/allOrders",method = RequestMethod.POST)
142 | public WebAPIResult selectOrder (
143 | @RequestBody Order order
144 | ){
145 | WebAPIResult webAPIResult=new WebAPIResult();
146 |
147 | List list=orderService.selectObject(order);
148 | // System.out.println(list);
149 |
150 | webAPIResult.setResult(0);
151 | webAPIResult.setData(list);
152 | return webAPIResult;
153 | }
154 |
155 | @ApiOperation("获取商家所有订单")
156 | @RequestMapping(value = "/shoperOrders",method = RequestMethod.POST)
157 | public WebAPIResult shoperOrders (
158 | @RequestBody Order order
159 | ){
160 | WebAPIResult webAPIResult=new WebAPIResult();
161 | // System.out.println(order);
162 | List list=orderService.shoperOrders(order);
163 | // System.out.println(list);
164 |
165 | webAPIResult.setResult(0);
166 | webAPIResult.setData(list);
167 | return webAPIResult;
168 | }
169 |
170 | @ApiOperation("获取所有订单")
171 | @RequestMapping(value = "/Orders",method = RequestMethod.POST)
172 | public WebAPIResult orders (
173 | ){
174 | WebAPIResult webAPIResult=new WebAPIResult();
175 |
176 | List list=orderService.selectOrders();
177 | // System.out.println(list);
178 |
179 | webAPIResult.setResult(0);
180 | webAPIResult.setData(list);
181 | return webAPIResult;
182 | }
183 |
184 | @ApiOperation("更新收货状态")
185 | @RequestMapping(value = "/updateOrder",method = RequestMethod.POST)
186 | public WebAPIResult updateOrder (
187 | @RequestBody Order order
188 | ){
189 | WebAPIResult webAPIResult=new WebAPIResult();
190 | System.out.println(order);
191 | order.setConfirm_state("0");
192 | int a=orderService.updateOrder(order);
193 | webAPIResult.setResult(0);
194 | webAPIResult.setData(a);
195 | return webAPIResult;
196 | }
197 |
198 | @ApiOperation("更新接受状态")
199 | @RequestMapping(value = "/acceptOrder",method = RequestMethod.POST)
200 | public WebAPIResult acceptOrder (
201 | @RequestBody Order order
202 | ){
203 | WebAPIResult webAPIResult=new WebAPIResult();
204 | System.out.println(order);
205 | order.setAccept_state("1");
206 | int a=orderService.acceptOrder(order);
207 | webAPIResult.setResult(0);
208 | webAPIResult.setData(a);
209 | return webAPIResult;
210 | }
211 |
212 | }
213 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/shopOrder.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.xc.takeaway.WebAPIResult;
4 | import com.xc.takeaway.service.shopService;
5 | import com.xc.takeaway.utils.Shop;
6 | import io.swagger.annotations.Api;
7 | import io.swagger.annotations.ApiOperation;
8 | import org.springframework.beans.factory.annotation.Autowired;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RequestMethod;
12 | import org.springframework.web.bind.annotation.RestController;
13 |
14 | import java.util.List;
15 |
16 | @Api("店铺")
17 | @RestController
18 | public class shopOrder {
19 |
20 | @Autowired
21 | shopService shopService;
22 |
23 | @ApiOperation("美食店铺")
24 | @RequestMapping(value = "/shopListbyType",method = RequestMethod.POST)
25 | public WebAPIResult shoplist(
26 | @RequestBody Shop shop
27 | ){
28 | WebAPIResult webAPIResult=new WebAPIResult();
29 | List list=shopService.shoplist(shop);
30 |
31 | webAPIResult.setResult(0);
32 | webAPIResult.setData(list);
33 |
34 | return webAPIResult;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/controller/typeController.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.controller;
2 |
3 | import com.xc.takeaway.WebAPIResult;
4 | import com.xc.takeaway.service.typeService;
5 | import com.xc.takeaway.utils.Type;
6 | import io.swagger.annotations.Api;
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.web.bind.annotation.RequestMapping;
9 | import org.springframework.web.bind.annotation.RequestMethod;
10 | import org.springframework.web.bind.annotation.RestController;
11 |
12 | import java.util.List;
13 |
14 | @Api("店铺类型")
15 | @RestController
16 | public class typeController {
17 | @Autowired
18 | typeService typeService;
19 |
20 | @RequestMapping(value = "/typerList",method = RequestMethod.POST)
21 | public WebAPIResult typeList(){
22 | WebAPIResult webAPIResult=new WebAPIResult();
23 |
24 | List list =typeService.typeList();
25 |
26 | webAPIResult.setResult(0);
27 | webAPIResult.setData(list);
28 |
29 | return webAPIResult;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/CommentReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.shopComment;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | @Repository
8 | @Mapper
9 | public interface CommentReponsitory {
10 |
11 | public Integer insertComment(shopComment shopComment);
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/FoodReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.*;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 |
10 | @Repository
11 | @Mapper
12 | public interface FoodReponsitory {
13 | List shopList ();
14 | List foodList(Food food);
15 | List foodComment(foodComment foodComment);
16 |
17 | List leftName(leftName leftName);
18 |
19 | List shopComment(shopComment shopComment);
20 |
21 | List shopInfo(Shop shop);
22 |
23 | List allFoods();
24 |
25 | Integer updateFood(Food food);
26 |
27 | Integer deleteFood(Food food);
28 |
29 | Integer insertFood(Food food);
30 |
31 | List shopFoodlist(Food food);
32 |
33 | List shopFilter(Shop shop);
34 |
35 | Integer shopFooddelete(Food food);
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/LeftNameReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.leftName;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Repository;
7 |
8 | import java.util.List;
9 |
10 | @Mapper
11 | @Repository
12 | public interface LeftNameReponsitory {
13 |
14 | public List leftNames (leftName leftName);
15 | public Integer insertName(leftName leftName);
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/OrderReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 |
4 | import com.xc.takeaway.utils.Order;
5 | import org.apache.ibatis.annotations.Mapper;
6 | import org.springframework.stereotype.Repository;
7 |
8 | import java.util.List;
9 |
10 | @Repository
11 | @Mapper
12 | public interface OrderReponsitory {
13 | public Integer insertOrder(Order order);
14 | public List selectObject(Order order);
15 | public List selectOrders();
16 |
17 | public Integer updateOrder(Order order);
18 |
19 | public List shoperOrders(Order order);
20 |
21 | public Integer acceptOrder(Order order);
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/ShopReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.Shop;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | @Repository
10 | @Mapper
11 | public interface ShopReponsitory {
12 | public List shoplist(Shop shop);
13 |
14 | //更新店铺信息
15 | public Integer updateShop(Shop shop);
16 |
17 | //删除店铺
18 | public Integer deleteShop(Shop shop);
19 |
20 | //添加商铺
21 | public Integer insertShop(Shop shop);
22 |
23 | public List oneShop(Shop shop);
24 |
25 | public Integer updateScore(Shop shop);
26 |
27 | public Integer insertSelfshop(Shop shop);
28 |
29 | public Integer shopCount(Shop shop);
30 |
31 | public List shopTypelist(Shop shop);
32 |
33 | public List byAverage(Shop shop);
34 |
35 | public List byDistance(Shop shop);
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/TypeReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.Type;
4 | import org.apache.ibatis.annotations.Mapper;
5 | import org.springframework.stereotype.Repository;
6 |
7 | import java.util.List;
8 |
9 | @Mapper
10 | @Repository
11 | public interface TypeReponsitory {
12 |
13 | public List typeList();
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/reponsitory/UserReponsitory.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.reponsitory;
2 |
3 | import com.xc.takeaway.utils.Shop;
4 | import com.xc.takeaway.utils.User;
5 | import org.apache.ibatis.annotations.Mapper;
6 | import org.springframework.stereotype.Repository;
7 |
8 | import java.util.List;
9 |
10 | @Repository
11 | @Mapper
12 | public interface UserReponsitory {
13 |
14 | Integer userCheck (User user);
15 | Integer userRegister(User user);
16 | List adminCheck (User user);
17 | Integer userCount();
18 | Integer adminCount();
19 |
20 | public List allUsers(User user);
21 |
22 |
23 | public List allshops(User user);
24 |
25 | Integer shoperRegister(User user);
26 | public Integer updateSelfshop(User user);
27 |
28 | Integer reset (User user);
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/commentService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.CommentReponsitory;
4 | import com.xc.takeaway.utils.shopComment;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | @Service
9 | public class commentService {
10 | @Autowired
11 | CommentReponsitory commentReponsitory;
12 |
13 | public Integer insertComment(shopComment shopComment){
14 | return commentReponsitory.insertComment(shopComment);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/foodService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.FoodReponsitory;
4 | import com.xc.takeaway.utils.*;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import java.util.List;
9 | import java.util.Map;
10 |
11 | @Service
12 | public class foodService {
13 | @Autowired
14 | FoodReponsitory foodReponsitory;
15 |
16 | //商家列表
17 | public List shopList(){
18 | return foodReponsitory.shopList();
19 | }
20 |
21 | //菜列表
22 | public List foodList( Food food){
23 | return foodReponsitory.foodList(food);
24 | }
25 |
26 | //商家左侧列表
27 | public List leftName(leftName leftName){
28 | return foodReponsitory.leftName(leftName);
29 | }
30 |
31 | //菜品评论
32 | public List foodComment(foodComment foodComment){
33 | return foodReponsitory.foodComment(foodComment);
34 | }
35 |
36 | //商家评论
37 | public List shopComment(shopComment shopComment) {
38 | return foodReponsitory.shopComment(shopComment);
39 | }
40 |
41 | //商家信息
42 | public List shopInfo(Shop shop) {
43 | return foodReponsitory.shopInfo(shop);
44 | }
45 |
46 | public List allFoods(){
47 | return foodReponsitory.allFoods();
48 | }
49 |
50 | public Integer updateFood(Food food){
51 | return foodReponsitory.updateFood(food);
52 | }
53 |
54 | public Integer deleteFood(Food food){
55 | return foodReponsitory.deleteFood(food);
56 | }
57 |
58 | public Integer insertFood(Food food){
59 | return foodReponsitory.insertFood(food);
60 | }
61 |
62 | public List shopFoodlist(Food food){
63 | return foodReponsitory.shopFoodlist(food);
64 | }
65 |
66 | public List shopFilter(Shop shop){
67 | return foodReponsitory.shopFilter(shop);
68 | }
69 |
70 | public Integer shopFooddelete(Food food){
71 | return foodReponsitory.shopFooddelete(food);
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/leftnameService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.LeftNameReponsitory;
4 | import com.xc.takeaway.utils.leftName;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class leftnameService {
12 |
13 | @Autowired
14 | LeftNameReponsitory leftNameReponsitory;
15 |
16 | public List leftNames (leftName leftName){
17 | return leftNameReponsitory.leftNames(leftName);
18 | }
19 |
20 | public Integer insertName(leftName leftName){
21 | return leftNameReponsitory.insertName(leftName);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/orderService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.OrderReponsitory;
4 | import com.xc.takeaway.utils.Order;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class orderService {
12 | @Autowired
13 | OrderReponsitory orderReponsitory;
14 |
15 | public Integer insertOrder(Order order){
16 | return orderReponsitory.insertOrder(order);
17 | }
18 |
19 | public List selectObject(Order order){
20 | return orderReponsitory.selectObject(order);
21 | }
22 |
23 | public List selectOrders(){
24 | return orderReponsitory.selectOrders();
25 | }
26 |
27 | public Integer updateOrder(Order order){
28 | return orderReponsitory.updateOrder(order);
29 | }
30 |
31 | public List shoperOrders(Order order){
32 | return orderReponsitory.shoperOrders(order);
33 | }
34 |
35 | public Integer acceptOrder(Order order){
36 | return orderReponsitory.acceptOrder(order);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/shopService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.ShopReponsitory;
4 | import com.xc.takeaway.utils.Shop;
5 | import io.swagger.annotations.ApiOperation;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import java.util.List;
10 |
11 | @Service
12 | public class shopService {
13 | @Autowired
14 | ShopReponsitory shopReponsitory;
15 |
16 | public List shoplist(Shop shop){
17 | return shopReponsitory.shoplist(shop);
18 | }
19 |
20 | public Integer updateShop(Shop shop){
21 | return shopReponsitory.updateShop(shop);
22 | }
23 |
24 | public Integer deleteShop(Shop shop){
25 | return shopReponsitory.deleteShop(shop);
26 | }
27 |
28 | public Integer insertShop(Shop shop){
29 | return shopReponsitory.insertShop(shop);
30 | }
31 |
32 | public List oneShop(Shop shop){
33 | return shopReponsitory.oneShop(shop);
34 | }
35 |
36 | public Integer updateScore(Shop shop){
37 | return shopReponsitory.updateScore(shop);
38 | }
39 |
40 | public Integer insertSelfshop(Shop shop){
41 | return shopReponsitory.insertSelfshop(shop);
42 | }
43 |
44 | public Integer shopCount(Shop shop){
45 | return shopReponsitory.shopCount(shop);
46 | }
47 |
48 | public List shopTypelist(Shop shop){
49 | return shopReponsitory.shopTypelist(shop);
50 | }
51 | public List byAverage(Shop shop){
52 | return shopReponsitory.byAverage(shop);
53 | }
54 | public List byDistance(Shop shop){
55 | return shopReponsitory.byDistance(shop);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/typeService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.TypeReponsitory;
4 | import com.xc.takeaway.utils.Type;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import java.util.List;
9 |
10 | @Service
11 | public class typeService {
12 |
13 | @Autowired
14 | TypeReponsitory typeReponsitory;
15 |
16 | public List typeList(){
17 | return typeReponsitory.typeList();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/service/userService.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.service;
2 |
3 | import com.xc.takeaway.reponsitory.UserReponsitory;
4 | import com.xc.takeaway.utils.Shop;
5 | import com.xc.takeaway.utils.User;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import javax.annotation.Resource;
10 | import java.util.List;
11 |
12 | @Service
13 | public class userService {
14 |
15 | @Autowired
16 | UserReponsitory userReponsitory;
17 | //登录验证
18 | public Integer userCheck(User user){
19 | return userReponsitory.userCheck(user);
20 | }
21 | //用户注册
22 | public Integer userRegister(User user){
23 | return userReponsitory.userRegister(user);
24 | }
25 |
26 | public List adminCheck (User user){
27 | return userReponsitory.adminCheck(user);
28 | }
29 |
30 | public Integer userCount(){
31 | return userReponsitory.userCount();
32 | }
33 | public Integer adminCount(){
34 | return userReponsitory.adminCount();
35 | }
36 |
37 | public List allUsers(User user){
38 | return userReponsitory.allUsers(user);
39 | }
40 |
41 | public List allshops(User user){
42 | return userReponsitory.allshops(user);
43 | }
44 |
45 | public Integer shoperRegister(User user){
46 | return userReponsitory.shoperRegister(user);
47 | }
48 |
49 | public Integer updateSelfshop(User user){
50 | return userReponsitory.updateSelfshop(user);
51 | }
52 | public Integer reset (User user){
53 | return userReponsitory.reset(user);
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/token/TokenEncryptUtils.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.token;
2 |
3 | public class TokenEncryptUtils {
4 |
5 | // 编码密码,可自定义
6 | private static final String ENCODED_PASSWORD = "ouyangjun";
7 |
8 | /**
9 | * 编码
10 | * @param str
11 | * @return
12 | */
13 | public static String encoded(String str) {
14 | return strToHex(encodedString(str, ENCODED_PASSWORD));
15 | }
16 |
17 | /**
18 | * 转换
19 | * @param str
20 | * @param password
21 | * @return
22 | */
23 | private static String encodedString(String str, String password) {
24 | char[] pwd = password.toCharArray();
25 | int pwdLen = pwd.length;
26 |
27 | char[] strArray = str.toCharArray();
28 | for (int i=0; i MAP_TOKENS = new HashMap();
12 | private static final int VALID_TIME = 60*60*2; // token有效期(秒)
13 | public static final String TOKEN_ERROR = "F"; // 非法
14 | public static final String TOKEN_OVERDUE = "G"; // 过期
15 | public static final String TOKEN_FAILURE = "S"; // 失效
16 |
17 | /**
18 | * 生成token,该token长度不一致,如需一致,可自行MD5或者其它方式加密一下
19 | * 该方式的token只存在磁盘上,如果项目是分布式,最好用redis存储
20 | * @param str: 该字符串可自定义,在校验token时要保持一致
21 | * @return
22 | */
23 | public static String getToken(String str) {
24 | String token = TokenEncryptUtils.encoded(getCurrentTime()+","+str);
25 | MAP_TOKENS.put(str, token);
26 | return token;
27 | }
28 |
29 | /**
30 | * 校验token的有效性
31 | * @param token
32 | * @return
33 | */
34 | public static String checkToken(String token) {
35 | if (token == null) {
36 | return TOKEN_ERROR;
37 | }
38 | try{
39 | String[] tArr = TokenEncryptUtils.decoded(token).split(",");
40 | if (tArr.length != 2) {
41 | return TOKEN_ERROR;
42 | }
43 | // token生成时间戳
44 | int tokenTime = Integer.parseInt(tArr[0]);
45 | // 当前时间戳
46 | int currentTime = getCurrentTime();
47 | if (currentTime-tokenTime < VALID_TIME) {
48 | String tokenStr = tArr[1];
49 | String mToken = MAP_TOKENS.get(tokenStr);
50 | if (mToken == null) {
51 | return TOKEN_OVERDUE;
52 | } else if(!mToken.equals(token)) {
53 | return TOKEN_FAILURE;
54 | }
55 | return tokenStr;
56 | } else {
57 | return TOKEN_OVERDUE;
58 | }
59 | }catch (Exception e) {
60 | e.printStackTrace();
61 | }
62 | return TOKEN_ERROR;
63 | }
64 |
65 | /**获取当前时间戳(10位整数)*/
66 | public static int getCurrentTime() {
67 | return (int)(System.currentTimeMillis()/1000);
68 | }
69 |
70 | /**
71 | * 移除过期的token
72 | */
73 | public static void removeInvalidToken() {
74 | int currentTime = getCurrentTime();
75 | for (Entry entry : MAP_TOKENS.entrySet()) {
76 | String[] tArr = TokenEncryptUtils.decoded(entry.getValue()).split(",");
77 | int tokenTime = Integer.parseInt(tArr[0]);
78 | if(currentTime-tokenTime > VALID_TIME){
79 | MAP_TOKENS.remove(entry.getKey());
80 | }
81 | }
82 | }
83 | }
84 | /**
85 | * 测试
86 | * @param args
87 | */
88 | // public static void main(String[] args) {
89 | // String str = "username_and_password";
90 | //
91 | // // 获取token
92 | // String token = TokenUtils.getToken(str);
93 | // System.out.println("token Result: " + token);
94 | //
95 | // // 校验token
96 | // String checkToken = TokenUtils.checkToken(token);
97 | // System.out.println("checkToken Result: " + checkToken);
98 | // if(str.equals(checkToken)) {
99 | // System.out.println("==>token verification succeeded!");
100 | // }
101 | //
102 | // }
103 |
104 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/Food.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Food implements Serializable {
6 | public String sell_count;
7 | public String food_id;
8 | public String food_name;
9 | public String shop_num;
10 | public String food_img;
11 | public String food_price;
12 | public String shop_name;
13 | public String food_extra;
14 | public String left_name_id;
15 | public String count;
16 |
17 | public String shop_place;
18 | public String taste_score;
19 | public String left_name;
20 |
21 | public String delete_flag;
22 |
23 | public String getDelete_flag() {
24 | return delete_flag;
25 | }
26 |
27 | public void setDelete_flag(String delete_flag) {
28 | this.delete_flag = delete_flag;
29 | }
30 |
31 | public String getShop_place() {
32 | return shop_place;
33 | }
34 |
35 | public void setShop_place(String shop_place) {
36 | this.shop_place = shop_place;
37 | }
38 |
39 | public String getTaste_score() {
40 | return taste_score;
41 | }
42 |
43 | public void setTaste_score(String taste_score) {
44 | this.taste_score = taste_score;
45 | }
46 |
47 | public String getLeft_name() {
48 | return left_name;
49 | }
50 |
51 | public void setLeft_name(String left_name) {
52 | this.left_name = left_name;
53 | }
54 |
55 | public String getSell_count() {
56 | return sell_count;
57 | }
58 |
59 | public void setSell_count(String sell_count) {
60 | this.sell_count = sell_count;
61 | }
62 |
63 | public String getCount() {
64 | return count;
65 | }
66 |
67 | public void setCount(String count) {
68 | this.count = count;
69 | }
70 |
71 | public String getId() {
72 | return sell_count;
73 | }
74 |
75 | public void setId(String id) {
76 | this.sell_count = id;
77 | }
78 |
79 | public String getFood_id() {
80 | return food_id;
81 | }
82 |
83 | public void setFood_id(String food_id) {
84 | this.food_id = food_id;
85 | }
86 |
87 | public String getFood_name() {
88 | return food_name;
89 | }
90 |
91 | public void setFood_name(String food_name) {
92 | this.food_name = food_name;
93 | }
94 |
95 | public String getShop_num() {
96 | return shop_num;
97 | }
98 |
99 | public void setShop_num(String shop_num) {
100 | this.shop_num = shop_num;
101 | }
102 |
103 | public String getFood_img() {
104 | return food_img;
105 | }
106 |
107 | public void setFood_img(String food_img) {
108 | this.food_img = food_img;
109 | }
110 |
111 | public String getFood_price() {
112 | return food_price;
113 | }
114 |
115 | public void setFood_price(String food_price) {
116 | this.food_price = food_price;
117 | }
118 |
119 | public String getShop_name() {
120 | return shop_name;
121 | }
122 |
123 | public void setShop_name(String shop_name) {
124 | this.shop_name = shop_name;
125 | }
126 |
127 | public String getFood_extra() {
128 | return food_extra;
129 | }
130 |
131 | public void setFood_extra(String food_extra) {
132 | this.food_extra = food_extra;
133 | }
134 |
135 | public String getLeft_name_id() {
136 | return left_name_id;
137 | }
138 |
139 | public void setLeft_name_id(String left_name_id) {
140 | this.left_name_id = left_name_id;
141 | }
142 |
143 | @Override
144 | public String toString() {
145 | return "Food{" +
146 | "sell_count='" + sell_count + '\'' +
147 | ", food_id='" + food_id + '\'' +
148 | ", food_name='" + food_name + '\'' +
149 | ", shop_num='" + shop_num + '\'' +
150 | ", food_img='" + food_img + '\'' +
151 | ", food_price='" + food_price + '\'' +
152 | ", shop_name='" + shop_name + '\'' +
153 | ", food_extra='" + food_extra + '\'' +
154 | ", left_name_id='" + left_name_id + '\'' +
155 | ", count='" + count + '\'' +
156 | ", shop_place='" + shop_place + '\'' +
157 | ", taste_score='" + taste_score + '\'' +
158 | ", left_name='" + left_name + '\'' +
159 | ", delete_flag='" + delete_flag + '\'' +
160 | '}';
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/Order.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Order implements Serializable {
6 | public String order_id;
7 | public String shop_num;
8 | public String order_time;
9 | public String total_price;
10 | public String pay_state;
11 | public String food_info;
12 | public String extra_info;
13 | public String shop_name;
14 | public String location;
15 | public String user_name;
16 | public String confirm_state;
17 | public String shop_img;
18 |
19 | public String accept_state;
20 |
21 | public String getAccept_state() {
22 | return accept_state;
23 | }
24 |
25 | public void setAccept_state(String accept_state) {
26 | this.accept_state = accept_state;
27 | }
28 |
29 | public String getShop_img() {
30 | return shop_img;
31 | }
32 |
33 | public void setShop_img(String shop_img) {
34 | this.shop_img = shop_img;
35 | }
36 |
37 | public String getConfirm_state() {
38 | return confirm_state;
39 | }
40 |
41 | public void setConfirm_state(String confirm_state) {
42 | this.confirm_state = confirm_state;
43 | }
44 |
45 | public String getUser_name() {
46 | return user_name;
47 | }
48 |
49 | public void setUser_name(String user_name) {
50 | this.user_name = user_name;
51 | }
52 |
53 | public String getLocation() {
54 | return location;
55 | }
56 |
57 | public void setLocation(String location) {
58 | this.location = location;
59 | }
60 |
61 | public String getShop_name() {
62 | return shop_name;
63 | }
64 |
65 | public void setShop_name(String shop_name) {
66 | this.shop_name = shop_name;
67 | }
68 |
69 | public String getOrder_id() {
70 | return order_id;
71 | }
72 |
73 | public void setOrder_id(String order_id) {
74 | this.order_id = order_id;
75 | }
76 |
77 | public String getShop_num() {
78 | return shop_num;
79 | }
80 |
81 | public void setShop_num(String shop_num) {
82 | this.shop_num = shop_num;
83 | }
84 |
85 | public String getOrder_time() {
86 | return order_time;
87 | }
88 |
89 | public void setOrder_time(String order_time) {
90 | this.order_time = order_time;
91 | }
92 |
93 | public String getTotal_price() {
94 | return total_price;
95 | }
96 |
97 | public void setTotal_price(String total_price) {
98 | this.total_price = total_price;
99 | }
100 |
101 | public String getPay_state() {
102 | return pay_state;
103 | }
104 |
105 | public void setPay_state(String pay_state) {
106 | this.pay_state = pay_state;
107 | }
108 |
109 | public String getFood_info() {
110 | return food_info;
111 | }
112 |
113 | public void setFood_info(String food_info) {
114 | this.food_info = food_info;
115 | }
116 |
117 | public String getExtra_info() {
118 | return extra_info;
119 | }
120 |
121 | public void setExtra_info(String extra_info) {
122 | this.extra_info = extra_info;
123 | }
124 |
125 | @Override
126 | public String toString() {
127 | return "Order{" +
128 | "order_id='" + order_id + '\'' +
129 | ", shop_num='" + shop_num + '\'' +
130 | ", order_time='" + order_time + '\'' +
131 | ", total_price='" + total_price + '\'' +
132 | ", pay_state='" + pay_state + '\'' +
133 | ", food_info='" + food_info + '\'' +
134 | ", extra_info='" + extra_info + '\'' +
135 | ", shop_name='" + shop_name + '\'' +
136 | ", location='" + location + '\'' +
137 | ", user_name='" + user_name + '\'' +
138 | ", confirm_state='" + confirm_state + '\'' +
139 | ", shop_img='" + shop_img + '\'' +
140 | ", accept_state='" + accept_state + '\'' +
141 | '}';
142 | }
143 | }
144 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/Shop.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Shop implements Serializable {
6 | public String id;
7 | public String shop_score;
8 | public String taste_score;
9 | public String pack_score;
10 | public String shop_img;
11 | public String send_time;
12 | public String distance;
13 | public String sell_start;
14 | public String distribution_price;
15 | public String average;
16 | public String shop_num;
17 | public String send_score;
18 | public String shop_name;
19 | public String shop_type;
20 | public String shop_place;
21 | public String send_service;
22 |
23 | public String type_name;
24 | public String delete_flag;
25 | public String sell_count;
26 |
27 | public String getSell_count() {
28 | return sell_count;
29 | }
30 |
31 | public void setSell_count(String sell_count) {
32 | this.sell_count = sell_count;
33 | }
34 |
35 | public String getDelete_flag() {
36 | return delete_flag;
37 | }
38 |
39 | public void setDelete_flag(String delete_flag) {
40 | this.delete_flag = delete_flag;
41 | }
42 |
43 | public String getType_name() {
44 | return type_name;
45 | }
46 |
47 | public void setType_name(String type_name) {
48 | this.type_name = type_name;
49 | }
50 |
51 | public String getSend_service() {
52 | return send_service;
53 | }
54 |
55 | public void setSend_service(String send_service) {
56 | this.send_service = send_service;
57 | }
58 |
59 | public String getShop_place() {
60 | return shop_place;
61 | }
62 |
63 | public void setShop_place(String shop_place) {
64 | this.shop_place = shop_place;
65 | }
66 |
67 | public String getId() {
68 | return id;
69 | }
70 |
71 | public void setId(String id) {
72 | this.id = id;
73 | }
74 |
75 | public String getShop_score() {
76 | return shop_score;
77 | }
78 |
79 | public void setShop_score(String shop_score) {
80 | this.shop_score = shop_score;
81 | }
82 |
83 | public String getTaste_score() {
84 | return taste_score;
85 | }
86 |
87 | public void setTaste_score(String taste_score) {
88 | this.taste_score = taste_score;
89 | }
90 |
91 | public String getPack_score() {
92 | return pack_score;
93 | }
94 |
95 | public void setPack_score(String pack_score) {
96 | this.pack_score = pack_score;
97 | }
98 |
99 | public String getShop_img() {
100 | return shop_img;
101 | }
102 |
103 | public void setShop_img(String shop_img) {
104 | this.shop_img = shop_img;
105 | }
106 |
107 | public String getSend_time() {
108 | return send_time;
109 | }
110 |
111 | public void setSend_time(String send_time) {
112 | this.send_time = send_time;
113 | }
114 |
115 | public String getDistance() {
116 | return distance;
117 | }
118 |
119 | public void setDistance(String distance) {
120 | this.distance = distance;
121 | }
122 |
123 | public String getSell_start() {
124 | return sell_start;
125 | }
126 |
127 | public void setSell_start(String sell_start) {
128 | this.sell_start = sell_start;
129 | }
130 |
131 | public String getDistribution_price() {
132 | return distribution_price;
133 | }
134 |
135 | public void setDistribution_price(String distribution_price) {
136 | this.distribution_price = distribution_price;
137 | }
138 |
139 | public String getAverage() {
140 | return average;
141 | }
142 |
143 | public void setAverage(String average) {
144 | this.average = average;
145 | }
146 |
147 | public String getShop_num() {
148 | return shop_num;
149 | }
150 |
151 | public void setShop_num(String shop_num) {
152 | this.shop_num = shop_num;
153 | }
154 |
155 | public String getSend_score() {
156 | return send_score;
157 | }
158 |
159 | public void setSend_score(String send_score) {
160 | this.send_score = send_score;
161 | }
162 |
163 | public String getShop_name() {
164 | return shop_name;
165 | }
166 |
167 | public void setShop_name(String shop_name) {
168 | this.shop_name = shop_name;
169 | }
170 |
171 | public String getShop_type() {
172 | return shop_type;
173 | }
174 |
175 | public void setShop_type(String shop_type) {
176 | this.shop_type = shop_type;
177 | }
178 |
179 | @Override
180 | public String toString() {
181 | return "Shop{" +
182 | "id='" + id + '\'' +
183 | ", shop_score='" + shop_score + '\'' +
184 | ", taste_score='" + taste_score + '\'' +
185 | ", pack_score='" + pack_score + '\'' +
186 | ", shop_img='" + shop_img + '\'' +
187 | ", send_time='" + send_time + '\'' +
188 | ", distance='" + distance + '\'' +
189 | ", sell_start='" + sell_start + '\'' +
190 | ", distribution_price='" + distribution_price + '\'' +
191 | ", average='" + average + '\'' +
192 | ", shop_num='" + shop_num + '\'' +
193 | ", send_score='" + send_score + '\'' +
194 | ", shop_name='" + shop_name + '\'' +
195 | ", shop_type='" + shop_type + '\'' +
196 | ", shop_place='" + shop_place + '\'' +
197 | ", send_service='" + send_service + '\'' +
198 | ", type_name='" + type_name + '\'' +
199 | ", delete_flag='" + delete_flag + '\'' +
200 | ", sell_count='" + sell_count + '\'' +
201 | '}';
202 | }
203 | }
204 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/Type.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Type implements Serializable {
6 |
7 | public String id;
8 | public String type_name;
9 |
10 | public String getId() {
11 | return id;
12 | }
13 |
14 | public void setId(String id) {
15 | this.id = id;
16 | }
17 |
18 | public String getType_name() {
19 | return type_name;
20 | }
21 |
22 | public void setType_name(String type_name) {
23 | this.type_name = type_name;
24 | }
25 |
26 | @Override
27 | public String toString() {
28 | return "shop_type{" +
29 | "id='" + id + '\'' +
30 | ", type_name='" + type_name + '\'' +
31 | '}';
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/UploadInfo.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | public class UploadInfo {
4 | private Integer code;
5 | private String msg;
6 | private Object data;
7 |
8 | public UploadInfo() {
9 | }
10 |
11 | public Integer getCode() {
12 | return code;
13 | }
14 |
15 | public void setCode(Integer code) {
16 | this.code = code;
17 | }
18 |
19 | public String getMsg() {
20 | return msg;
21 | }
22 |
23 | public void setMsg(String msg) {
24 | this.msg = msg;
25 | }
26 |
27 | public Object getData() {
28 | return data;
29 | }
30 |
31 | public void setData(Object data) {
32 | this.data = data;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/User.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 | import lombok.NoArgsConstructor;
6 | import lombok.RequiredArgsConstructor;
7 |
8 | import java.io.Serializable;
9 |
10 | public class User implements Serializable {
11 | public String id;
12 | public String user_name;
13 | public String user_password;
14 | public int delete_flag;
15 | public int role_flag;
16 | public String email;
17 | public String shop_num;
18 | public String shop_name;
19 | public String shop_type;
20 |
21 | public String getEmail() {
22 | return email;
23 | }
24 |
25 | public void setEmail(String email) {
26 | this.email = email;
27 | }
28 |
29 | public String getId() {
30 | return id;
31 | }
32 |
33 | public void setId(String id) {
34 | this.id = id;
35 | }
36 |
37 | public String getShop_num() {
38 | return shop_num;
39 | }
40 |
41 | public String getShop_name() {
42 | return shop_name;
43 | }
44 |
45 | public void setShop_name(String shop_name) {
46 | this.shop_name = shop_name;
47 | }
48 |
49 | public String getShop_type() {
50 | return shop_type;
51 | }
52 |
53 | public void setShop_type(String shop_type) {
54 | this.shop_type = shop_type;
55 | }
56 |
57 | public void setShop_num(String shop_num) {
58 | this.shop_num = shop_num;
59 | }
60 |
61 | public String getUser_name() {
62 | return user_name;
63 | }
64 |
65 | public void setUser_name(String user_name) {
66 | this.user_name = user_name;
67 | }
68 |
69 | public String getUser_password() {
70 | return user_password;
71 | }
72 |
73 | public void setUser_password(String user_password) {
74 | this.user_password = user_password;
75 | }
76 |
77 | public int getDelete_flag() {
78 | return delete_flag;
79 | }
80 |
81 | public void setDelete_flag(int delete_flag) {
82 | this.delete_flag = delete_flag;
83 | }
84 |
85 | public int getRole_flag() {
86 | return role_flag;
87 | }
88 |
89 | public void setRole_flag(int role_flag) {
90 | this.role_flag = role_flag;
91 | }
92 |
93 | @Override
94 | public String toString() {
95 | return "User{" +
96 | "id='" + id + '\'' +
97 | ", user_name='" + user_name + '\'' +
98 | ", user_password='" + user_password + '\'' +
99 | ", delete_flag=" + delete_flag +
100 | ", role_flag=" + role_flag +
101 | ", email='" + email + '\'' +
102 | ", shop_num='" + shop_num + '\'' +
103 | ", shop_name='" + shop_name + '\'' +
104 | ", shop_type='" + shop_type + '\'' +
105 | '}';
106 | }
107 | }
108 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/foodComment.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class foodComment implements Serializable {
6 |
7 | public String id;
8 | public String food_id;
9 | public String user_name;
10 | public String comment_time;
11 | public String content;
12 |
13 | public String getId() {
14 | return id;
15 | }
16 |
17 | public void setId(String id) {
18 | this.id = id;
19 | }
20 |
21 | public String getFood_id() {
22 | return food_id;
23 | }
24 |
25 | public void setFood_id(String food_id) {
26 | this.food_id = food_id;
27 | }
28 |
29 | public String getUser_name() {
30 | return user_name;
31 | }
32 |
33 | public void setUser_name(String user_name) {
34 | this.user_name = user_name;
35 | }
36 |
37 | public String getComment_time() {
38 | return comment_time;
39 | }
40 |
41 | public void setComment_time(String comment_time) {
42 | this.comment_time = comment_time;
43 | }
44 |
45 | public String getContent() {
46 | return content;
47 | }
48 |
49 | public void setContent(String content) {
50 | this.content = content;
51 | }
52 |
53 | @Override
54 | public String toString() {
55 | return "foodComment{" +
56 | "id='" + id + '\'' +
57 | ", food_id='" + food_id + '\'' +
58 | ", user_name='" + user_name + '\'' +
59 | ", comment_time='" + comment_time + '\'' +
60 | ", content='" + content + '\'' +
61 | '}';
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/leftName.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class leftName implements Serializable {
6 | public String id;
7 | public String name;
8 | public String shop_num;
9 |
10 | public String getId() {
11 | return id;
12 | }
13 |
14 | public void setId(String id) {
15 | this.id = id;
16 | }
17 |
18 | public String getName() {
19 | return name;
20 | }
21 |
22 | public void setName(String name) {
23 | this.name = name;
24 | }
25 |
26 | public String getShop_num() {
27 | return shop_num;
28 | }
29 |
30 | public void setShop_num(String shop_num) {
31 | this.shop_num = shop_num;
32 | }
33 |
34 | @Override
35 | public String toString() {
36 | return "leftName{" +
37 | "id='" + id + '\'' +
38 | ", name='" + name + '\'' +
39 | ", shop_num='" + shop_num + '\'' +
40 | '}';
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/com/xc/takeaway/utils/shopComment.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway.utils;
2 |
3 | import java.io.Serializable;
4 |
5 | public class shopComment implements Serializable {
6 | public String id;
7 | public String shop_num;
8 | public String user_name;
9 | public String comment_time;
10 | public String content;
11 | public String title;
12 |
13 | public String pack_score;
14 | public String taste_score;
15 | public String shop_score;
16 | public String send_score;
17 |
18 | public String getPack_score() {
19 | return pack_score;
20 | }
21 |
22 | public void setPack_score(String pack_score) {
23 | this.pack_score = pack_score;
24 | }
25 |
26 | public String getTaste_score() {
27 | return taste_score;
28 | }
29 |
30 | public void setTaste_score(String taste_score) {
31 | this.taste_score = taste_score;
32 | }
33 |
34 | public String getShop_score() {
35 | return shop_score;
36 | }
37 |
38 | public void setShop_score(String shop_score) {
39 | this.shop_score = shop_score;
40 | }
41 |
42 | public String getSend_score() {
43 | return send_score;
44 | }
45 |
46 | public void setSend_score(String send_score) {
47 | this.send_score = send_score;
48 | }
49 |
50 | public String getId() {
51 | return id;
52 | }
53 |
54 | public void setId(String id) {
55 | this.id = id;
56 | }
57 |
58 | public String getShop_num() {
59 | return shop_num;
60 | }
61 |
62 | public void setShop_num(String shop_num) {
63 | this.shop_num = shop_num;
64 | }
65 |
66 | public String getUser_name() {
67 | return user_name;
68 | }
69 |
70 | public void setUser_name(String user_name) {
71 | this.user_name = user_name;
72 | }
73 |
74 | public String getComment_time() {
75 | return comment_time;
76 | }
77 |
78 | public void setComment_time(String comment_time) {
79 | this.comment_time = comment_time;
80 | }
81 |
82 | public String getContent() {
83 | return content;
84 | }
85 |
86 | public void setContent(String content) {
87 | this.content = content;
88 | }
89 |
90 | public String getTitle() {
91 | return title;
92 | }
93 |
94 | public void setTitle(String title) {
95 | this.title = title;
96 | }
97 |
98 | @Override
99 | public String toString() {
100 | return "shopComment{" +
101 | "id='" + id + '\'' +
102 | ", shop_num='" + shop_num + '\'' +
103 | ", user_name='" + user_name + '\'' +
104 | ", comment_time='" + comment_time + '\'' +
105 | ", content='" + content + '\'' +
106 | ", title='" + title + '\'' +
107 | ", pack_store='" + pack_score + '\'' +
108 | ", taste_score='" + taste_score + '\'' +
109 | ", shop_score='" + shop_score + '\'' +
110 | ", send_score='" + send_score + '\'' +
111 | '}';
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver
2 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/graduation?useUnicode=true&characterEncoding=utf-8
3 | spring.datasource.username=****
4 | spring.datasource.password=***
5 | spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
6 | mybatis.mapper-locations=classpath:mapper/*.xml
7 |
8 | #Îļþ¸ùĿ¼
9 | resources.root=E:/graduation/resources/
10 | resources.path=resources/
11 | resources.images=images/
12 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/Comment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
19 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/Food.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
12 |
13 |
16 |
17 |
20 |
21 |
24 |
25 |
28 |
29 |
41 |
42 |
54 |
55 |
56 |
57 | update t_sys_shop set
58 | food_name=#{food_name} ,
59 | food_price=#{food_price},
60 | left_name_id=#{left_name_id},
61 | food_img=#{food_img}
62 | where food_id=#{food_id}
63 |
64 |
65 |
66 | update t_sys_shop set delete_flag=#{delete_flag} where food_id=#{food_id}
67 |
68 |
69 |
70 | insert into t_sys_shop values(#{food_id},
71 | #{food_name},
72 | #{food_img},
73 | #{sell_count},
74 | #{shop_num},
75 | #{food_price},
76 | #{food_extra},
77 | #{left_name_id},
78 | 0)
79 |
80 |
81 |
84 |
85 |
86 | update t_sys_shop set delete_flag=1 where shop_num=#{shop_num}
87 |
88 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/LeftName.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 | insert into t_sys_shop_leftname values(#{id},#{name},#{shop_num})
10 |
11 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/Order.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | insert t_sys_order(order_id,shop_num,order_time,total_price,pay_state,food_info,extra_info,location,user_name,confirm_state,shop_img,accept_state) values (#{order_id},#{shop_num},#{order_time},#{total_price},#{pay_state},#{food_info},#{extra_info},#{location},#{user_name},1,#{shop_img},0)
7 |
8 |
9 |
12 |
13 |
16 |
17 |
20 |
21 |
22 | update t_sys_order set confirm_state =#{confirm_state} where order_id=#{order_id}
23 |
24 |
25 |
26 | update t_sys_order set accept_state =#{accept_state} where order_id=#{order_id}
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/Shop.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
12 |
13 |
14 | update t_sys_shopinfo set shop_name=#{shop_name} ,shop_place=#{shop_place} ,shop_type=#{shop_type} ,shop_img=#{shop_img} where id=#{id}
15 |
16 |
17 |
18 | update t_sys_shopinfo
19 | set pack_score=#{pack_score} ,
20 | taste_score=#{taste_score} ,
21 | send_score=#{send_score},
22 | shop_score=#{shop_score}
23 | where id=#{id}
24 |
25 |
26 |
27 | update t_sys_shopinfo set delete_flag=1 where id=#{id}
28 |
29 |
30 |
31 | insert into t_sys_shopinfo values(#{id},#{shop_score},#{taste_score},#{pack_score},#{shop_img},#{send_time},
32 | #{distance},#{sell_start},#{distribution_price},#{average},#{shop_num},#{send_score},#{shop_name},#{shop_type},
33 | #{shop_place},#{send_service},0,0)
34 |
35 |
36 |
37 | insert into t_sys_shopinfo values(#{id},5.0,5.0,5.0,#{shop_img},#{send_time},
38 | #{distance},#{sell_start},#{distribution_price},0,#{shop_num},5.0,#{shop_name},#{shop_type},
39 | #{shop_place},#{send_service},0,0)
40 |
41 |
42 |
43 | update t_sys_shopinfo
44 | set sell_count=#{sell_count},average=#{average}
45 | where shop_num=#{shop_num}
46 |
47 |
48 |
51 |
52 |
55 |
56 |
59 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/Type.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/User.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
23 |
24 |
27 |
28 |
31 |
32 |
35 |
36 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | insert t_sys_user (id,user_name,user_password,email,role_flag) values (#{id},#{user_name},#{user_password},#{email},1)
61 |
62 |
63 |
64 | insert t_sys_user (id,user_name,user_password,email,role_flag) values (#{id},#{user_name},#{user_password},#{email},2)
65 |
66 |
67 |
68 | update t_sys_user set
69 | shop_num=#{shop_num}
70 | where id=#{id}
71 |
72 |
73 |
74 | update t_sys_user set
75 | user_password=#{user_password}
76 | where user_name=#{user_name}
77 | and email=#{email}
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/test/java/com/xc/takeaway/TakeawayApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.xc.takeaway;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class TakeawayApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/target/classes/META-INF/spring.kotlin_module:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/target/classes/application.properties:
--------------------------------------------------------------------------------
1 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver
2 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/graduation?useUnicode=true&characterEncoding=utf-8
3 | spring.datasource.username=root
4 | spring.datasource.password=123456
5 | spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
6 | mybatis.mapper-locations=classpath:mapper/*.xml
7 |
8 | #�ļ���Ŀ¼
9 | resources.root=E:/graduation/resources/
10 | resources.path=resources/
11 | resources.images=images/
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/CorsConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/CorsConfig.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/Swagger2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/Swagger2.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/TakeawayApplication.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/TakeawayApplication.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/WebAPIResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/WebAPIResult.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/WebAppConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/WebAppConfig.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/ResourceController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/ResourceController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/commentController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/commentController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/foodController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/foodController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/leftnameController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/leftnameController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/orderController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/orderController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/shopOrder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/shopOrder.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/typeController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/typeController.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/controller/userCheck.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/controller/userCheck.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/CommentReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/CommentReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/FoodReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/FoodReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/LeftNameReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/LeftNameReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/OrderReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/OrderReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/ShopReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/ShopReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/TypeReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/TypeReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/reponsitory/UserReponsitory.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/reponsitory/UserReponsitory.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/commentService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/commentService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/foodService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/foodService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/leftnameService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/leftnameService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/orderService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/orderService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/shopService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/shopService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/typeService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/typeService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/service/userService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/service/userService.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/token/TokenEncryptUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/token/TokenEncryptUtils.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/token/TokenUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/token/TokenUtils.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/Food.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/Food.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/Order.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/Order.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/Shop.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/Shop.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/Type.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/Type.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/UploadInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/UploadInfo.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/User.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/foodComment.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/foodComment.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/leftName.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/leftName.class
--------------------------------------------------------------------------------
/target/classes/com/xc/takeaway/utils/shopComment.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/classes/com/xc/takeaway/utils/shopComment.class
--------------------------------------------------------------------------------
/target/classes/mapper/Comment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
19 |
--------------------------------------------------------------------------------
/target/classes/mapper/Food.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
12 |
13 |
16 |
17 |
20 |
21 |
24 |
25 |
28 |
29 |
41 |
42 |
54 |
55 |
56 |
57 | update t_sys_shop set
58 | food_name=#{food_name} ,
59 | food_price=#{food_price},
60 | left_name_id=#{left_name_id},
61 | food_img=#{food_img}
62 | where food_id=#{food_id}
63 |
64 |
65 |
66 | update t_sys_shop set delete_flag=#{delete_flag} where food_id=#{food_id}
67 |
68 |
69 |
70 | insert into t_sys_shop values(#{food_id},
71 | #{food_name},
72 | #{food_img},
73 | #{sell_count},
74 | #{shop_num},
75 | #{food_price},
76 | #{food_extra},
77 | #{left_name_id},
78 | 0)
79 |
80 |
81 |
84 |
85 |
86 | update t_sys_shop set delete_flag=1 where shop_num=#{shop_num}
87 |
88 |
--------------------------------------------------------------------------------
/target/classes/mapper/LeftName.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 | insert into t_sys_shop_leftname values(#{id},#{name},#{shop_num})
10 |
11 |
--------------------------------------------------------------------------------
/target/classes/mapper/Order.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | insert t_sys_order(order_id,shop_num,order_time,total_price,pay_state,food_info,extra_info,location,user_name,confirm_state,shop_img,accept_state) values (#{order_id},#{shop_num},#{order_time},#{total_price},#{pay_state},#{food_info},#{extra_info},#{location},#{user_name},1,#{shop_img},0)
7 |
8 |
9 |
12 |
13 |
16 |
17 |
20 |
21 |
22 | update t_sys_order set confirm_state =#{confirm_state} where order_id=#{order_id}
23 |
24 |
25 |
26 | update t_sys_order set accept_state =#{accept_state} where order_id=#{order_id}
27 |
28 |
29 |
--------------------------------------------------------------------------------
/target/classes/mapper/Shop.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
12 |
13 |
14 | update t_sys_shopinfo set shop_name=#{shop_name} ,shop_place=#{shop_place} ,shop_type=#{shop_type} ,shop_img=#{shop_img} where id=#{id}
15 |
16 |
17 |
18 | update t_sys_shopinfo
19 | set pack_score=#{pack_score} ,
20 | taste_score=#{taste_score} ,
21 | send_score=#{send_score},
22 | shop_score=#{shop_score}
23 | where id=#{id}
24 |
25 |
26 |
27 | update t_sys_shopinfo set delete_flag=1 where id=#{id}
28 |
29 |
30 |
31 | insert into t_sys_shopinfo values(#{id},#{shop_score},#{taste_score},#{pack_score},#{shop_img},#{send_time},
32 | #{distance},#{sell_start},#{distribution_price},#{average},#{shop_num},#{send_score},#{shop_name},#{shop_type},
33 | #{shop_place},#{send_service},0,0)
34 |
35 |
36 |
37 | insert into t_sys_shopinfo values(#{id},5.0,5.0,5.0,#{shop_img},#{send_time},
38 | #{distance},#{sell_start},#{distribution_price},0,#{shop_num},5.0,#{shop_name},#{shop_type},
39 | #{shop_place},#{send_service},0,0)
40 |
41 |
42 |
43 | update t_sys_shopinfo
44 | set sell_count=#{sell_count},average=#{average}
45 | where shop_num=#{shop_num}
46 |
47 |
48 |
51 |
52 |
55 |
56 |
59 |
--------------------------------------------------------------------------------
/target/classes/mapper/Type.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/target/classes/mapper/User.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
23 |
24 |
27 |
28 |
31 |
32 |
35 |
36 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | insert t_sys_user (id,user_name,user_password,email,role_flag) values (#{id},#{user_name},#{user_password},#{email},1)
61 |
62 |
63 |
64 | insert t_sys_user (id,user_name,user_password,email,role_flag) values (#{id},#{user_name},#{user_password},#{email},2)
65 |
66 |
67 |
68 | update t_sys_user set
69 | shop_num=#{shop_num}
70 | where id=#{id}
71 |
72 |
73 |
74 | update t_sys_user set
75 | user_password=#{user_password}
76 | where user_name=#{user_name}
77 | and email=#{email}
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/target/test-classes/com/xc/takeaway/TakeawayApplicationTests.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Blacksnow123/takeaway/e37db0e7b0d98298e210ed5528f543e56e333874/target/test-classes/com/xc/takeaway/TakeawayApplicationTests.class
--------------------------------------------------------------------------------