Repository: codingZhangxin/OnlineSchoolShop
Branch: master
Commit: e275f4586dce
Files: 610
Total size: 4.9 MB
Directory structure:
gitextract_1s8600lp/
├── .idea/
│ ├── OnlineSchoolShop.iml
│ ├── compiler.xml
│ ├── dataSources.local.xml
│ ├── dataSources.xml
│ ├── encodings.xml
│ ├── inspectionProfiles/
│ │ └── Project_Default.xml
│ ├── libraries/
│ │ ├── Maven__c3p0_c3p0_0_9_1_2.xml
│ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml
│ │ ├── Maven__com_alibaba_fastjson_1_2_28.xml
│ │ ├── Maven__com_fasterxml_classmate_1_4_0.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_9_8.xml
│ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_9_10_7.xml
│ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_8.xml
│ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_8.xml
│ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_8.xml
│ │ ├── Maven__com_github_jsqlparser_jsqlparser_1_0.xml
│ │ ├── Maven__com_github_pagehelper_pagehelper_5_1_4.xml
│ │ ├── Maven__com_github_pagehelper_pagehelper_spring_boot_autoconfigure_1_2_5.xml
│ │ ├── Maven__com_github_pagehelper_pagehelper_spring_boot_starter_1_2_5.xml
│ │ ├── Maven__com_github_virtuald_curvesapi_1_03.xml
│ │ ├── Maven__com_github_xiaoymin_swagger_bootstrap_ui_1_6.xml
│ │ ├── Maven__com_google_guava_guava_18_0.xml
│ │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml
│ │ ├── Maven__com_sun_mail_javax_mail_1_6_2.xml
│ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
│ │ ├── Maven__com_zaxxer_HikariCP_3_2_0.xml
│ │ ├── Maven__commons_codec_commons_codec_1_11.xml
│ │ ├── Maven__commons_fileupload_commons_fileupload_1_3_3.xml
│ │ ├── Maven__commons_io_commons_io_2_2.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__javax_activation_activation_1_1.xml
│ │ ├── Maven__javax_annotation_javax_annotation_api_1_3_2.xml
│ │ ├── Maven__javax_servlet_javax_servlet_api_4_0_1.xml
│ │ ├── Maven__javax_servlet_jstl_1_2.xml
│ │ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml
│ │ ├── Maven__junit_junit_4_12.xml
│ │ ├── Maven__mysql_mysql_connector_java_8_0_15.xml
│ │ ├── Maven__net_bytebuddy_byte_buddy_1_9_12.xml
│ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_9_12.xml
│ │ ├── Maven__net_minidev_accessors_smart_1_2.xml
│ │ ├── Maven__net_minidev_json_smart_2_3.xml
│ │ ├── Maven__org_apache_commons_commons_collections4_4_1.xml
│ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml
│ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml
│ │ ├── Maven__org_apache_poi_poi_3_17.xml
│ │ ├── Maven__org_apache_poi_poi_ooxml_3_14.xml
│ │ ├── Maven__org_apache_poi_poi_ooxml_schemas_3_14.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_17.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_17.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_17.xml
│ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_17.xml
│ │ ├── Maven__org_apache_xmlbeans_xmlbeans_2_6_0.xml
│ │ ├── Maven__org_assertj_assertj_core_3_11_1.xml
│ │ ├── Maven__org_eclipse_jdt_ecj_3_15_0.xml
│ │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml
│ │ ├── Maven__org_hamcrest_hamcrest_library_1_3.xml
│ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_16_Final.xml
│ │ ├── Maven__org_javassist_javassist_3_21_0_GA.xml
│ │ ├── Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
│ │ ├── Maven__org_mapstruct_mapstruct_1_1_0_Final.xml
│ │ ├── Maven__org_mockito_mockito_core_2_23_4.xml
│ │ ├── Maven__org_mybatis_generator_mybatis_generator_core_1_3_5.xml
│ │ ├── Maven__org_mybatis_mybatis_3_4_5.xml
│ │ ├── Maven__org_mybatis_mybatis_spring_1_3_1.xml
│ │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_1_3_1.xml
│ │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_1_3_1.xml
│ │ ├── Maven__org_objenesis_objenesis_2_6.xml
│ │ ├── Maven__org_ow2_asm_asm_5_0_4.xml
│ │ ├── Maven__org_projectlombok_lombok_1_18_6.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_26.xml
│ │ ├── Maven__org_slf4j_slf4j_api_1_7_30.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_devtools_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_mail_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_test_2_1_4_RELEASE.xml
│ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_4_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_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_beans_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_context_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_context_support_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_core_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_expression_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_jcl_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_jdbc_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_test_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_tx_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_web_5_1_6_RELEASE.xml
│ │ ├── Maven__org_springframework_spring_webmvc_5_1_6_RELEASE.xml
│ │ ├── Maven__org_xmlunit_xmlunit_core_2_6_2.xml
│ │ ├── Maven__org_yaml_snakeyaml_1_23.xml
│ │ └── Maven__stax_stax_api_1_0_1.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── vcs.xml
│ └── workspace.xml
├── README.md
├── SpringbootSchoolShop/
│ ├── .gitignore
│ ├── .mvn/
│ │ └── wrapper/
│ │ ├── MavenWrapperDownloader.java
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
│ ├── mvnw
│ ├── mvnw.cmd
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── zhang/
│ │ │ └── ssmschoolshop/
│ │ │ ├── SpringbootSchoolShopApplication.java
│ │ │ ├── annotinon/
│ │ │ │ ├── ExportEntityMap.java
│ │ │ │ └── MetricTime.java
│ │ │ ├── config/
│ │ │ │ ├── SwaggerConfig.java
│ │ │ │ └── WebMvcConfig.java
│ │ │ ├── controller/
│ │ │ │ ├── admin/
│ │ │ │ │ ├── ActivityController.java
│ │ │ │ │ ├── AdminOrderController.java
│ │ │ │ │ ├── ExcelController.java
│ │ │ │ │ ├── GoodsController.java
│ │ │ │ │ ├── LoginController.java
│ │ │ │ │ └── UserController.java
│ │ │ │ └── front/
│ │ │ │ ├── CartController.java
│ │ │ │ ├── CustomerController.java
│ │ │ │ ├── FrontGoodsController.java
│ │ │ │ ├── MainController.java
│ │ │ │ ├── OrderController.java
│ │ │ │ └── VerificationCodeImgController.java
│ │ │ ├── dao/
│ │ │ │ ├── ActivityMapper.java
│ │ │ │ ├── AddressMapper.java
│ │ │ │ ├── AdminMapper.java
│ │ │ │ ├── CategoryMapper.java
│ │ │ │ ├── CommentMapper.java
│ │ │ │ ├── FavoriteMapper.java
│ │ │ │ ├── GoodsMapper.java
│ │ │ │ ├── ImagePathMapper.java
│ │ │ │ ├── OrderItemMapper.java
│ │ │ │ ├── OrderMapper.java
│ │ │ │ ├── ShopCartMapper.java
│ │ │ │ └── UserMapper.java
│ │ │ ├── entity/
│ │ │ │ ├── Activity.java
│ │ │ │ ├── ActivityExample.java
│ │ │ │ ├── Address.java
│ │ │ │ ├── AddressExample.java
│ │ │ │ ├── Admin.java
│ │ │ │ ├── AdminExample.java
│ │ │ │ ├── Category.java
│ │ │ │ ├── CategoryExample.java
│ │ │ │ ├── Comment.java
│ │ │ │ ├── CommentExample.java
│ │ │ │ ├── EmailSend.java
│ │ │ │ ├── Favorite.java
│ │ │ │ ├── FavoriteExample.java
│ │ │ │ ├── FavoriteKey.java
│ │ │ │ ├── Goods.java
│ │ │ │ ├── GoodsExample.java
│ │ │ │ ├── GoodsPrice.java
│ │ │ │ ├── ImagePath.java
│ │ │ │ ├── ImagePathExample.java
│ │ │ │ ├── Order.java
│ │ │ │ ├── OrderExample.java
│ │ │ │ ├── OrderItem.java
│ │ │ │ ├── OrderItemExample.java
│ │ │ │ ├── ShopCart.java
│ │ │ │ ├── ShopCartExample.java
│ │ │ │ ├── ShopCartKey.java
│ │ │ │ ├── User.java
│ │ │ │ └── UserExample.java
│ │ │ ├── service/
│ │ │ │ ├── ActivityService.java
│ │ │ │ ├── AddressService.java
│ │ │ │ ├── AdminService.java
│ │ │ │ ├── CateService.java
│ │ │ │ ├── CommentService.java
│ │ │ │ ├── EmailService.java
│ │ │ │ ├── GoodsService.java
│ │ │ │ ├── OrderService.java
│ │ │ │ ├── ShopCartService.java
│ │ │ │ ├── UserService.java
│ │ │ │ └── impl/
│ │ │ │ ├── ActivityServiceImpl.java
│ │ │ │ ├── AddressServiceImpl.java
│ │ │ │ ├── AdminServiceImpl.java
│ │ │ │ ├── CateServiceImpl.java
│ │ │ │ ├── CommentServiceImpl.java
│ │ │ │ ├── EmailServiceImpl.java
│ │ │ │ ├── GoodsServiceImpl.java
│ │ │ │ ├── OrderServiceImpl.java
│ │ │ │ ├── ShopCartServiceImpl.java
│ │ │ │ └── UserServiceImpl.java
│ │ │ └── util/
│ │ │ ├── ExcelUtils.java
│ │ │ ├── ImageUtil.java
│ │ │ ├── Md5Util.java
│ │ │ ├── Msg.java
│ │ │ └── verificate/
│ │ │ └── Verificate.java
│ │ ├── resources/
│ │ │ ├── application.yml
│ │ │ ├── banner.txt
│ │ │ └── mapper/
│ │ │ ├── ActivityMapper.xml
│ │ │ ├── AddressMapper.xml
│ │ │ ├── AdminMapper.xml
│ │ │ ├── CategoryMapper.xml
│ │ │ ├── CommentMapper.xml
│ │ │ ├── FavoriteMapper.xml
│ │ │ ├── GoodsMapper.xml
│ │ │ ├── ImagePathMapper.xml
│ │ │ ├── OrderItemMapper.xml
│ │ │ ├── OrderMapper.xml
│ │ │ ├── ShopCartMapper.xml
│ │ │ └── UserMapper.xml
│ │ └── webapp/
│ │ ├── WEB-INF/
│ │ │ └── views/
│ │ │ ├── activity.jsp
│ │ │ ├── addActivity.jsp
│ │ │ ├── addCategory.jsp
│ │ │ ├── addGoods.jsp
│ │ │ ├── address.jsp
│ │ │ ├── admin.jsp
│ │ │ ├── adminAllGoods.jsp
│ │ │ ├── adminAllOrder.jsp
│ │ │ ├── adminLogin.jsp
│ │ │ ├── adminOrderComplete.jsp
│ │ │ ├── adminOrderNav.jsp
│ │ │ ├── adminOrderReceive.jsp
│ │ │ ├── category.jsp
│ │ │ ├── chatrobot.jsp
│ │ │ ├── detail.jsp
│ │ │ ├── favorite.jsp
│ │ │ ├── goodsNav.jsp
│ │ │ ├── header.jsp
│ │ │ ├── information.jsp
│ │ │ ├── list.jsp
│ │ │ ├── login.jsp
│ │ │ ├── main.jsp
│ │ │ ├── orderConfirm.jsp
│ │ │ ├── register.jsp
│ │ │ ├── search.jsp
│ │ │ ├── shopcart.jsp
│ │ │ ├── sidebar.jsp
│ │ │ ├── userManage.jsp
│ │ │ └── verificationcodeimg.jsp
│ │ ├── css/
│ │ │ ├── bootstrap/
│ │ │ │ ├── css/
│ │ │ │ │ ├── bootstrap-theme.css
│ │ │ │ │ └── bootstrap.css
│ │ │ │ └── js/
│ │ │ │ ├── bootstrap.js
│ │ │ │ └── npm.js
│ │ │ ├── chat.css
│ │ │ ├── chatrobot.css
│ │ │ ├── favorite.css
│ │ │ ├── information.css
│ │ │ ├── infostyle.css
│ │ │ ├── login.css
│ │ │ ├── main.css
│ │ │ ├── order.css
│ │ │ ├── release.css
│ │ │ ├── shopcart.css
│ │ │ ├── shopdetail.css
│ │ │ ├── style.css
│ │ │ ├── sweetalert.css
│ │ │ └── templatemo-style.css
│ │ ├── fonts/
│ │ │ └── FontAwesome.otf
│ │ └── js/
│ │ ├── address.js
│ │ ├── adminchat.js
│ │ ├── categery.js
│ │ ├── detail.js
│ │ ├── distpicker.js
│ │ ├── goodsManage.js
│ │ ├── holder.js
│ │ ├── information.js
│ │ ├── jquery.js
│ │ ├── jquery.raty.js
│ │ ├── list.js
│ │ ├── login.js
│ │ ├── mqttws31.js
│ │ ├── order.js
│ │ ├── send.js
│ │ ├── shopcart.js
│ │ ├── sort.js
│ │ ├── templatemo-script.js
│ │ ├── userManage.js
│ │ └── validate.js
│ └── test/
│ └── java/
│ └── com/
│ └── zhang/
│ └── ssmschoolshop/
│ └── SpringbootSchoolShopApplicationApplicationTests.java
├── db_springbootshopmaster.sql
├── ssmschoolshop/
│ ├── .idea/
│ │ ├── compiler.xml
│ │ ├── dataSources/
│ │ │ └── 2c2b7821-8da1-495a-884a-0b2c51399650.xml
│ │ ├── dataSources.local.xml
│ │ ├── dataSources.xml
│ │ ├── encodings.xml
│ │ ├── misc.xml
│ │ └── workspace.xml
│ ├── generatorConfig.xml
│ ├── pom.xml
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── zhang/
│ │ │ │ └── ssmschoolshop/
│ │ │ │ ├── asd.java
│ │ │ │ ├── controller/
│ │ │ │ │ ├── admin/
│ │ │ │ │ │ ├── ActivityController.java
│ │ │ │ │ │ ├── AdminOrderController.java
│ │ │ │ │ │ ├── GoodsController.java
│ │ │ │ │ │ ├── LoginController.java
│ │ │ │ │ │ └── UserController.java
│ │ │ │ │ └── front/
│ │ │ │ │ ├── CartController.java
│ │ │ │ │ ├── ChatController.java
│ │ │ │ │ ├── CustomerController.java
│ │ │ │ │ ├── FrontGoodsController.java
│ │ │ │ │ ├── MainController.java
│ │ │ │ │ ├── OrderController.java
│ │ │ │ │ └── VerificationCodeImgController.java
│ │ │ │ ├── dao/
│ │ │ │ │ ├── ActivityMapper.java
│ │ │ │ │ ├── AddressMapper.java
│ │ │ │ │ ├── AdminMapper.java
│ │ │ │ │ ├── CategoryMapper.java
│ │ │ │ │ ├── ChatMapper.java
│ │ │ │ │ ├── CommentMapper.java
│ │ │ │ │ ├── DeliverMapper.java
│ │ │ │ │ ├── FavoriteMapper.java
│ │ │ │ │ ├── GoodsMapper.java
│ │ │ │ │ ├── ImagePathMapper.java
│ │ │ │ │ ├── OrderItemMapper.java
│ │ │ │ │ ├── OrderMapper.java
│ │ │ │ │ ├── ShopCartMapper.java
│ │ │ │ │ └── UserMapper.java
│ │ │ │ ├── entity/
│ │ │ │ │ ├── Activity.java
│ │ │ │ │ ├── ActivityExample.java
│ │ │ │ │ ├── Address.java
│ │ │ │ │ ├── AddressExample.java
│ │ │ │ │ ├── Admin.java
│ │ │ │ │ ├── AdminExample.java
│ │ │ │ │ ├── Category.java
│ │ │ │ │ ├── CategoryExample.java
│ │ │ │ │ ├── Chat.java
│ │ │ │ │ ├── ChatExample.java
│ │ │ │ │ ├── Comment.java
│ │ │ │ │ ├── CommentExample.java
│ │ │ │ │ ├── Deliver.java
│ │ │ │ │ ├── DeliverExample.java
│ │ │ │ │ ├── Favorite.java
│ │ │ │ │ ├── FavoriteExample.java
│ │ │ │ │ ├── FavoriteKey.java
│ │ │ │ │ ├── Goods.java
│ │ │ │ │ ├── GoodsExample.java
│ │ │ │ │ ├── GoodsPrice.java
│ │ │ │ │ ├── ImagePath.java
│ │ │ │ │ ├── ImagePathExample.java
│ │ │ │ │ ├── Order.java
│ │ │ │ │ ├── OrderExample.java
│ │ │ │ │ ├── OrderItem.java
│ │ │ │ │ ├── OrderItemExample.java
│ │ │ │ │ ├── ShopCart.java
│ │ │ │ │ ├── ShopCartExample.java
│ │ │ │ │ ├── ShopCartKey.java
│ │ │ │ │ ├── User.java
│ │ │ │ │ └── UserExample.java
│ │ │ │ ├── service/
│ │ │ │ │ ├── ActivityService.java
│ │ │ │ │ ├── AddressService.java
│ │ │ │ │ ├── AdminService.java
│ │ │ │ │ ├── CateService.java
│ │ │ │ │ ├── ChatService.java
│ │ │ │ │ ├── CommentService.java
│ │ │ │ │ ├── GoodsService.java
│ │ │ │ │ ├── OrderService.java
│ │ │ │ │ ├── ShopCartService.java
│ │ │ │ │ ├── UserService.java
│ │ │ │ │ └── impl/
│ │ │ │ │ ├── ActivityServiceImpl.java
│ │ │ │ │ ├── AddressServiceImpl.java
│ │ │ │ │ ├── AdminServiceImpl.java
│ │ │ │ │ ├── CateServiceImpl.java
│ │ │ │ │ ├── ChatServiceImpl.java
│ │ │ │ │ ├── CommentServiceImpl.java
│ │ │ │ │ ├── GoodsServiceImpl.java
│ │ │ │ │ ├── OrderServiceImpl.java
│ │ │ │ │ ├── ShopCartServiceImpl.java
│ │ │ │ │ └── UserServiceImpl.java
│ │ │ │ └── util/
│ │ │ │ ├── ImageUtil.java
│ │ │ │ ├── Msg.java
│ │ │ │ └── verificate/
│ │ │ │ └── Verificate.java
│ │ │ ├── resources/
│ │ │ │ ├── applicationContext.xml
│ │ │ │ ├── dbconfig.properties
│ │ │ │ ├── mapper/
│ │ │ │ │ ├── ActivityMapper.xml
│ │ │ │ │ ├── AddressMapper.xml
│ │ │ │ │ ├── AdminMapper.xml
│ │ │ │ │ ├── CategoryMapper.xml
│ │ │ │ │ ├── ChatMapper.xml
│ │ │ │ │ ├── CommentMapper.xml
│ │ │ │ │ ├── DeliverMapper.xml
│ │ │ │ │ ├── FavoriteMapper.xml
│ │ │ │ │ ├── GoodsMapper.xml
│ │ │ │ │ ├── ImagePathMapper.xml
│ │ │ │ │ ├── OrderItemMapper.xml
│ │ │ │ │ ├── OrderMapper.xml
│ │ │ │ │ ├── ShopCartMapper.xml
│ │ │ │ │ └── UserMapper.xml
│ │ │ │ ├── mybatis-config.xml
│ │ │ │ └── spring-mvc.xml
│ │ │ └── webapp/
│ │ │ ├── WEB-INF/
│ │ │ │ ├── views/
│ │ │ │ │ ├── activity.jsp
│ │ │ │ │ ├── addActivity.jsp
│ │ │ │ │ ├── addCategory.jsp
│ │ │ │ │ ├── addGoods.jsp
│ │ │ │ │ ├── address.jsp
│ │ │ │ │ ├── admin.jsp
│ │ │ │ │ ├── adminAllGoods.jsp
│ │ │ │ │ ├── adminAllOrder.jsp
│ │ │ │ │ ├── adminChat.jsp
│ │ │ │ │ ├── adminLogin.jsp
│ │ │ │ │ ├── adminOrderComplete.jsp
│ │ │ │ │ ├── adminOrderNav.jsp
│ │ │ │ │ ├── adminOrderReceive.jsp
│ │ │ │ │ ├── category.jsp
│ │ │ │ │ ├── chat.jsp
│ │ │ │ │ ├── chatrobot.jsp
│ │ │ │ │ ├── detail.jsp
│ │ │ │ │ ├── favorite.jsp
│ │ │ │ │ ├── frontChat.jsp
│ │ │ │ │ ├── goodsNav.jsp
│ │ │ │ │ ├── header.jsp
│ │ │ │ │ ├── information.jsp
│ │ │ │ │ ├── list.jsp
│ │ │ │ │ ├── login.jsp
│ │ │ │ │ ├── main.jsp
│ │ │ │ │ ├── orderConfirm.jsp
│ │ │ │ │ ├── register.jsp
│ │ │ │ │ ├── search.jsp
│ │ │ │ │ ├── shopcart.jsp
│ │ │ │ │ ├── sidebar.jsp
│ │ │ │ │ ├── userManage.jsp
│ │ │ │ │ └── verificationcodeimg.jsp
│ │ │ │ └── web.xml
│ │ │ ├── css/
│ │ │ │ ├── bootstrap/
│ │ │ │ │ ├── css/
│ │ │ │ │ │ ├── bootstrap-theme.css
│ │ │ │ │ │ └── bootstrap.css
│ │ │ │ │ └── js/
│ │ │ │ │ ├── bootstrap.js
│ │ │ │ │ └── npm.js
│ │ │ │ ├── chat.css
│ │ │ │ ├── chatrobot.css
│ │ │ │ ├── favorite.css
│ │ │ │ ├── information.css
│ │ │ │ ├── infostyle.css
│ │ │ │ ├── login.css
│ │ │ │ ├── main.css
│ │ │ │ ├── order.css
│ │ │ │ ├── release.css
│ │ │ │ ├── shopcart.css
│ │ │ │ ├── shopdetail.css
│ │ │ │ ├── style.css
│ │ │ │ ├── sweetalert.css
│ │ │ │ └── templatemo-style.css
│ │ │ ├── fonts/
│ │ │ │ └── FontAwesome.otf
│ │ │ └── js/
│ │ │ ├── address.js
│ │ │ ├── adminchat.js
│ │ │ ├── categery.js
│ │ │ ├── chat.js
│ │ │ ├── detail.js
│ │ │ ├── distpicker.js
│ │ │ ├── goodsManage.js
│ │ │ ├── holder.js
│ │ │ ├── information.js
│ │ │ ├── jquery.js
│ │ │ ├── jquery.raty.js
│ │ │ ├── list.js
│ │ │ ├── login.js
│ │ │ ├── mqttws31.js
│ │ │ ├── order.js
│ │ │ ├── send.js
│ │ │ ├── shopcart.js
│ │ │ ├── sort.js
│ │ │ ├── templatemo-script.js
│ │ │ ├── userManage.js
│ │ │ └── validate.js
│ │ └── test/
│ │ └── java/
│ │ └── com/
│ │ └── zhang/
│ │ └── test/
│ │ └── MBGTest.java
│ ├── ssmschoolshop.iml
│ └── target/
│ ├── classes/
│ │ ├── applicationContext.xml
│ │ ├── dbconfig.properties
│ │ ├── mapper/
│ │ │ ├── ActivityMapper.xml
│ │ │ ├── AddressMapper.xml
│ │ │ ├── AdminMapper.xml
│ │ │ ├── CategoryMapper.xml
│ │ │ ├── ChatMapper.xml
│ │ │ ├── CommentMapper.xml
│ │ │ ├── DeliverMapper.xml
│ │ │ ├── FavoriteMapper.xml
│ │ │ ├── GoodsMapper.xml
│ │ │ ├── ImagePathMapper.xml
│ │ │ ├── OrderItemMapper.xml
│ │ │ ├── OrderMapper.xml
│ │ │ ├── ShopCartMapper.xml
│ │ │ └── UserMapper.xml
│ │ ├── mybatis-config.xml
│ │ └── spring-mvc.xml
│ └── ssmschoolshop/
│ ├── META-INF/
│ │ └── MANIFEST.MF
│ ├── WEB-INF/
│ │ ├── classes/
│ │ │ ├── applicationContext.xml
│ │ │ ├── dbconfig.properties
│ │ │ ├── mapper/
│ │ │ │ ├── ActivityMapper.xml
│ │ │ │ ├── AddressMapper.xml
│ │ │ │ ├── AdminMapper.xml
│ │ │ │ ├── CategoryMapper.xml
│ │ │ │ ├── ChatMapper.xml
│ │ │ │ ├── CommentMapper.xml
│ │ │ │ ├── DeliverMapper.xml
│ │ │ │ ├── FavoriteMapper.xml
│ │ │ │ ├── GoodsMapper.xml
│ │ │ │ ├── ImagePathMapper.xml
│ │ │ │ ├── OrderItemMapper.xml
│ │ │ │ ├── OrderMapper.xml
│ │ │ │ ├── ShopCartMapper.xml
│ │ │ │ └── UserMapper.xml
│ │ │ ├── mybatis-config.xml
│ │ │ └── spring-mvc.xml
│ │ ├── lib/
│ │ │ ├── aspectjweaver-1.8.9.jar
│ │ │ ├── c3p0-0.9.1.jar
│ │ │ ├── commons-fileupload-1.3.3.jar
│ │ │ ├── commons-io-2.2.jar
│ │ │ ├── commons-logging-1.2.jar
│ │ │ ├── jackson-annotations-2.8.0.jar
│ │ │ ├── jackson-core-2.8.9.jar
│ │ │ ├── jackson-databind-2.8.9.jar
│ │ │ ├── jsqlparser-1.0.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── mybatis-3.4.4.jar
│ │ │ ├── mybatis-generator-core-1.3.5.jar
│ │ │ ├── mybatis-spring-1.3.1.jar
│ │ │ ├── mysql-connector-java-5.1.29.jar
│ │ │ ├── pagehelper-5.0.3.jar
│ │ │ ├── spring-aop-4.3.9.RELEASE.jar
│ │ │ ├── spring-aspects-4.3.9.RELEASE.jar
│ │ │ ├── spring-beans-4.3.9.RELEASE.jar
│ │ │ ├── spring-context-4.3.9.RELEASE.jar
│ │ │ ├── spring-core-4.3.9.RELEASE.jar
│ │ │ ├── spring-expression-4.3.9.RELEASE.jar
│ │ │ ├── spring-jdbc-4.3.9.RELEASE.jar
│ │ │ ├── spring-tx-4.3.9.RELEASE.jar
│ │ │ ├── spring-web-4.3.9.RELEASE.jar
│ │ │ └── spring-webmvc-4.3.9.RELEASE.jar
│ │ ├── views/
│ │ │ ├── activity.jsp
│ │ │ ├── addActivity.jsp
│ │ │ ├── addCategory.jsp
│ │ │ ├── addGoods.jsp
│ │ │ ├── address.jsp
│ │ │ ├── admin.jsp
│ │ │ ├── adminAllGoods.jsp
│ │ │ ├── adminAllOrder.jsp
│ │ │ ├── adminChat.jsp
│ │ │ ├── adminLogin.jsp
│ │ │ ├── adminOrderComplete.jsp
│ │ │ ├── adminOrderNav.jsp
│ │ │ ├── adminOrderReceive.jsp
│ │ │ ├── category.jsp
│ │ │ ├── chat.jsp
│ │ │ ├── chatrobot.jsp
│ │ │ ├── detail.jsp
│ │ │ ├── favorite.jsp
│ │ │ ├── frontChat.jsp
│ │ │ ├── goodsNav.jsp
│ │ │ ├── header.jsp
│ │ │ ├── information.jsp
│ │ │ ├── list.jsp
│ │ │ ├── login.jsp
│ │ │ ├── main.jsp
│ │ │ ├── orderConfirm.jsp
│ │ │ ├── register.jsp
│ │ │ ├── search.jsp
│ │ │ ├── shopcart.jsp
│ │ │ ├── sidebar.jsp
│ │ │ ├── userManage.jsp
│ │ │ └── verificationcodeimg.jsp
│ │ └── web.xml
│ ├── css/
│ │ ├── bootstrap/
│ │ │ ├── css/
│ │ │ │ ├── bootstrap-theme.css
│ │ │ │ └── bootstrap.css
│ │ │ └── js/
│ │ │ ├── bootstrap.js
│ │ │ └── npm.js
│ │ ├── chat.css
│ │ ├── chatrobot.css
│ │ ├── favorite.css
│ │ ├── information.css
│ │ ├── infostyle.css
│ │ ├── login.css
│ │ ├── main.css
│ │ ├── order.css
│ │ ├── release.css
│ │ ├── shopcart.css
│ │ ├── shopdetail.css
│ │ ├── style.css
│ │ ├── sweetalert.css
│ │ └── templatemo-style.css
│ ├── fonts/
│ │ └── FontAwesome.otf
│ └── js/
│ ├── address.js
│ ├── adminchat.js
│ ├── categery.js
│ ├── chat.js
│ ├── detail.js
│ ├── distpicker.js
│ ├── goodsManage.js
│ ├── holder.js
│ ├── information.js
│ ├── jquery.js
│ ├── jquery.raty.js
│ ├── list.js
│ ├── login.js
│ ├── mqttws31.js
│ ├── order.js
│ ├── send.js
│ ├── shopcart.js
│ ├── sort.js
│ ├── templatemo-script.js
│ ├── userManage.js
│ └── validate.js
└── 新建文本文档.txt
================================================
FILE CONTENTS
================================================
================================================
FILE: .idea/OnlineSchoolShop.iml
================================================
================================================
FILE: .idea/compiler.xml
================================================
================================================
FILE: .idea/dataSources.local.xml
================================================
master_key
root
================================================
FILE: .idea/dataSources.xml
================================================
mysql.8
true
com.mysql.cj.jdbc.Driver
jdbc:mysql://localhost:3306
================================================
FILE: .idea/encodings.xml
================================================
================================================
FILE: .idea/inspectionProfiles/Project_Default.xml
================================================
58
true
================================================
FILE: .idea/libraries/Maven__c3p0_c3p0_0_9_1_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_alibaba_fastjson_1_2_28.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_classmate_1_4_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_8.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_10_7.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_8.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_8.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_8.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_jsqlparser_jsqlparser_1_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_pagehelper_pagehelper_5_1_4.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_autoconfigure_1_2_5.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_starter_1_2_5.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_virtuald_curvesapi_1_03.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_github_xiaoymin_swagger_bootstrap_ui_1_6.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_google_guava_guava_18_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_sun_mail_javax_mail_1_6_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
================================================
================================================
FILE: .idea/libraries/Maven__com_zaxxer_HikariCP_3_2_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__commons_codec_commons_codec_1_11.xml
================================================
================================================
FILE: .idea/libraries/Maven__commons_fileupload_commons_fileupload_1_3_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__commons_io_commons_io_2_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_core_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_schema_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_spi_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_spring_web_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_swagger2_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_swagger_common_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_springfox_springfox_swagger_ui_2_7_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_swagger_swagger_annotations_1_5_13.xml
================================================
================================================
FILE: .idea/libraries/Maven__io_swagger_swagger_models_1_5_13.xml
================================================
================================================
FILE: .idea/libraries/Maven__javax_activation_activation_1_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__javax_servlet_jstl_1_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
================================================
================================================
FILE: .idea/libraries/Maven__junit_junit_4_12.xml
================================================
================================================
FILE: .idea/libraries/Maven__mysql_mysql_connector_java_8_0_15.xml
================================================
================================================
FILE: .idea/libraries/Maven__net_bytebuddy_byte_buddy_1_9_12.xml
================================================
================================================
FILE: .idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_9_12.xml
================================================
================================================
FILE: .idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__net_minidev_json_smart_2_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_commons_commons_collections4_4_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_poi_poi_3_17.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_poi_poi_ooxml_3_14.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_3_14.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_17.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_17.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_jasper_9_0_17.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_17.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_2_6_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_assertj_assertj_core_3_11_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_eclipse_jdt_ecj_3_15_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_16_Final.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mapstruct_mapstruct_1_1_0_Final.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mockito_mockito_core_2_23_4.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mybatis_generator_mybatis_generator_core_1_3_5.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mybatis_mybatis_3_4_5.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_1_3_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_1_3_1.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_objenesis_objenesis_2_6.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_projectlombok_lombok_1_18_6.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_reflections_reflections_0_9_11.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_26.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_slf4j_slf4j_api_1_7_30.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_mail_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_4_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_plugin_spring_plugin_core_1_2_0_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_plugin_spring_plugin_metadata_1_2_0_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_aop_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_beans_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_context_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_context_support_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_core_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_expression_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_jcl_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_jdbc_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_test_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_tx_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_web_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_springframework_spring_webmvc_5_1_6_RELEASE.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_2.xml
================================================
================================================
FILE: .idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml
================================================
================================================
FILE: .idea/libraries/Maven__stax_stax_api_1_0_1.xml
================================================
================================================
FILE: .idea/misc.xml
================================================
================================================
FILE: .idea/modules.xml
================================================
================================================
FILE: .idea/vcs.xml
================================================
================================================
FILE: .idea/workspace.xml
================================================
linux
D:/upload
/usr/upload
os.toLowerCase().startsWith("linux")
windows
poi
BORDER_THIN
getRecordByTxt
HSSFCellStyle
D:/upload/
os.toLowerCase().startsWith
os.toLowerCase().startsWith("
emailService
jr
1627096897549
1627096897549
1627105452192
1627105452192
1627105626945
1627105626945
file://$PROJECT_DIR$/SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/service/impl/EmailServiceImpl.java
99
file://$PROJECT_DIR$/SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/service/impl/EmailServiceImpl.java
66
jar://$MAVEN_REPOSITORY$/org/springframework/spring-context-support/5.1.6.RELEASE/spring-context-support-5.1.6.RELEASE.jar!/org/springframework/mail/javamail/JavaMailSenderImpl.class
145
Spring
OnlineSchoolShop
1.8
================================================
FILE: README.md
================================================
**OnlineSchoolShop-基于Spring boot/SSM商城的搭建教程**
加微信18229819406,提供有偿定制化修改
疑难代码问题,也可以加微信提供指导,包括问题定位,代码运行,服务改写
微信公众号 codingzx ,后台留言答疑 [承接微信公众号后台开发]
> API接口访问 http://127.0.0.1:8081/shop/swagger-ui.html
> 管理员访问 http://127.0.0.1:8081/shop/admin/login
> 普通用户访问 http://127.0.0.1:8081/shop/
>管理员帐号 admin 12345678
>用户帐号 root codingzx admin 密码均为 12345678
图片保存路径: 可以全局搜索后替换
windows: D:/upload
linux: /usr/upload
mac:需要修改代码,见下面已知问题记录. 或者代码全局搜索 // todo mac需要修改地址
**技术栈**
* 后端: SpringBoot Swagger Docker(docker需自己搭建docker环境)
* 前端: JSP
* 数据库:MySQL
* 技术语言 jdk 1.8
* 开发平台 Idea 2018 +win10
* 运行环境 Linux/Windows
毕业设计基于SSM/Springboot的商城项目,一个简单的商城,界面友好,但是不是很漂亮。实现了商城所有基本功能。
作为改写的基础模板,可以增加或者改写的功能:
1. [已实现] 增加word和excel模板 ; excel导出 和 文件导入
2. 增加redis,存储商品信息主要存储。
增加mq,订单并发,再购物车层次上做到入库并发控制
3. [已实现] 增加邮件发送,订单支付成功和发货成功给客户和管理员分别发送邮件 ; # 已实现 (代码注释掉,根据自己需求增加)
4. 增加支付功能,可以用支付宝当面付,入门门槛低
5. 增加合作登陆,用QQ/微信/GITHUB等登陆,存储信息入库
6. 增加数据分析,用Echart分析数据
7. 部署采用docker和nginx做到动静分离。需要改写jsp为模板themeleaf。
8. [已实现] swagger 接口在线预览 # 已实现
9. 每天定时任务,清理异常订单 并发送邮件
10. 死信队列处理延迟任务 用户下单1小时后,自动检查订单是否发货
11. html导出pdf - wkhtmltopdf插件
12. [已实现] 增加货物自提功能,输入验证码后用户自提
有两个版本 一个springboot,一个ssm(已废弃)。
PS:最近发现以前的毕业设计居然有很多人引用,github上的fork和star数也很多,感觉无形之间又'帮助'了很多人。
本项目主要也是改写的基础的商城项目,没有任何的技巧。
一.系统架构
前端:jsp
后台:springboot
二.项目运行图
用户端:



管理员端:




# 图片不能显示
原因:初始图片没有存储,可以在后台添加一个商品,查看图片存储路径:
windows:D:/upload
Linux:/usr/upload
# 其他
有好的开发分支欢迎提交Pr
目前已知问题:
1. 项目适配mac有些问题需要修改,默认创建图片文件夹,mac会提示没有权限创建.
> 对应解决方案: 修改tomcat的虚拟映射目录 ; 修改图片入库
- "WebMvcConfig"类修改Mac对应的图片存储目录,如把D盘改为Mac对应用户的文件夹 /users/codingzx/upload (codingzx为你自己的mac用户名)
- 修改图片入库路径
2. sendEmailToAdmin 和 sendEmailToUser 方法实现有点问题 待更新 。可以注释掉相应代码
3. SSM版本图片显示不出来
> 对应解决方案: 修改tomcat的虚拟映射目录 ;
手动更改tomcat的配置文件 ,添加本地图片到 虚拟路径“/pictures”的映射
更新日志:
================================================
FILE: SpringbootSchoolShop/.gitignore
================================================
HELP.md
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
/build/
### VS Code ###
.vscode/
================================================
FILE: SpringbootSchoolShop/.mvn/wrapper/MavenWrapperDownloader.java
================================================
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: : " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
================================================
FILE: SpringbootSchoolShop/.mvn/wrapper/maven-wrapper.properties
================================================
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
================================================
FILE: SpringbootSchoolShop/mvnw
================================================
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
# TODO classpath?
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
wget "$jarUrl" -O "$wrapperJarPath"
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
curl -o "$wrapperJarPath" "$jarUrl"
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
================================================
FILE: SpringbootSchoolShop/mvnw.cmd
================================================
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
echo Found %WRAPPER_JAR%
) else (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
echo Finished downloading %WRAPPER_JAR%
)
@REM End of extension
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
================================================
FILE: SpringbootSchoolShop/pom.xml
================================================
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.4.RELEASE
com.zhang
SpringbootSchoolShop
0.0.1-SNAPSHOT
SpringbootSchoolShop
Demo project for Spring Boot
jar
1.8
true
org.springframework.boot
spring-boot-starter
mysql
mysql-connector-java
c3p0
c3p0
0.9.1.2
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-web
javax.servlet
javax.servlet-api
javax.servlet
jstl
org.springframework.boot
spring-boot-starter-tomcat
org.apache.tomcat.embed
tomcat-embed-jasper
org.springframework.boot
spring-boot-starter-web
org.mybatis.spring.boot
mybatis-spring-boot-starter
1.3.1
org.mybatis.generator
mybatis-generator-core
1.3.5
org.projectlombok
lombok
true
com.github.pagehelper
pagehelper-spring-boot-starter
1.2.5
org.springframework.boot
spring-boot-devtools
runtime
io.springfox
springfox-swagger2
2.7.0
io.springfox
springfox-swagger-ui
2.7.0
com.github.xiaoymin
swagger-bootstrap-ui
1.6
com.fasterxml.jackson.core
jackson-databind
2.9.10.7
commons-fileupload
commons-fileupload
1.3.3
junit
junit
test
com.alibaba
fastjson
1.2.28
org.springframework.boot
spring-boot-starter-mail
org.slf4j
slf4j-api
1.7.30
org.apache.poi
poi
3.17
org.apache.poi
poi-ooxml
3.14
poi
org.apache.poi
src/main/webapp
META-INF/resources
**/**
src/main/resources
false
**/**
org.springframework.boot
spring-boot-maven-plugin
true
1.4.2.RELEASE
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/SpringbootSchoolShopApplication.java
================================================
package com.zhang.ssmschoolshop;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.mail.MailException;
import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@EnableSwagger2
@MapperScan("com.zhang.ssmschoolshop.dao")
public class SpringbootSchoolShopApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(SpringbootSchoolShopApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(SpringbootSchoolShopApplication.class, args);
}
@Bean
public MailSender mailSender(){
return new MailSender() {
@Override
public void send(SimpleMailMessage simpleMailMessage) throws MailException {
}
@Override
public void send(SimpleMailMessage... simpleMailMessages) throws MailException {
}
};
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/annotinon/ExportEntityMap.java
================================================
package com.zhang.ssmschoolshop.annotinon;
/**
* @author codingzx
* @description
* @date 2021/4/11 11:21
*/
import java.lang.annotation.*;
/**
* @author created by zhangxin27695
* @Classname ExportEntityMap
* @Description
* @Date 2020-03-23 8:58
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ExportEntityMap {
String EnName() default "数据库列名";
String CnName() default "实体映射名";
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/annotinon/MetricTime.java
================================================
package com.zhang.ssmschoolshop.annotinon;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author codingzx
* @description
* @date 2021/4/14 21:08
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MetricTime {
String value();
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/config/SwaggerConfig.java
================================================
package com.zhang.ssmschoolshop.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
.apis(RequestHandlerSelectors.basePackage("com.zhang.ssmschoolshop"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("毕设商城系统API")
.contact(new Contact("zhangxin", "http://www.github.com/codingzhangxin", "994683607@qq.com"))
.version("1.0")
.build();
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/config/WebMvcConfig.java
================================================
package com.zhang.ssmschoolshop.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author created by CodingZhangxin
* @version v.0.1
* @Description TODO
* @date 2019/5/10
* @备注 springboot内置tomcat配置虚拟路径
* linux: /usr/upload /pictures
* window: d:/upload /pictures
**/
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
String os = System.getProperty("os.name");
String pathPatterns="/pictures/**";
String pathAbsolute="file:D:/upload/";
if (!os.toLowerCase().startsWith("windows")){
// todo mac需要修改地址
pathAbsolute="file:/usr/upload/";
}
registry.addResourceHandler(pathPatterns).addResourceLocations(pathAbsolute);
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/ActivityController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.Activity;
import com.zhang.ssmschoolshop.entity.ActivityExample;
import com.zhang.ssmschoolshop.entity.Admin;
import com.zhang.ssmschoolshop.entity.Goods;
import com.zhang.ssmschoolshop.service.ActivityService;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.util.Msg;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpSession;
import java.util.List;
@Controller
@RequestMapping("/admin/activity")
@Api(value="促销活动controller",tags={"促销活动操作接口"})
public class ActivityController {
@Autowired(required = false)
ActivityService activityService;
@Autowired(required = false)
GoodsService goodsService;
@RequestMapping("/show")
public String showActivity(@RequestParam(value = "page",defaultValue = "1") Integer pn, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
//一页显示几个数据
PageHelper.startPage(pn, 10);
ActivityExample activityExample = new ActivityExample();
activityExample.or();
List activityList = activityService.getAllActivity(activityExample);
//显示几个页号
PageInfo page = new PageInfo(activityList,5);
model.addAttribute("pageInfo", page);
return "activity";
}
@RequestMapping("/showjson")
@ResponseBody
public Msg showActivityJson(@RequestParam(value = "page",defaultValue = "1") Integer pn, Model model , HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return Msg.fail("请先登录");
}
ActivityExample activityExample = new ActivityExample();
activityExample.or();
List activityList = activityService.getAllActivity(activityExample);
return Msg.success("获取活动信息成功").add("activity",activityList);
}
@RequestMapping("/add")
public String showAddActivity(HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
return "addActivity";
}
@RequestMapping("/addResult")
public String addActivity(Activity activity) {
activityService.insertActivitySelective(activity);
return "redirect:/admin/activity/show";
}
@RequestMapping("/update")
@ResponseBody
public Msg updateActivity(Integer goodsid, Integer activityid, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return Msg.fail("请先登录");
}
Goods goods = new Goods();
goods.setActivityid(activityid);
goods.setGoodsid(goodsid);
goodsService.updateGoodsById(goods);
return Msg.success("更新商品活动成功");
}
@RequestMapping("delete")
public String deleteActivity(Integer activityid, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
activityService.deleteByActivityId(activityid);
return "redirect:/admin/activity/show";
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/AdminOrderController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.EmailService;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;
@Controller
@RequestMapping("/admin/order")
public class AdminOrderController {
@Autowired
private OrderService orderService;
@Autowired
private GoodsService goodsService;
@Autowired
private EmailService emailService;
@RequestMapping("/send")
public String sendOrder(@RequestParam(value = "page",defaultValue = "1")Integer pn, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
//一页显示几个数据
PageHelper.startPage(pn, 2);
//查询未发货订单
OrderExample orderExample = new OrderExample();
orderExample.or().andIssendEqualTo(false);
List orderList = orderService.selectOrderByExample(orderExample);
model.addAttribute("sendOrder", orderList);
//查询该订单中的商品
for (int i = 0; i < orderList.size(); i++) {
//获取订单项中的goodsid
Order order = orderList.get(i);
OrderItemExample orderItemExample = new OrderItemExample();
orderItemExample.or().andOrderidEqualTo(order.getOrderid());
List orderItemList = orderService.getOrderItemByExample(orderItemExample);
List goodsIdList = new ArrayList<>();
List goodsList = new ArrayList<>();
for (OrderItem orderItem : orderItemList) {
// goodsIdList.add(orderItem.getGoodsid());
Goods goods = goodsService.selectById(orderItem.getGoodsid());
goods.setNum(orderItem.getNum());
goodsList.add(goods);
}
//根据goodsid查询商品
/*GoodsExample goodsExample = new GoodsExample();
goodsExample.or().andGoodsidIn(goodsIdList);
List goodsList = goodsService.selectByExample(goodsExample);*/
order.setGoodsInfo(goodsList);
//查询地址
Address address = orderService.getAddressByKey(order.getAddressid());
order.setAddress(address);
orderList.set(i, order);
}
//显示几个页号
PageInfo page = new PageInfo(orderList,5);
model.addAttribute("pageInfo", page);
return "adminAllOrder";
}
@RequestMapping("/sendGoods")
public String sendGoods(Integer orderid, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
Order order = new Order();
order.setOrderid(orderid);
order.setIssend(true);
orderService.updateOrderByKey(order);
// 发送信息给用户 管理员已经发货了
// emailService.sendEmailToUser();
return "redirect:/admin/order/send";
}
@RequestMapping("/receiver")
public String receiveOrder(@RequestParam(value = "page",defaultValue = "1")Integer pn, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
//一页显示几个数据
PageHelper.startPage(pn, 2);
//查询未收货订单
OrderExample orderExample = new OrderExample();
orderExample.or().andIssendEqualTo(true).andIsreceiveEqualTo(false);
List orderList = orderService.selectOrderByExample(orderExample);
model.addAttribute("sendOrder", orderList);
//查询该订单中的商品
for (int i = 0; i < orderList.size(); i++) {
//获取订单项中的goodsid
Order order = orderList.get(i);
OrderItemExample orderItemExample = new OrderItemExample();
orderItemExample.or().andOrderidEqualTo(order.getOrderid());
List orderItemList = orderService.getOrderItemByExample(orderItemExample);
List goodsIdList = new ArrayList<>();
/*for (OrderItem orderItem : orderItemList) {
goodsIdList.add(orderItem.getGoodsid());
}
*/
List goodsList = new ArrayList<>();
for (OrderItem orderItem : orderItemList) {
// goodsIdList.add(orderItem.getGoodsid());
Goods goods = goodsService.selectById(orderItem.getGoodsid());
goods.setNum(orderItem.getNum());
goodsList.add(goods);
}
//根据goodsid查询商品
/* GoodsExample goodsExample = new GoodsExample();
goodsExample.or().andGoodsidIn(goodsIdList);
List goodsList = goodsService.selectByExample(goodsExample);*/
order.setGoodsInfo(goodsList);
//查询地址
Address address = orderService.getAddressByKey(order.getAddressid());
order.setAddress(address);
orderList.set(i, order);
}
//显示几个页号
PageInfo page = new PageInfo(orderList,5);
model.addAttribute("pageInfo", page);
return "adminOrderReceive";
}
@RequestMapping("/complete")
public String completeOrder(@RequestParam(value = "page", defaultValue = "1") Integer pn, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
//一页显示几个数据
PageHelper.startPage(pn, 2);
//查询已完成订单
OrderExample orderExample = new OrderExample();
orderExample.or().andIssendEqualTo(true).andIsreceiveEqualTo(true).andIscompleteEqualTo(true);
List orderList = orderService.selectOrderByExample(orderExample);
model.addAttribute("sendOrder", orderList);
//查询该订单中的商品
for (int i = 0; i < orderList.size(); i++) {
//获取订单项中的goodsid
Order order = orderList.get(i);
OrderItemExample orderItemExample = new OrderItemExample();
orderItemExample.or().andOrderidEqualTo(order.getOrderid());
List orderItemList = orderService.getOrderItemByExample(orderItemExample);
List goodsIdList = new ArrayList<>();
/*for (OrderItem orderItem : orderItemList) {
goodsIdList.add(orderItem.getGoodsid());
}*/
List goodsList = new ArrayList<>();
for (OrderItem orderItem : orderItemList) {
// goodsIdList.add(orderItem.getGoodsid());
Goods goods = goodsService.selectById(orderItem.getGoodsid());
goods.setNum(orderItem.getNum());
goodsList.add(goods);
}
//根据goodsid查询商品
/*GoodsExample goodsExample = new GoodsExample();
goodsExample.or().andGoodsidIn(goodsIdList);
List goodsList = goodsService.selectByExample(goodsExample);*/
order.setGoodsInfo(goodsList);
//查询地址
Address address = orderService.getAddressByKey(order.getAddressid());
order.setAddress(address);
orderList.set(i, order);
}
//显示几个页号
PageInfo page = new PageInfo(orderList, 5);
model.addAttribute("pageInfo", page);
return "adminOrderComplete";
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/ExcelController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.zhang.ssmschoolshop.entity.Goods;
import com.zhang.ssmschoolshop.entity.GoodsExample;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.util.ExcelUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* @author codingzx
* @description
* @date 2021/7/24 13:20
*/
@Controller
@RequestMapping("/admin")
public class ExcelController {
@Autowired
private GoodsService goodsService;
@GetMapping("/excel/export")
public String ExportRecord(HttpServletResponse response, HttpServletRequest request) {
List goodsList = goodsService.selectByExample(new GoodsExample());
//定义导出的excel名字
String excelName = "资源详情表";
//导出用户相关信息
new ExcelUtils().export(excelName, goodsList, Goods.class, response);
return "导出资源成功";
}
@GetMapping("/excel/import")
public String ImportRecord(HttpServletResponse response, HttpServletRequest request) {
String path = "D:\\github\\myproject\\SptingbootSchoolShop\\import.txt";
//List goodsList=(List)ExcelUtils.getRecordByTxt(path);
// 入库
return "导入资源成功";
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/GoodsController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.CateService;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.util.ImageUtil;
import com.zhang.ssmschoolshop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
@Controller
@RequestMapping("/admin/goods")
public class GoodsController {
@Autowired
private GoodsService goodsService;
@RequestMapping("/showjson")
@ResponseBody
public Msg getAllGoods(@RequestParam(value = "page", defaultValue = "1") Integer pn, HttpServletResponse response, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return Msg.fail("请先登录");
}
//一页显示几个数据
PageHelper.startPage(pn, 10);
List employees = goodsService.selectByExample(new GoodsExample());
//显示几个页号
PageInfo page = new PageInfo(employees, 5);
model.addAttribute("pageInfo", page);
return Msg.success("查询成功!").add("pageInfo", page);
}
@RequestMapping("/show")
public String goodsManage(@RequestParam(value = "page", defaultValue = "1") Integer pn, HttpServletResponse response, Model model, HttpSession session) throws IOException {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
List categoryList = cateService.selectByExample(new CategoryExample());
model.addAttribute("categoryList", categoryList);
return "adminAllGoods";
}
@RequestMapping("/add")
public String showAdd(@ModelAttribute("succeseMsg") String msg, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
if (!msg.equals("")) {
model.addAttribute("msg", msg);
}
List categoryList = cateService.selectByExample(new CategoryExample());
model.addAttribute("categoryList", categoryList);
//还需要查询分类传给addGoods页面
return "addGoods";
}
@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
public Msg updateGoods(Goods goods, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return Msg.fail("请先登录");
}
/* goods.setGoodsid(goodsid);*/
goodsService.updateGoodsById(goods);
return Msg.success("更新成功!");
}
@RequestMapping(value = "/delete/{goodsid}", method = RequestMethod.DELETE)
@ResponseBody
public Msg deleteGoods(@PathVariable("goodsid") Integer goodsid) {
goodsService.deleteGoodsById(goodsid);
return Msg.success("删除成功!");
}
@RequestMapping("/addGoodsSuccess")
public String addGoods(Goods goods,
@RequestParam MultipartFile[] fileToUpload,
HttpServletRequest request,
HttpServletResponse response,
RedirectAttributes redirectAttributes) throws IOException {
/*goods.setCategory(1);*/
goods.setUptime(new Date());
goods.setActivityid(1);
goodsService.addGoods(goods);
for (MultipartFile multipartFile : fileToUpload) {
String fileName = goods.getGoodsname()+ multipartFile.getOriginalFilename();
if (multipartFile != null) {
String ImagePath= ImageUtil.imagePath(multipartFile,fileName);
System.out.println("最后存入数据的图片名字为:"+ImagePath);
//把图片路径存入数据库中
goodsService.addImagePath(new ImagePath(null, goods.getGoodsid(), ImagePath));
}
}
redirectAttributes.addFlashAttribute("succeseMsg", "商品添加成功!");
return "redirect:/admin/goods/add";
}
@RequestMapping("/addCategory")
public String addcategory(@ModelAttribute("succeseMsg") String msg, Model model, HttpSession session) {
Admin admin = (Admin) session.getAttribute("admin");
if (admin == null) {
return "redirect:/admin/login";
}
CategoryExample categoryExample = new CategoryExample();
categoryExample.or();
List categoryList;
categoryList = cateService.selectByExample(categoryExample);
model.addAttribute("categoryList", categoryList);
if (!msg.equals("")) {
model.addAttribute("msg", msg);
}
return "addCategory";
}
@Autowired
private CateService cateService;
@RequestMapping("/addCategoryResult")
public String addCategoryResult(Category category, Model addCategoryResult, RedirectAttributes redirectAttributes) {
List categoryList = new ArrayList<>();
CategoryExample categoryExample = new CategoryExample();
categoryExample.or().andCatenameEqualTo(category.getCatename());
categoryList = cateService.selectByExample(categoryExample);
if (!categoryList.isEmpty()) {
redirectAttributes.addAttribute("succeseMsg", "分类已存在");
return "redirect:/admin/goods/addCategory";
} else {
cateService.insertSelective(category);
redirectAttributes.addFlashAttribute("succeseMsg", "分类添加成功!");
return "redirect:/admin/goods/addCategory";
}
}
@RequestMapping("/saveCate")
@ResponseBody
public Msg saveCate(Category category) {
CategoryExample categoryExample = new CategoryExample();
categoryExample.or().andCatenameEqualTo(category.getCatename());
List categoryList = cateService.selectByExample(categoryExample);
if (categoryList.isEmpty()) {
cateService.updateByPrimaryKeySelective(category);
return Msg.success("更新成功");
} else return Msg.success("名字已经存在");
}
@RequestMapping("/deleteCate")
@ResponseBody
public Msg deleteCate(Category category) {
cateService.deleteByPrimaryKey(category.getCateid());
return Msg.success("删除成功");
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/LoginController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.zhang.ssmschoolshop.entity.Admin;
import com.zhang.ssmschoolshop.service.AdminService;
import com.zhang.ssmschoolshop.util.Md5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@Controller
@RequestMapping("/admin")
public class LoginController {
@Autowired
private AdminService adminService;
@RequestMapping("/login")
public String adminLogin() {
return "adminLogin";
}
@RequestMapping("/confirmLogin")
public String confirmLogin(Admin admin, Model model, HttpServletRequest request) {
admin.setPassword(Md5Util.MD5Encode(admin.getPassword(),"utf-8"));
Admin selectAdmin = adminService.selectByName(admin);
if (selectAdmin == null) {
model.addAttribute("errorMsg", "用户名或密码错误");
return "adminLogin";
} else {
HttpSession session = request.getSession();
session.setAttribute("admin", selectAdmin);
return "redirect:/admin/user/show";
}
}
@RequestMapping("/logout")
public String adminLogout(HttpServletRequest request) {
HttpSession session = request.getSession();
session.removeAttribute("admin");
return "redirect:/admin/login";
}
/*@RequestMapping("/index")
public String showAdminIndex() {
return "user";
}*/
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/admin/UserController.java
================================================
package com.zhang.ssmschoolshop.controller.admin;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.User;
import com.zhang.ssmschoolshop.entity.UserExample;
import com.zhang.ssmschoolshop.service.UserService;
import com.zhang.ssmschoolshop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@Controller
@RequestMapping("/admin/user")
public class UserController {
@Autowired
private UserService userService;
@RequestMapping("/showjson")
@ResponseBody
public Msg getAllGoods(@RequestParam(value = "page",defaultValue = "1") Integer pn, HttpServletResponse response, Model model) {
//一页显示几个数据
PageHelper.startPage(pn, 10);
List userList = userService.selectByExample(new UserExample());
//显示几个页号
PageInfo page = new PageInfo(userList,5);
/* model.addAttribute("pageInfo", page);*/
return Msg.success("查询成功!").add("pageInfo", page);
}
@RequestMapping("/show")
public String userManage() {
return "userManage";
}
@RequestMapping(value = "/delete/{userid}", method = RequestMethod.DELETE)
@ResponseBody
public Msg deleteUser(@PathVariable("userid")Integer userid) {
// goodsService.deleteGoodsById(goodsid);
userService.deleteUserById(userid);
return Msg.success("删除成功!");
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/CartController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.service.ShopCartService;
import com.zhang.ssmschoolshop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.ArrayList;
import java.util.List;
@Controller
public class CartController {
@Autowired
private ShopCartService shopCartService;
@Autowired
private GoodsService goodsService;
@RequestMapping("/addCart")
public String addCart(ShopCart shopCart, HttpServletRequest request) {
HttpSession session = request.getSession();
User user = (User) session.getAttribute("user");
if(user == null) {
return "redirect:/login";
}
//判断是否已经加入购物车
ShopCart shopCart1 = shopCartService.selectCartByKey(new ShopCartKey(user.getUserid(), shopCart.getGoodsid()));
if (shopCart1 != null) {
return "redirect:/showcart";
}
//用户
shopCart.setUserid(user.getUserid());
//加入时间
shopCart.setCatedate(new Date());
shopCartService.addShopCart(shopCart);
//返回到购物车页面
return "redirect:/showcart";
}
@RequestMapping("/showcart")
public String showCart(HttpSession session) {
User user = (User) session.getAttribute("user");
if(user == null) {
return "redirect:/login";
}
return "shopcart";
}
@RequestMapping("/cartjson")
@ResponseBody
public Msg getCart(HttpSession session) {
User user = (User) session.getAttribute("user");
if(user == null) {
return Msg.fail("请先登录");
}
//获取当前用户的购物车信息
ShopCartExample shopCartExample = new ShopCartExample();
shopCartExample.or().andUseridEqualTo(user.getUserid());
List shopCart = shopCartService.selectByExample(shopCartExample);
//获取购物车中的商品信息
List goodsAndImage = new ArrayList<>();
for (ShopCart cart:shopCart) {
Goods goods = goodsService.selectById(cart.getGoodsid());
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
goods.setNum(cart.getGoodsnum());
goodsAndImage.add(goods);
}
return Msg.success("查询成功").add("shopcart",goodsAndImage);
}
@RequestMapping(value = "/deleteCart/{goodsid}", method = RequestMethod.DELETE)
@ResponseBody
public Msg deleteCart(@PathVariable("goodsid")Integer goodsid, HttpSession session) {
User user = (User) session.getAttribute("user");
if(user == null) {
return Msg.fail("请先登录");
}
shopCartService.deleteByKey(new ShopCartKey(user.getUserid(), goodsid));
return Msg.success("删除成功");
}
@RequestMapping("/update")
@ResponseBody
public Msg updateCart(Integer goodsid,Integer num,HttpSession session) {
User user = (User) session.getAttribute("user");
if(user == null) {
return Msg.fail("请先登录");
}
ShopCart shopCart = new ShopCart();
shopCart.setUserid(user.getUserid());
shopCart.setGoodsid(goodsid);
shopCart.setGoodsnum(num);
shopCartService.updateCartByKey(shopCart);
return Msg.success("更新购物车成功");
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/CustomerController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.AddressService;
import com.zhang.ssmschoolshop.service.GoodsService;
import com.zhang.ssmschoolshop.service.OrderService;
import com.zhang.ssmschoolshop.service.UserService;
import com.zhang.ssmschoolshop.util.Md5Util;
import com.zhang.ssmschoolshop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Controller
public class CustomerController {
@RequestMapping("/login")
public String loginView() {
return "login";
}
@Autowired
private UserService userService;
@RequestMapping("/register")
public String register() {
return "register";
}
@RequestMapping("/registerresult")
public String registerResult(User user, Model registerResult) {
List userList = new ArrayList<>();
user.setPassword(Md5Util.MD5Encode(user.getPassword(), "utf-8"));
UserExample userExample = new UserExample();
userExample.or().andUsernameLike(user.getUsername());
userList = userService.selectByExample(userExample);
if (!userList.isEmpty()) {
registerResult.addAttribute("errorMsg", "用户名被占用");
return "register";
} else {
Date RegTime = new Date();
user.setRegtime(RegTime);
userService.insertSelective(user);
return "redirect:/login";
}
}
@RequestMapping("/loginconfirm")
public String loginConfirm(User user, Model loginResult, HttpServletRequest request, @RequestParam("confirmlogo") String confirmlogo) {
System.out.println("传进来的用户帐号和密码为:" + user);
//进行用户密码MD5加密验证
user.setPassword(Md5Util.MD5Encode(user.getPassword(), "UTF-8"));
HttpSession session = request.getSession();
String verificationCode = (String) session.getAttribute("certCode");
if (!confirmlogo.equals(verificationCode)) {
loginResult.addAttribute("errorMsg", "验证码错误");
return "login";
}
List userList = new ArrayList();
UserExample userExample = new UserExample();
userExample.or().andUsernameEqualTo(user.getUsername()).andPasswordEqualTo(user.getPassword());
userList = userService.selectByExample(userExample);
if (!userList.isEmpty()) {
session.setAttribute("user", userList.get(0));
return "redirect:/main";
} else {
loginResult.addAttribute("errorMsg", "用户名与密码不匹配");
return "login";
}
}
@RequestMapping("/information")
public String information(Model userModel, HttpServletRequest request) {
HttpSession session = request.getSession();
User user;
Integer userId;
user = (User) session.getAttribute("user");
if (user == null) {
return "redirect:/login";
}
userId = user.getUserid();
user = userService.selectByPrimaryKey(userId);
userModel.addAttribute("user", user);
return "information";
}
@RequestMapping("/saveInfo")
@ResponseBody
public Msg saveInfo(String name, String email, String telephone, HttpServletRequest request) {
HttpSession session = request.getSession();
UserExample userExample = new UserExample();
User user, updateUser = new User();
List userList = new ArrayList<>();
Integer userid;
user = (User) session.getAttribute("user");
userid = user.getUserid();
userExample.or().andUsernameEqualTo(name);
userList = userService.selectByExample(userExample);
if (userList.isEmpty()) {
updateUser.setUserid(userid);
updateUser.setUsername(name);
updateUser.setEmail(email);
updateUser.setTelephone(telephone);
userService.updateByPrimaryKeySelective(updateUser);
return Msg.success("更新成功");
} else {
return Msg.fail("更新失败");
}
}
@Autowired
private AddressService addressService;
@RequestMapping("/info/address")
public String address(HttpServletRequest request, Model addressModel) {
HttpSession session = request.getSession();
User user = (User) session.getAttribute("user");
if (user == null) {
return "redirect:/login";
}
AddressExample addressExample = new AddressExample();
addressExample.or().andUseridEqualTo(user.getUserid());
List addressList = addressService.getAllAddressByExample(addressExample);
addressModel.addAttribute("addressList", addressList);
return "address";
}
@RequestMapping("/saveAddr")
@ResponseBody
public Msg saveAddr(Address address) {
addressService.updateByPrimaryKeySelective(address);
return Msg.success("修改成功");
}
@RequestMapping("/deleteAddr")
@ResponseBody
public Msg deleteAddr(Address address) {
addressService.deleteByPrimaryKey(address.getAddressid());
return Msg.success("删除成功");
}
@RequestMapping("/insertAddr")
@ResponseBody
public Msg insertAddr(Address address, HttpServletRequest request) {
HttpSession session = request.getSession();
User user = new User();
user = (User) session.getAttribute("user");
address.setUserid(user.getUserid());
addressService.insertSelective(address);
return Msg.success("添加成功");
}
@Autowired
private OrderService orderService;
@Autowired
private GoodsService goodsService;
@RequestMapping("/info/list")
public String list(HttpServletRequest request, Model orderModel) {
HttpSession session = request.getSession();
User user;
user = (User) session.getAttribute("user");
if (user == null) {
return "redirect:/login";
}
OrderExample orderExample = new OrderExample();
orderExample.or().andUseridEqualTo(user.getUserid());
List orderList = orderService.selectOrderByExample(orderExample);
orderModel.addAttribute("orderList", orderList);
Order order;
OrderItem orderItem;
List orderItemList = new ArrayList<>();
Goods goods;
Address address;
for (Integer i = 0; i < orderList.size(); i++) {
order = orderList.get(i);
OrderItemExample orderItemExample = new OrderItemExample();
orderItemExample.or().andOrderidEqualTo(order.getOrderid());
orderItemList = orderService.getOrderItemByExample(orderItemExample);
List goodsList = new ArrayList<>();
List goodsIdList = new ArrayList<>();
for (Integer j = 0; j < orderItemList.size(); j++) {
orderItem = orderItemList.get(j);
goodsIdList.add(orderItem.getGoodsid());
}
GoodsExample goodsExample = new GoodsExample();
goodsExample.or().andGoodsidIn(goodsIdList);
goodsList = goodsService.selectByExample(goodsExample);
order.setGoodsInfo(goodsList);
address = addressService.selectByPrimaryKey(order.getAddressid());
order.setAddress(address);
orderList.set(i, order);
}
orderModel.addAttribute("orderList", orderList);
return "list";
}
@RequestMapping("/deleteList")
@ResponseBody
public Msg deleteList(Order order) {
orderService.deleteById(order.getOrderid());
return Msg.success("删除成功");
}
/**
* 收藏商品
* @param pn
* @param request
* @param model
* @return
*/
@RequestMapping("/info/favorite")
public String showFavorite(@RequestParam(value = "page", defaultValue = "1") Integer pn, HttpServletRequest request, Model model) {
HttpSession session = request.getSession();
User user = (User) session.getAttribute("user");
if (user == null) {
return "redirect:/login";
}
//一页显示几个数据
PageHelper.startPage(pn, 16);
FavoriteExample favoriteExample = new FavoriteExample();
favoriteExample.or().andUseridEqualTo(user.getUserid());
List favoriteList = goodsService.selectFavByExample(favoriteExample);
List goodsIdList = new ArrayList();
for (Favorite tmp : favoriteList) {
goodsIdList.add(tmp.getGoodsid());
}
GoodsExample goodsExample = new GoodsExample();
List goodsList = new ArrayList<>();
if (!goodsIdList.isEmpty()) {
goodsExample.or().andGoodsidIn(goodsIdList);
goodsList = goodsService.selectByExample(goodsExample);
}
//获取图片地址
for (int i = 0; i < goodsList.size(); i++) {
Goods goods = goodsList.get(i);
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
//判断是否收藏
goods.setFav(true);
goodsList.set(i, goods);
}
//显示几个页号
PageInfo page = new PageInfo(goodsList, 5);
model.addAttribute("pageInfo", page);
return "favorite";
}
@RequestMapping("/savePsw")
@ResponseBody
public Msg savePsw(String Psw, HttpServletRequest request) {
HttpSession session = request.getSession();
User user = (User) session.getAttribute("user");
user.setPassword(Md5Util.MD5Encode(Psw, "UTF-8"));
userService.updateByPrimaryKeySelective(user);
return Msg.success("修改密码成功");
}
@RequestMapping("/finishList")
@ResponseBody
public Msg finishiList(Integer orderid) {
Order order = orderService.selectByPrimaryKey(orderid);
order.setIsreceive(true);
order.setIscomplete(true);
orderService.updateOrderByKey(order);
return Msg.success("完成订单成功");
}
@RequestMapping("/logout")
public String logout(HttpServletRequest request) {
HttpSession session = request.getSession();
session.removeAttribute("user");
return "redirect:/login";
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/FrontGoodsController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.*;
import com.zhang.ssmschoolshop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Controller
public class FrontGoodsController {
@Autowired
private GoodsService goodsService;
@Autowired
private CateService cateService;
@Autowired
private CommentService commentService;
@Autowired
private UserService userService;
@Autowired
private ActivityService activityService;
@RequestMapping(value = "/detail",method = RequestMethod.GET)
public String detailGoods(Integer goodsid, Model model, HttpSession session) {
if(goodsid == null) {
return "redirect:/main";
}
User user = (User) session.getAttribute("user");
//要传回的数据存在HashMap中
Map goodsInfo = new HashMap();
//查询商品的基本信息
Goods goods = goodsService.selectById(goodsid);
if (user == null) {
goods.setFav(false);
} else {
Favorite favorite = goodsService.selectFavByKey(new FavoriteKey(user.getUserid(), goodsid));
if (favorite == null) {
goods.setFav(false);
} else {
goods.setFav(true);
}
}
//查询商品类别
Category category = cateService.selectById(goods.getCategory());
//商品图片
List imagePath = goodsService.findImagePath(goodsid);
//商品评论
//商品折扣信息
Activity activity = activityService.selectByKey(goods.getActivityid());
goods.setActivity(activity);
//返回数据
goodsInfo.put("goods", goods);
goodsInfo.put("cate", category);
goodsInfo.put("image", imagePath);
model.addAttribute("goodsInfo",goodsInfo);
// model.addAllAttributes(goodsInfo);
//评论信息
CommentExample commentExample=new CommentExample();
commentExample.or().andGoodsidEqualTo(goods.getGoodsid());
List commentList=commentService.selectByExample(commentExample);
for (Integer i=0;i goodsList = goodsService.selectByExample(goodsExample);
//获取图片地址
for (int i = 0; i < goodsList.size(); i++) {
Goods goods = goodsList.get(i);
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
//判断是否收藏
if (user == null) {
goods.setFav(false);
} else {
Favorite favorite = goodsService.selectFavByKey(new FavoriteKey(user.getUserid(), goods.getGoodsid()));
if (favorite == null) {
goods.setFav(false);
} else {
goods.setFav(true);
}
}
goodsList.set(i, goods);
}
//显示几个页号
PageInfo page = new PageInfo(goodsList,5);
model.addAttribute("pageInfo", page);
model.addAttribute("keyword", keyword);
return "search";
}
@RequestMapping("/collect")
@ResponseBody
public Msg collectGoods(Integer goodsid, HttpSession session) {
//取登录用户信息,未登录重定向至登录页面
User user = (User) session.getAttribute("user");
if(user == null) {
return Msg.fail("收藏失败");
}
//添加收藏
Favorite favorite = new Favorite();
favorite.setCollecttime(new Date());
favorite.setGoodsid(goodsid);
favorite.setUserid(user.getUserid());
goodsService.addFavorite(favorite);
return Msg.success("收藏成功");
}
@RequestMapping("/deleteCollect")
@ResponseBody
public Msg deleteFavGoods(Integer goodsid, HttpSession session) {
User user = (User) session.getAttribute("user");
if (user == null) {
return Msg.fail("取消收藏失败");
}
//删除收藏
goodsService.deleteFavByKey(new FavoriteKey(user.getUserid(),goodsid));
return Msg.success("取消收藏成功");
}
@RequestMapping("/category")
public String getCateGoods(String cate, @RequestParam(value = "page",defaultValue = "1") Integer pn, Model model, HttpSession session) {
User user = (User) session.getAttribute("user");
//一页显示几个数据
PageHelper.startPage(pn, 16);
//查询分类id
CategoryExample categoryExample = new CategoryExample();
categoryExample.or().andCatenameLike(cate);
List categoryList = cateService.selectByExample(categoryExample);
//获取查出的类别id
List cateId = new ArrayList<>();
for (Category category : categoryList) {
cateId.add(category.getCateid());
}
//查询数据
GoodsExample goodsExample = new GoodsExample();
goodsExample.or().andDetailcateLike("%" + cate + "%");
if (!cateId.isEmpty()) {
goodsExample.or().andCategoryIn(cateId);
}
List goodsList = goodsService.selectByExample(goodsExample);
//获取图片地址
for (int i = 0; i < goodsList.size(); i++) {
Goods goods = goodsList.get(i);
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
//判断是否收藏
if (user == null) {
goods.setFav(false);
} else {
Favorite favorite = goodsService.selectFavByKey(new FavoriteKey(user.getUserid(), goods.getGoodsid()));
if (favorite == null) {
goods.setFav(false);
} else {
goods.setFav(true);
}
}
goodsList.set(i, goods);
}
//显示几个页号
PageInfo page = new PageInfo(goodsList,5);
model.addAttribute("pageInfo", page);
model.addAttribute("cate", cate);
return "category";
}
@RequestMapping("/comment")
@ResponseBody
public Msg comment(Comment comment, HttpServletRequest request){
HttpSession session=request.getSession();
User user=(User) session.getAttribute("user");
if (user == null) {
return Msg.fail("评论失败");
}
comment.setUserid(user.getUserid());
Date date=new Date();
comment.setCommenttime(date);
commentService.insertSelective(comment);
return Msg.success("评论成功");
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/MainController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.CateService;
import com.zhang.ssmschoolshop.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;
@Controller
public class MainController {
@Autowired
private CateService cateService;
@Autowired
private GoodsService goodsService;
@RequestMapping("/")
public String showAdmin(Model model, HttpSession session) {
Integer userid;
User user = (User) session.getAttribute("user");
if (user == null) {
userid = null;
} else {
userid = user.getUserid();
}
//数码分类
List digGoods = getCateGoods("数码", userid);
model.addAttribute("digGoods", digGoods);
//家电
List houseGoods = getCateGoods("家电", userid);
model.addAttribute("houseGoods", houseGoods);
//服饰
List colGoods = getCateGoods("服饰", userid);
model.addAttribute("colGoods", colGoods);
//书籍
List bookGoods = getCateGoods("书籍", userid);
model.addAttribute("bookGoods", bookGoods);
return "main";
}
@RequestMapping("/main")
public String showAllGoods(Model model, HttpSession session) {
Integer userid;
User user = (User) session.getAttribute("user");
if (user == null) {
userid = null;
} else {
userid = user.getUserid();
}
//数码分类
List digGoods = getCateGoods("数码", userid);
model.addAttribute("digGoods", digGoods);
//家电
List houseGoods = getCateGoods("家电", userid);
model.addAttribute("houseGoods", houseGoods);
//服饰
List colGoods = getCateGoods("服饰", userid);
model.addAttribute("colGoods", colGoods);
//书籍
List bookGoods = getCateGoods("书籍", userid);
model.addAttribute("bookGoods", bookGoods);
return "main";
}
public List getCateGoods(String cate, Integer userid) {
//查询分类
CategoryExample digCategoryExample = new CategoryExample();
digCategoryExample.or().andCatenameLike(cate);
List digCategoryList = cateService.selectByExample(digCategoryExample);
if (digCategoryList.size() == 0) {
return null;
}
//查询属于刚查到的分类的商品
GoodsExample digGoodsExample = new GoodsExample();
List digCateId = new ArrayList();
for (Category tmp:digCategoryList) {
digCateId.add(tmp.getCateid());
}
digGoodsExample.or().andCategoryIn(digCateId);
List goodsList = goodsService.selectByExampleLimit(digGoodsExample);
List goodsAndImage = new ArrayList<>();
//获取每个商品的图片
for (Goods goods:goodsList) {
//判断是否为登录状态
if (userid == null) {
goods.setFav(false);
} else {
Favorite favorite = goodsService.selectFavByKey(new FavoriteKey(userid, goods.getGoodsid()));
if (favorite == null) {
goods.setFav(false);
} else {
goods.setFav(true);
}
}
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
goodsAndImage.add(goods);
}
return goodsAndImage;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/OrderController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import com.zhang.ssmschoolshop.entity.*;
import com.zhang.ssmschoolshop.service.*;
import com.zhang.ssmschoolshop.util.Msg;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.MailException;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpSession;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Controller
public class OrderController {
private static final Logger log = LoggerFactory.getLogger(OrderController.class);
/*@Value("#{addressService}")*/
@Autowired
private AddressService addressService;
@Autowired
private ShopCartService shopCartService;
@Autowired
private GoodsService goodsService;
@Autowired
private OrderService orderService;
@Autowired
private ActivityService activityService;
@Autowired
private EmailService emailService;
@RequestMapping("/order")
public String showOrder(HttpSession session, Model model) {
User user = (User) session.getAttribute("user");
if (user == null) {
return "redirect:/login";
}
//查询当前用户的收货地址
AddressExample addressExample = new AddressExample();
addressExample.or().andUseridEqualTo(user.getUserid());
List addressList = addressService.getAllAddressByExample(addressExample);
model.addAttribute("address", addressList);
//订单信息
//获取当前用户的购物车信息
ShopCartExample shopCartExample = new ShopCartExample();
shopCartExample.or().andUseridEqualTo(user.getUserid());
List shopCart = shopCartService.selectByExample(shopCartExample);
//获取购物车中的商品信息
List goodsAndImage = new ArrayList<>();
Float totalPrice = new Float(0);
Integer oldTotalPrice = 0;
for (ShopCart cart : shopCart) {
//分别从购物车列表中获取每个商品
Goods goods = goodsService.selectById(cart.getGoodsid());
List imagePathList = goodsService.findImagePath(goods.getGoodsid());
goods.setImagePaths(imagePathList);
goods.setNum(cart.getGoodsnum());
//活动信息
Activity activity = activityService.selectByKey(goods.getActivityid());
goods.setActivity(activity);
//处理折扣信息
//如果商品折扣不为1
if (activity.getDiscount() != 1) {
goods.setNewPrice(goods.getPrice() * goods.getNum() * activity.getDiscount());
System.out.println("价格为:" + goods.getPrice() * goods.getNum() * activity.getDiscount());
} else if (activity.getFullnum() != null) {
System.out.println("进入第二层方法");
if (goods.getNum() >= activity.getFullnum()) {
goods.setNewPrice((float) (goods.getPrice() * (goods.getNum() - activity.getReducenum())));
} else {
goods.setNewPrice((float) (goods.getPrice() * goods.getNum()));
}
} else if (activity.getFullprice() != null && activity.getReducenum() != null) {
if ((goods.getNum() * goods.getNum()) > activity.getFullprice()) {
goods.setNewPrice((float) (goods.getPrice() * goods.getNum() - activity.getReducenum()));
} else {
goods.setNewPrice((float) (goods.getPrice() * goods.getNum()));
}
} else {
goods.setNewPrice((float) (goods.getPrice() * goods.getNum()));
}
totalPrice = totalPrice + goods.getNewPrice();
oldTotalPrice = oldTotalPrice + goods.getNum() * goods.getPrice();
goodsAndImage.add(goods);
}
model.addAttribute("totalPrice", totalPrice);
model.addAttribute("oldTotalPrice", oldTotalPrice);
model.addAttribute("goodsAndImage", goodsAndImage);
return "orderConfirm";
}
@RequestMapping("/orderFinish")
@ResponseBody
public Msg orderFinish(Float oldPrice, Float newPrice, Boolean isPay, Integer addressid, HttpSession session) {
User user = (User) session.getAttribute("user");
//获取订单信息
ShopCartExample shopCartExample = new ShopCartExample();
shopCartExample.or().andUseridEqualTo(user.getUserid());
List shopCart = shopCartService.selectByExample(shopCartExample);
//删除购物车
for (ShopCart cart : shopCart) {
shopCartService.deleteByKey(new ShopCartKey(cart.getUserid(), cart.getGoodsid()));
}
//把订单信息写入数据库
Order order = new Order(null, user.getUserid(), new Date(), oldPrice, newPrice, isPay, false, false, false, addressid, null, null);
orderService.insertOrder(order);
//插入的订单号
Integer orderId = order.getOrderid();
//把订单项写入orderitem表中
for (ShopCart cart : shopCart) {
orderService.insertOrderItem(new OrderItem(null, orderId, cart.getGoodsid(), cart.getGoodsnum()));
}
// 购买成功通知管理员
// emailService.sendEmailToAdmin();
return Msg.success("购买成功");
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/controller/front/VerificationCodeImgController.java
================================================
package com.zhang.ssmschoolshop.controller.front;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class VerificationCodeImgController {
@RequestMapping("/verificationcodeimg")
public ModelAndView verificationcodeimg(){
ModelAndView verificationcodeimg=new ModelAndView();
verificationcodeimg.setViewName("verificationcodeimg");
return verificationcodeimg;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/ActivityMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Activity;
import com.zhang.ssmschoolshop.entity.ActivityExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ActivityMapper {
long countByExample(ActivityExample example);
int deleteByExample(ActivityExample example);
int deleteByPrimaryKey(Integer activityid);
int insert(Activity record);
int insertSelective(Activity record);
List selectByExample(ActivityExample example);
Activity selectByPrimaryKey(Integer activityid);
int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example);
int updateByExample(@Param("record") Activity record, @Param("example") ActivityExample example);
int updateByPrimaryKeySelective(Activity record);
int updateByPrimaryKey(Activity record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/AddressMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Address;
import com.zhang.ssmschoolshop.entity.AddressExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AddressMapper {
long countByExample(AddressExample example);
int deleteByExample(AddressExample example);
int deleteByPrimaryKey(Integer addressid);
int insert(Address record);
int insertSelective(Address record);
List selectByExample(AddressExample example);
Address selectByPrimaryKey(Integer addressid);
int updateByExampleSelective(@Param("record") Address record, @Param("example") AddressExample example);
int updateByExample(@Param("record") Address record, @Param("example") AddressExample example);
int updateByPrimaryKeySelective(Address record);
int updateByPrimaryKey(Address record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/AdminMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import org.apache.ibatis.annotations.Param;
import com.zhang.ssmschoolshop.entity.Admin;
import com.zhang.ssmschoolshop.entity.AdminExample;
import java.util.List;
public interface AdminMapper {
long countByExample(AdminExample example);
int deleteByExample(AdminExample example);
int deleteByPrimaryKey(Integer adminid);
int insert(Admin record);
int insertSelective(Admin record);
List selectByExample(AdminExample example);
Admin selectByPrimaryKey(Integer adminid);
Admin selectByName(Admin admin);
int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);
int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);
int updateByPrimaryKeySelective(Admin record);
int updateByPrimaryKey(Admin record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/CategoryMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Category;
import com.zhang.ssmschoolshop.entity.CategoryExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface CategoryMapper {
long countByExample(CategoryExample example);
int deleteByExample(CategoryExample example);
int deleteByPrimaryKey(Integer cateid);
int insert(Category record);
int insertSelective(Category record);
List selectByExample(CategoryExample example);
List selectByExampleLimit(CategoryExample example);
Category selectByPrimaryKey(Integer cateid);
int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);
int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);
int updateByPrimaryKeySelective(Category record);
int updateByPrimaryKey(Category record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/CommentMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Comment;
import com.zhang.ssmschoolshop.entity.CommentExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface CommentMapper {
long countByExample(CommentExample example);
int deleteByExample(CommentExample example);
int deleteByPrimaryKey(Integer commentid);
int insert(Comment record);
int insertSelective(Comment record);
List selectByExample(CommentExample example);
Comment selectByPrimaryKey(Integer commentid);
int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example);
int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example);
int updateByPrimaryKeySelective(Comment record);
int updateByPrimaryKey(Comment record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/FavoriteMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Favorite;
import com.zhang.ssmschoolshop.entity.FavoriteExample;
import com.zhang.ssmschoolshop.entity.FavoriteKey;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface FavoriteMapper {
long countByExample(FavoriteExample example);
int deleteByExample(FavoriteExample example);
int deleteByPrimaryKey(FavoriteKey key);
int insert(Favorite record);
int insertSelective(Favorite record);
List selectByExample(FavoriteExample example);
Favorite selectByPrimaryKey(FavoriteKey key);
int updateByExampleSelective(@Param("record") Favorite record, @Param("example") FavoriteExample example);
int updateByExample(@Param("record") Favorite record, @Param("example") FavoriteExample example);
int updateByPrimaryKeySelective(Favorite record);
int updateByPrimaryKey(Favorite record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/GoodsMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import org.apache.ibatis.annotations.Param;
import com.zhang.ssmschoolshop.entity.Goods;
import com.zhang.ssmschoolshop.entity.GoodsExample;
import java.util.List;
public interface GoodsMapper {
long countByExample(GoodsExample example);
int deleteByExample(GoodsExample example);
int deleteByPrimaryKey(Integer goodsid);
int insert(Goods record);
int insertSelective(Goods record);
List selectByExampleWithBLOBs(GoodsExample example);
List selectByExample(GoodsExample example);
Goods selectByPrimaryKey(Integer goodsid);
int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);
int updateByExampleWithBLOBs(@Param("record") Goods record, @Param("example") GoodsExample example);
int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);
int updateByPrimaryKeySelective(Goods record);
int updateByPrimaryKeyWithBLOBs(Goods record);
int updateByPrimaryKey(Goods record);
List selectByExampleWithBLOBsLimit(GoodsExample digGoodsExample);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/ImagePathMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.ImagePath;
import com.zhang.ssmschoolshop.entity.ImagePathExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ImagePathMapper {
long countByExample(ImagePathExample example);
int deleteByExample(ImagePathExample example);
int deleteByPrimaryKey(Integer pathid);
int insert(ImagePath record);
int insertSelective(ImagePath record);
List selectByExample(ImagePathExample example);
ImagePath selectByPrimaryKey(Integer pathid);
int updateByExampleSelective(@Param("record") ImagePath record, @Param("example") ImagePathExample example);
int updateByExample(@Param("record") ImagePath record, @Param("example") ImagePathExample example);
int updateByPrimaryKeySelective(ImagePath record);
int updateByPrimaryKey(ImagePath record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/OrderItemMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.OrderItem;
import com.zhang.ssmschoolshop.entity.OrderItemExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface OrderItemMapper {
long countByExample(OrderItemExample example);
int deleteByExample(OrderItemExample example);
int deleteByPrimaryKey(Integer itemid);
int insert(OrderItem record);
int insertSelective(OrderItem record);
List selectByExample(OrderItemExample example);
OrderItem selectByPrimaryKey(Integer itemid);
int updateByExampleSelective(@Param("record") OrderItem record, @Param("example") OrderItemExample example);
int updateByExample(@Param("record") OrderItem record, @Param("example") OrderItemExample example);
int updateByPrimaryKeySelective(OrderItem record);
int updateByPrimaryKey(OrderItem record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/OrderMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.Order;
import com.zhang.ssmschoolshop.entity.OrderExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface OrderMapper {
long countByExample(OrderExample example);
int deleteByExample(OrderExample example);
int deleteByPrimaryKey(Integer orderid);
int insert(Order record);
int insertSelective(Order record);
List selectByExample(OrderExample example);
Order selectByPrimaryKey(Integer orderid);
int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);
int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);
int updateByPrimaryKeySelective(Order record);
int updateByPrimaryKey(Order record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/ShopCartMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.ShopCart;
import com.zhang.ssmschoolshop.entity.ShopCartExample;
import com.zhang.ssmschoolshop.entity.ShopCartKey;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ShopCartMapper {
long countByExample(ShopCartExample example);
int deleteByExample(ShopCartExample example);
int deleteByPrimaryKey(ShopCartKey key);
int insert(ShopCart record);
int insertSelective(ShopCart record);
List selectByExample(ShopCartExample example);
ShopCart selectByPrimaryKey(ShopCartKey key);
int updateByExampleSelective(@Param("record") ShopCart record, @Param("example") ShopCartExample example);
int updateByExample(@Param("record") ShopCart record, @Param("example") ShopCartExample example);
int updateByPrimaryKeySelective(ShopCart record);
int updateByPrimaryKey(ShopCart record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/dao/UserMapper.java
================================================
package com.zhang.ssmschoolshop.dao;
import com.zhang.ssmschoolshop.entity.User;
import com.zhang.ssmschoolshop.entity.UserExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UserMapper {
long countByExample(UserExample example);
int deleteByExample(UserExample example);
int deleteByPrimaryKey(Integer userid);
int insert(User record);
int insertSelective(User record);
List selectByExample(UserExample example);
User selectByPrimaryKey(Integer userid);
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Activity.java
================================================
package com.zhang.ssmschoolshop.entity;
/**
* 促销活动
*/
public class Activity {
private Integer activityid; //活动id
private String activityname; //活动名
private String activitydes; //活动地址
private Float discount; //满减
private Integer fullprice;
private Integer reduceprice;
private Integer fullnum;
private Integer reducenum;
public Integer getActivityid() {
return activityid;
}
public void setActivityid(Integer activityid) {
this.activityid = activityid;
}
public String getActivityname() {
return activityname;
}
public void setActivityname(String activityname) {
this.activityname = activityname == null ? null : activityname.trim();
}
public String getActivitydes() {
return activitydes;
}
public void setActivitydes(String activitydes) {
this.activitydes = activitydes == null ? null : activitydes.trim();
}
public Float getDiscount() {
return discount;
}
public void setDiscount(Float discount) {
this.discount = discount;
}
public Integer getFullprice() {
return fullprice;
}
public void setFullprice(Integer fullprice) {
this.fullprice = fullprice;
}
public Integer getReduceprice() {
return reduceprice;
}
public void setReduceprice(Integer reduceprice) {
this.reduceprice = reduceprice;
}
public Integer getFullnum() {
return fullnum;
}
public void setFullnum(Integer fullnum) {
this.fullnum = fullnum;
}
public Integer getReducenum() {
return reducenum;
}
public void setReducenum(Integer reducenum) {
this.reducenum = reducenum;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/ActivityExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.List;
public class ActivityExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public ActivityExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andActivityidIsNull() {
addCriterion("activityId is null");
return (Criteria) this;
}
public Criteria andActivityidIsNotNull() {
addCriterion("activityId is not null");
return (Criteria) this;
}
public Criteria andActivityidEqualTo(Integer value) {
addCriterion("activityId =", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotEqualTo(Integer value) {
addCriterion("activityId <>", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidGreaterThan(Integer value) {
addCriterion("activityId >", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidGreaterThanOrEqualTo(Integer value) {
addCriterion("activityId >=", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidLessThan(Integer value) {
addCriterion("activityId <", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidLessThanOrEqualTo(Integer value) {
addCriterion("activityId <=", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidIn(List values) {
addCriterion("activityId in", values, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotIn(List values) {
addCriterion("activityId not in", values, "activityid");
return (Criteria) this;
}
public Criteria andActivityidBetween(Integer value1, Integer value2) {
addCriterion("activityId between", value1, value2, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotBetween(Integer value1, Integer value2) {
addCriterion("activityId not between", value1, value2, "activityid");
return (Criteria) this;
}
public Criteria andActivitynameIsNull() {
addCriterion("activityName is null");
return (Criteria) this;
}
public Criteria andActivitynameIsNotNull() {
addCriterion("activityName is not null");
return (Criteria) this;
}
public Criteria andActivitynameEqualTo(String value) {
addCriterion("activityName =", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameNotEqualTo(String value) {
addCriterion("activityName <>", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameGreaterThan(String value) {
addCriterion("activityName >", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameGreaterThanOrEqualTo(String value) {
addCriterion("activityName >=", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameLessThan(String value) {
addCriterion("activityName <", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameLessThanOrEqualTo(String value) {
addCriterion("activityName <=", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameLike(String value) {
addCriterion("activityName like", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameNotLike(String value) {
addCriterion("activityName not like", value, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameIn(List values) {
addCriterion("activityName in", values, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameNotIn(List values) {
addCriterion("activityName not in", values, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameBetween(String value1, String value2) {
addCriterion("activityName between", value1, value2, "activityname");
return (Criteria) this;
}
public Criteria andActivitynameNotBetween(String value1, String value2) {
addCriterion("activityName not between", value1, value2, "activityname");
return (Criteria) this;
}
public Criteria andActivitydesIsNull() {
addCriterion("activityDes is null");
return (Criteria) this;
}
public Criteria andActivitydesIsNotNull() {
addCriterion("activityDes is not null");
return (Criteria) this;
}
public Criteria andActivitydesEqualTo(String value) {
addCriterion("activityDes =", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesNotEqualTo(String value) {
addCriterion("activityDes <>", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesGreaterThan(String value) {
addCriterion("activityDes >", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesGreaterThanOrEqualTo(String value) {
addCriterion("activityDes >=", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesLessThan(String value) {
addCriterion("activityDes <", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesLessThanOrEqualTo(String value) {
addCriterion("activityDes <=", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesLike(String value) {
addCriterion("activityDes like", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesNotLike(String value) {
addCriterion("activityDes not like", value, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesIn(List values) {
addCriterion("activityDes in", values, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesNotIn(List values) {
addCriterion("activityDes not in", values, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesBetween(String value1, String value2) {
addCriterion("activityDes between", value1, value2, "activitydes");
return (Criteria) this;
}
public Criteria andActivitydesNotBetween(String value1, String value2) {
addCriterion("activityDes not between", value1, value2, "activitydes");
return (Criteria) this;
}
public Criteria andDiscountIsNull() {
addCriterion("discount is null");
return (Criteria) this;
}
public Criteria andDiscountIsNotNull() {
addCriterion("discount is not null");
return (Criteria) this;
}
public Criteria andDiscountEqualTo(Float value) {
addCriterion("discount =", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountNotEqualTo(Float value) {
addCriterion("discount <>", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountGreaterThan(Float value) {
addCriterion("discount >", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountGreaterThanOrEqualTo(Float value) {
addCriterion("discount >=", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountLessThan(Float value) {
addCriterion("discount <", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountLessThanOrEqualTo(Float value) {
addCriterion("discount <=", value, "discount");
return (Criteria) this;
}
public Criteria andDiscountIn(List values) {
addCriterion("discount in", values, "discount");
return (Criteria) this;
}
public Criteria andDiscountNotIn(List values) {
addCriterion("discount not in", values, "discount");
return (Criteria) this;
}
public Criteria andDiscountBetween(Float value1, Float value2) {
addCriterion("discount between", value1, value2, "discount");
return (Criteria) this;
}
public Criteria andDiscountNotBetween(Float value1, Float value2) {
addCriterion("discount not between", value1, value2, "discount");
return (Criteria) this;
}
public Criteria andFullpriceIsNull() {
addCriterion("fullPrice is null");
return (Criteria) this;
}
public Criteria andFullpriceIsNotNull() {
addCriterion("fullPrice is not null");
return (Criteria) this;
}
public Criteria andFullpriceEqualTo(Integer value) {
addCriterion("fullPrice =", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceNotEqualTo(Integer value) {
addCriterion("fullPrice <>", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceGreaterThan(Integer value) {
addCriterion("fullPrice >", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceGreaterThanOrEqualTo(Integer value) {
addCriterion("fullPrice >=", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceLessThan(Integer value) {
addCriterion("fullPrice <", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceLessThanOrEqualTo(Integer value) {
addCriterion("fullPrice <=", value, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceIn(List values) {
addCriterion("fullPrice in", values, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceNotIn(List values) {
addCriterion("fullPrice not in", values, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceBetween(Integer value1, Integer value2) {
addCriterion("fullPrice between", value1, value2, "fullprice");
return (Criteria) this;
}
public Criteria andFullpriceNotBetween(Integer value1, Integer value2) {
addCriterion("fullPrice not between", value1, value2, "fullprice");
return (Criteria) this;
}
public Criteria andReducepriceIsNull() {
addCriterion("reducePrice is null");
return (Criteria) this;
}
public Criteria andReducepriceIsNotNull() {
addCriterion("reducePrice is not null");
return (Criteria) this;
}
public Criteria andReducepriceEqualTo(Integer value) {
addCriterion("reducePrice =", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceNotEqualTo(Integer value) {
addCriterion("reducePrice <>", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceGreaterThan(Integer value) {
addCriterion("reducePrice >", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceGreaterThanOrEqualTo(Integer value) {
addCriterion("reducePrice >=", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceLessThan(Integer value) {
addCriterion("reducePrice <", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceLessThanOrEqualTo(Integer value) {
addCriterion("reducePrice <=", value, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceIn(List values) {
addCriterion("reducePrice in", values, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceNotIn(List values) {
addCriterion("reducePrice not in", values, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceBetween(Integer value1, Integer value2) {
addCriterion("reducePrice between", value1, value2, "reduceprice");
return (Criteria) this;
}
public Criteria andReducepriceNotBetween(Integer value1, Integer value2) {
addCriterion("reducePrice not between", value1, value2, "reduceprice");
return (Criteria) this;
}
public Criteria andFullnumIsNull() {
addCriterion("fullNum is null");
return (Criteria) this;
}
public Criteria andFullnumIsNotNull() {
addCriterion("fullNum is not null");
return (Criteria) this;
}
public Criteria andFullnumEqualTo(Integer value) {
addCriterion("fullNum =", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumNotEqualTo(Integer value) {
addCriterion("fullNum <>", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumGreaterThan(Integer value) {
addCriterion("fullNum >", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumGreaterThanOrEqualTo(Integer value) {
addCriterion("fullNum >=", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumLessThan(Integer value) {
addCriterion("fullNum <", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumLessThanOrEqualTo(Integer value) {
addCriterion("fullNum <=", value, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumIn(List values) {
addCriterion("fullNum in", values, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumNotIn(List values) {
addCriterion("fullNum not in", values, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumBetween(Integer value1, Integer value2) {
addCriterion("fullNum between", value1, value2, "fullnum");
return (Criteria) this;
}
public Criteria andFullnumNotBetween(Integer value1, Integer value2) {
addCriterion("fullNum not between", value1, value2, "fullnum");
return (Criteria) this;
}
public Criteria andReducenumIsNull() {
addCriterion("reduceNum is null");
return (Criteria) this;
}
public Criteria andReducenumIsNotNull() {
addCriterion("reduceNum is not null");
return (Criteria) this;
}
public Criteria andReducenumEqualTo(Integer value) {
addCriterion("reduceNum =", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumNotEqualTo(Integer value) {
addCriterion("reduceNum <>", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumGreaterThan(Integer value) {
addCriterion("reduceNum >", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumGreaterThanOrEqualTo(Integer value) {
addCriterion("reduceNum >=", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumLessThan(Integer value) {
addCriterion("reduceNum <", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumLessThanOrEqualTo(Integer value) {
addCriterion("reduceNum <=", value, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumIn(List values) {
addCriterion("reduceNum in", values, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumNotIn(List values) {
addCriterion("reduceNum not in", values, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumBetween(Integer value1, Integer value2) {
addCriterion("reduceNum between", value1, value2, "reducenum");
return (Criteria) this;
}
public Criteria andReducenumNotBetween(Integer value1, Integer value2) {
addCriterion("reduceNum not between", value1, value2, "reducenum");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Address.java
================================================
package com.zhang.ssmschoolshop.entity;
public class Address {
private Integer addressid;
private Integer userid;
private String province;
private String city;
private String county;
private String detailaddr;
private String conname;
private String contel;
public Integer getAddressid() {
return addressid;
}
public void setAddressid(Integer addressid) {
this.addressid = addressid;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province == null ? null : province.trim();
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city == null ? null : city.trim();
}
public String getCounty() {
return county;
}
public void setCounty(String county) {
this.county = county == null ? null : county.trim();
}
public String getDetailaddr() {
return detailaddr;
}
public void setDetailaddr(String detailaddr) {
this.detailaddr = detailaddr == null ? null : detailaddr.trim();
}
public String getConname() {
return conname;
}
public void setConname(String conname) {
this.conname = conname == null ? null : conname.trim();
}
public String getContel() {
return contel;
}
public void setContel(String contel) {
this.contel = contel == null ? null : contel.trim();
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/AddressExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.List;
public class AddressExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public AddressExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andAddressidIsNull() {
addCriterion("addressID is null");
return (Criteria) this;
}
public Criteria andAddressidIsNotNull() {
addCriterion("addressID is not null");
return (Criteria) this;
}
public Criteria andAddressidEqualTo(Integer value) {
addCriterion("addressID =", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidNotEqualTo(Integer value) {
addCriterion("addressID <>", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidGreaterThan(Integer value) {
addCriterion("addressID >", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidGreaterThanOrEqualTo(Integer value) {
addCriterion("addressID >=", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidLessThan(Integer value) {
addCriterion("addressID <", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidLessThanOrEqualTo(Integer value) {
addCriterion("addressID <=", value, "addressid");
return (Criteria) this;
}
public Criteria andAddressidIn(List values) {
addCriterion("addressID in", values, "addressid");
return (Criteria) this;
}
public Criteria andAddressidNotIn(List values) {
addCriterion("addressID not in", values, "addressid");
return (Criteria) this;
}
public Criteria andAddressidBetween(Integer value1, Integer value2) {
addCriterion("addressID between", value1, value2, "addressid");
return (Criteria) this;
}
public Criteria andAddressidNotBetween(Integer value1, Integer value2) {
addCriterion("addressID not between", value1, value2, "addressid");
return (Criteria) this;
}
public Criteria andUseridIsNull() {
addCriterion("userId is null");
return (Criteria) this;
}
public Criteria andUseridIsNotNull() {
addCriterion("userId is not null");
return (Criteria) this;
}
public Criteria andUseridEqualTo(Integer value) {
addCriterion("userId =", value, "userid");
return (Criteria) this;
}
public Criteria andUseridNotEqualTo(Integer value) {
addCriterion("userId <>", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThan(Integer value) {
addCriterion("userId >", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
addCriterion("userId >=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThan(Integer value) {
addCriterion("userId <", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThanOrEqualTo(Integer value) {
addCriterion("userId <=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridIn(List values) {
addCriterion("userId in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridNotIn(List values) {
addCriterion("userId not in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridBetween(Integer value1, Integer value2) {
addCriterion("userId between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andUseridNotBetween(Integer value1, Integer value2) {
addCriterion("userId not between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andProvinceIsNull() {
addCriterion("province is null");
return (Criteria) this;
}
public Criteria andProvinceIsNotNull() {
addCriterion("province is not null");
return (Criteria) this;
}
public Criteria andProvinceEqualTo(String value) {
addCriterion("province =", value, "province");
return (Criteria) this;
}
public Criteria andProvinceNotEqualTo(String value) {
addCriterion("province <>", value, "province");
return (Criteria) this;
}
public Criteria andProvinceGreaterThan(String value) {
addCriterion("province >", value, "province");
return (Criteria) this;
}
public Criteria andProvinceGreaterThanOrEqualTo(String value) {
addCriterion("province >=", value, "province");
return (Criteria) this;
}
public Criteria andProvinceLessThan(String value) {
addCriterion("province <", value, "province");
return (Criteria) this;
}
public Criteria andProvinceLessThanOrEqualTo(String value) {
addCriterion("province <=", value, "province");
return (Criteria) this;
}
public Criteria andProvinceLike(String value) {
addCriterion("province like", value, "province");
return (Criteria) this;
}
public Criteria andProvinceNotLike(String value) {
addCriterion("province not like", value, "province");
return (Criteria) this;
}
public Criteria andProvinceIn(List values) {
addCriterion("province in", values, "province");
return (Criteria) this;
}
public Criteria andProvinceNotIn(List values) {
addCriterion("province not in", values, "province");
return (Criteria) this;
}
public Criteria andProvinceBetween(String value1, String value2) {
addCriterion("province between", value1, value2, "province");
return (Criteria) this;
}
public Criteria andProvinceNotBetween(String value1, String value2) {
addCriterion("province not between", value1, value2, "province");
return (Criteria) this;
}
public Criteria andCityIsNull() {
addCriterion("city is null");
return (Criteria) this;
}
public Criteria andCityIsNotNull() {
addCriterion("city is not null");
return (Criteria) this;
}
public Criteria andCityEqualTo(String value) {
addCriterion("city =", value, "city");
return (Criteria) this;
}
public Criteria andCityNotEqualTo(String value) {
addCriterion("city <>", value, "city");
return (Criteria) this;
}
public Criteria andCityGreaterThan(String value) {
addCriterion("city >", value, "city");
return (Criteria) this;
}
public Criteria andCityGreaterThanOrEqualTo(String value) {
addCriterion("city >=", value, "city");
return (Criteria) this;
}
public Criteria andCityLessThan(String value) {
addCriterion("city <", value, "city");
return (Criteria) this;
}
public Criteria andCityLessThanOrEqualTo(String value) {
addCriterion("city <=", value, "city");
return (Criteria) this;
}
public Criteria andCityLike(String value) {
addCriterion("city like", value, "city");
return (Criteria) this;
}
public Criteria andCityNotLike(String value) {
addCriterion("city not like", value, "city");
return (Criteria) this;
}
public Criteria andCityIn(List values) {
addCriterion("city in", values, "city");
return (Criteria) this;
}
public Criteria andCityNotIn(List values) {
addCriterion("city not in", values, "city");
return (Criteria) this;
}
public Criteria andCityBetween(String value1, String value2) {
addCriterion("city between", value1, value2, "city");
return (Criteria) this;
}
public Criteria andCityNotBetween(String value1, String value2) {
addCriterion("city not between", value1, value2, "city");
return (Criteria) this;
}
public Criteria andCountyIsNull() {
addCriterion("county is null");
return (Criteria) this;
}
public Criteria andCountyIsNotNull() {
addCriterion("county is not null");
return (Criteria) this;
}
public Criteria andCountyEqualTo(String value) {
addCriterion("county =", value, "county");
return (Criteria) this;
}
public Criteria andCountyNotEqualTo(String value) {
addCriterion("county <>", value, "county");
return (Criteria) this;
}
public Criteria andCountyGreaterThan(String value) {
addCriterion("county >", value, "county");
return (Criteria) this;
}
public Criteria andCountyGreaterThanOrEqualTo(String value) {
addCriterion("county >=", value, "county");
return (Criteria) this;
}
public Criteria andCountyLessThan(String value) {
addCriterion("county <", value, "county");
return (Criteria) this;
}
public Criteria andCountyLessThanOrEqualTo(String value) {
addCriterion("county <=", value, "county");
return (Criteria) this;
}
public Criteria andCountyLike(String value) {
addCriterion("county like", value, "county");
return (Criteria) this;
}
public Criteria andCountyNotLike(String value) {
addCriterion("county not like", value, "county");
return (Criteria) this;
}
public Criteria andCountyIn(List values) {
addCriterion("county in", values, "county");
return (Criteria) this;
}
public Criteria andCountyNotIn(List values) {
addCriterion("county not in", values, "county");
return (Criteria) this;
}
public Criteria andCountyBetween(String value1, String value2) {
addCriterion("county between", value1, value2, "county");
return (Criteria) this;
}
public Criteria andCountyNotBetween(String value1, String value2) {
addCriterion("county not between", value1, value2, "county");
return (Criteria) this;
}
public Criteria andDetailaddrIsNull() {
addCriterion("detailAddr is null");
return (Criteria) this;
}
public Criteria andDetailaddrIsNotNull() {
addCriterion("detailAddr is not null");
return (Criteria) this;
}
public Criteria andDetailaddrEqualTo(String value) {
addCriterion("detailAddr =", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrNotEqualTo(String value) {
addCriterion("detailAddr <>", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrGreaterThan(String value) {
addCriterion("detailAddr >", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrGreaterThanOrEqualTo(String value) {
addCriterion("detailAddr >=", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrLessThan(String value) {
addCriterion("detailAddr <", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrLessThanOrEqualTo(String value) {
addCriterion("detailAddr <=", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrLike(String value) {
addCriterion("detailAddr like", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrNotLike(String value) {
addCriterion("detailAddr not like", value, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrIn(List values) {
addCriterion("detailAddr in", values, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrNotIn(List values) {
addCriterion("detailAddr not in", values, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrBetween(String value1, String value2) {
addCriterion("detailAddr between", value1, value2, "detailaddr");
return (Criteria) this;
}
public Criteria andDetailaddrNotBetween(String value1, String value2) {
addCriterion("detailAddr not between", value1, value2, "detailaddr");
return (Criteria) this;
}
public Criteria andConnameIsNull() {
addCriterion("conName is null");
return (Criteria) this;
}
public Criteria andConnameIsNotNull() {
addCriterion("conName is not null");
return (Criteria) this;
}
public Criteria andConnameEqualTo(String value) {
addCriterion("conName =", value, "conname");
return (Criteria) this;
}
public Criteria andConnameNotEqualTo(String value) {
addCriterion("conName <>", value, "conname");
return (Criteria) this;
}
public Criteria andConnameGreaterThan(String value) {
addCriterion("conName >", value, "conname");
return (Criteria) this;
}
public Criteria andConnameGreaterThanOrEqualTo(String value) {
addCriterion("conName >=", value, "conname");
return (Criteria) this;
}
public Criteria andConnameLessThan(String value) {
addCriterion("conName <", value, "conname");
return (Criteria) this;
}
public Criteria andConnameLessThanOrEqualTo(String value) {
addCriterion("conName <=", value, "conname");
return (Criteria) this;
}
public Criteria andConnameLike(String value) {
addCriterion("conName like", value, "conname");
return (Criteria) this;
}
public Criteria andConnameNotLike(String value) {
addCriterion("conName not like", value, "conname");
return (Criteria) this;
}
public Criteria andConnameIn(List values) {
addCriterion("conName in", values, "conname");
return (Criteria) this;
}
public Criteria andConnameNotIn(List values) {
addCriterion("conName not in", values, "conname");
return (Criteria) this;
}
public Criteria andConnameBetween(String value1, String value2) {
addCriterion("conName between", value1, value2, "conname");
return (Criteria) this;
}
public Criteria andConnameNotBetween(String value1, String value2) {
addCriterion("conName not between", value1, value2, "conname");
return (Criteria) this;
}
public Criteria andContelIsNull() {
addCriterion("conTel is null");
return (Criteria) this;
}
public Criteria andContelIsNotNull() {
addCriterion("conTel is not null");
return (Criteria) this;
}
public Criteria andContelEqualTo(String value) {
addCriterion("conTel =", value, "contel");
return (Criteria) this;
}
public Criteria andContelNotEqualTo(String value) {
addCriterion("conTel <>", value, "contel");
return (Criteria) this;
}
public Criteria andContelGreaterThan(String value) {
addCriterion("conTel >", value, "contel");
return (Criteria) this;
}
public Criteria andContelGreaterThanOrEqualTo(String value) {
addCriterion("conTel >=", value, "contel");
return (Criteria) this;
}
public Criteria andContelLessThan(String value) {
addCriterion("conTel <", value, "contel");
return (Criteria) this;
}
public Criteria andContelLessThanOrEqualTo(String value) {
addCriterion("conTel <=", value, "contel");
return (Criteria) this;
}
public Criteria andContelLike(String value) {
addCriterion("conTel like", value, "contel");
return (Criteria) this;
}
public Criteria andContelNotLike(String value) {
addCriterion("conTel not like", value, "contel");
return (Criteria) this;
}
public Criteria andContelIn(List values) {
addCriterion("conTel in", values, "contel");
return (Criteria) this;
}
public Criteria andContelNotIn(List values) {
addCriterion("conTel not in", values, "contel");
return (Criteria) this;
}
public Criteria andContelBetween(String value1, String value2) {
addCriterion("conTel between", value1, value2, "contel");
return (Criteria) this;
}
public Criteria andContelNotBetween(String value1, String value2) {
addCriterion("conTel not between", value1, value2, "contel");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Admin.java
================================================
package com.zhang.ssmschoolshop.entity;
public class Admin {
private Integer adminid;
private String adminname;
private String password;
public Admin(Integer adminid, String adminname, String password) {
this.adminid = adminid;
this.adminname = adminname;
this.password = password;
}
public Admin() {
}
public Integer getAdminid() {
return adminid;
}
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
public String getAdminname() {
return adminname;
}
public void setAdminname(String adminname) {
this.adminname = adminname == null ? null : adminname.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/AdminExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.List;
public class AdminExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public AdminExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andAdminidIsNull() {
addCriterion("adminId is null");
return (Criteria) this;
}
public Criteria andAdminidIsNotNull() {
addCriterion("adminId is not null");
return (Criteria) this;
}
public Criteria andAdminidEqualTo(Integer value) {
addCriterion("adminId =", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidNotEqualTo(Integer value) {
addCriterion("adminId <>", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidGreaterThan(Integer value) {
addCriterion("adminId >", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidGreaterThanOrEqualTo(Integer value) {
addCriterion("adminId >=", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidLessThan(Integer value) {
addCriterion("adminId <", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidLessThanOrEqualTo(Integer value) {
addCriterion("adminId <=", value, "adminid");
return (Criteria) this;
}
public Criteria andAdminidIn(List values) {
addCriterion("adminId in", values, "adminid");
return (Criteria) this;
}
public Criteria andAdminidNotIn(List values) {
addCriterion("adminId not in", values, "adminid");
return (Criteria) this;
}
public Criteria andAdminidBetween(Integer value1, Integer value2) {
addCriterion("adminId between", value1, value2, "adminid");
return (Criteria) this;
}
public Criteria andAdminidNotBetween(Integer value1, Integer value2) {
addCriterion("adminId not between", value1, value2, "adminid");
return (Criteria) this;
}
public Criteria andAdminnameIsNull() {
addCriterion("adminName is null");
return (Criteria) this;
}
public Criteria andAdminnameIsNotNull() {
addCriterion("adminName is not null");
return (Criteria) this;
}
public Criteria andAdminnameEqualTo(String value) {
addCriterion("adminName =", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameNotEqualTo(String value) {
addCriterion("adminName <>", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameGreaterThan(String value) {
addCriterion("adminName >", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameGreaterThanOrEqualTo(String value) {
addCriterion("adminName >=", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameLessThan(String value) {
addCriterion("adminName <", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameLessThanOrEqualTo(String value) {
addCriterion("adminName <=", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameLike(String value) {
addCriterion("adminName like", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameNotLike(String value) {
addCriterion("adminName not like", value, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameIn(List values) {
addCriterion("adminName in", values, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameNotIn(List values) {
addCriterion("adminName not in", values, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameBetween(String value1, String value2) {
addCriterion("adminName between", value1, value2, "adminname");
return (Criteria) this;
}
public Criteria andAdminnameNotBetween(String value1, String value2) {
addCriterion("adminName not between", value1, value2, "adminname");
return (Criteria) this;
}
public Criteria andPasswordIsNull() {
addCriterion("password is null");
return (Criteria) this;
}
public Criteria andPasswordIsNotNull() {
addCriterion("password is not null");
return (Criteria) this;
}
public Criteria andPasswordEqualTo(String value) {
addCriterion("password =", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotEqualTo(String value) {
addCriterion("password <>", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThan(String value) {
addCriterion("password >", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThanOrEqualTo(String value) {
addCriterion("password >=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThan(String value) {
addCriterion("password <", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThanOrEqualTo(String value) {
addCriterion("password <=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLike(String value) {
addCriterion("password like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotLike(String value) {
addCriterion("password not like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordIn(List values) {
addCriterion("password in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordNotIn(List values) {
addCriterion("password not in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordBetween(String value1, String value2) {
addCriterion("password between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andPasswordNotBetween(String value1, String value2) {
addCriterion("password not between", value1, value2, "password");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Category.java
================================================
package com.zhang.ssmschoolshop.entity;
public class Category {
private Integer cateid;
private String catename;
public Integer getCateid() {
return cateid;
}
public void setCateid(Integer cateid) {
this.cateid = cateid;
}
public String getCatename() {
return catename;
}
public void setCatename(String catename) {
this.catename = catename == null ? null : catename.trim();
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/CategoryExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.List;
public class CategoryExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public CategoryExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andCateidIsNull() {
addCriterion("cateId is null");
return (Criteria) this;
}
public Criteria andCateidIsNotNull() {
addCriterion("cateId is not null");
return (Criteria) this;
}
public Criteria andCateidEqualTo(Integer value) {
addCriterion("cateId =", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidNotEqualTo(Integer value) {
addCriterion("cateId <>", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidGreaterThan(Integer value) {
addCriterion("cateId >", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidGreaterThanOrEqualTo(Integer value) {
addCriterion("cateId >=", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidLessThan(Integer value) {
addCriterion("cateId <", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidLessThanOrEqualTo(Integer value) {
addCriterion("cateId <=", value, "cateid");
return (Criteria) this;
}
public Criteria andCateidIn(List values) {
addCriterion("cateId in", values, "cateid");
return (Criteria) this;
}
public Criteria andCateidNotIn(List values) {
addCriterion("cateId not in", values, "cateid");
return (Criteria) this;
}
public Criteria andCateidBetween(Integer value1, Integer value2) {
addCriterion("cateId between", value1, value2, "cateid");
return (Criteria) this;
}
public Criteria andCateidNotBetween(Integer value1, Integer value2) {
addCriterion("cateId not between", value1, value2, "cateid");
return (Criteria) this;
}
public Criteria andCatenameIsNull() {
addCriterion("cateName is null");
return (Criteria) this;
}
public Criteria andCatenameIsNotNull() {
addCriterion("cateName is not null");
return (Criteria) this;
}
public Criteria andCatenameEqualTo(String value) {
addCriterion("cateName =", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameNotEqualTo(String value) {
addCriterion("cateName <>", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameGreaterThan(String value) {
addCriterion("cateName >", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameGreaterThanOrEqualTo(String value) {
addCriterion("cateName >=", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameLessThan(String value) {
addCriterion("cateName <", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameLessThanOrEqualTo(String value) {
addCriterion("cateName <=", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameLike(String value) {
addCriterion("cateName like", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameNotLike(String value) {
addCriterion("cateName not like", value, "catename");
return (Criteria) this;
}
public Criteria andCatenameIn(List values) {
addCriterion("cateName in", values, "catename");
return (Criteria) this;
}
public Criteria andCatenameNotIn(List values) {
addCriterion("cateName not in", values, "catename");
return (Criteria) this;
}
public Criteria andCatenameBetween(String value1, String value2) {
addCriterion("cateName between", value1, value2, "catename");
return (Criteria) this;
}
public Criteria andCatenameNotBetween(String value1, String value2) {
addCriterion("cateName not between", value1, value2, "catename");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Comment.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.Date;
public class Comment {
private Integer commentid;
private Integer userid;
private Integer goodsid;
private Integer point;
private String content;
private Date commenttime;
private String username;
public Integer getCommentid() {
return commentid;
}
public void setCommentid(Integer commentid) {
this.commentid = commentid;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public Integer getGoodsid() {
return goodsid;
}
public void setGoodsid(Integer goodsid) {
this.goodsid = goodsid;
}
public Integer getPoint() {
return point;
}
public void setPoint(Integer point) {
this.point = point;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public Date getCommenttime() {
return commenttime;
}
public void setCommenttime(Date commenttime) {
this.commenttime = commenttime;
}
public void setUserName(String userName) {this.username=userName;}
public String getUsername() {return username;}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/CommentExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CommentExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public CommentExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andCommentidIsNull() {
addCriterion("commentId is null");
return (Criteria) this;
}
public Criteria andCommentidIsNotNull() {
addCriterion("commentId is not null");
return (Criteria) this;
}
public Criteria andCommentidEqualTo(Integer value) {
addCriterion("commentId =", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidNotEqualTo(Integer value) {
addCriterion("commentId <>", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidGreaterThan(Integer value) {
addCriterion("commentId >", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidGreaterThanOrEqualTo(Integer value) {
addCriterion("commentId >=", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidLessThan(Integer value) {
addCriterion("commentId <", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidLessThanOrEqualTo(Integer value) {
addCriterion("commentId <=", value, "commentid");
return (Criteria) this;
}
public Criteria andCommentidIn(List values) {
addCriterion("commentId in", values, "commentid");
return (Criteria) this;
}
public Criteria andCommentidNotIn(List values) {
addCriterion("commentId not in", values, "commentid");
return (Criteria) this;
}
public Criteria andCommentidBetween(Integer value1, Integer value2) {
addCriterion("commentId between", value1, value2, "commentid");
return (Criteria) this;
}
public Criteria andCommentidNotBetween(Integer value1, Integer value2) {
addCriterion("commentId not between", value1, value2, "commentid");
return (Criteria) this;
}
public Criteria andUseridIsNull() {
addCriterion("userId is null");
return (Criteria) this;
}
public Criteria andUseridIsNotNull() {
addCriterion("userId is not null");
return (Criteria) this;
}
public Criteria andUseridEqualTo(Integer value) {
addCriterion("userId =", value, "userid");
return (Criteria) this;
}
public Criteria andUseridNotEqualTo(Integer value) {
addCriterion("userId <>", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThan(Integer value) {
addCriterion("userId >", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
addCriterion("userId >=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThan(Integer value) {
addCriterion("userId <", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThanOrEqualTo(Integer value) {
addCriterion("userId <=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridIn(List values) {
addCriterion("userId in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridNotIn(List values) {
addCriterion("userId not in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridBetween(Integer value1, Integer value2) {
addCriterion("userId between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andUseridNotBetween(Integer value1, Integer value2) {
addCriterion("userId not between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andGoodsidIsNull() {
addCriterion("goodsId is null");
return (Criteria) this;
}
public Criteria andGoodsidIsNotNull() {
addCriterion("goodsId is not null");
return (Criteria) this;
}
public Criteria andGoodsidEqualTo(Integer value) {
addCriterion("goodsId =", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotEqualTo(Integer value) {
addCriterion("goodsId <>", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThan(Integer value) {
addCriterion("goodsId >", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThanOrEqualTo(Integer value) {
addCriterion("goodsId >=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThan(Integer value) {
addCriterion("goodsId <", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThanOrEqualTo(Integer value) {
addCriterion("goodsId <=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidIn(List values) {
addCriterion("goodsId in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotIn(List values) {
addCriterion("goodsId not in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidBetween(Integer value1, Integer value2) {
addCriterion("goodsId between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotBetween(Integer value1, Integer value2) {
addCriterion("goodsId not between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andPointIsNull() {
addCriterion("point is null");
return (Criteria) this;
}
public Criteria andPointIsNotNull() {
addCriterion("point is not null");
return (Criteria) this;
}
public Criteria andPointEqualTo(Integer value) {
addCriterion("point =", value, "point");
return (Criteria) this;
}
public Criteria andPointNotEqualTo(Integer value) {
addCriterion("point <>", value, "point");
return (Criteria) this;
}
public Criteria andPointGreaterThan(Integer value) {
addCriterion("point >", value, "point");
return (Criteria) this;
}
public Criteria andPointGreaterThanOrEqualTo(Integer value) {
addCriterion("point >=", value, "point");
return (Criteria) this;
}
public Criteria andPointLessThan(Integer value) {
addCriterion("point <", value, "point");
return (Criteria) this;
}
public Criteria andPointLessThanOrEqualTo(Integer value) {
addCriterion("point <=", value, "point");
return (Criteria) this;
}
public Criteria andPointIn(List values) {
addCriterion("point in", values, "point");
return (Criteria) this;
}
public Criteria andPointNotIn(List values) {
addCriterion("point not in", values, "point");
return (Criteria) this;
}
public Criteria andPointBetween(Integer value1, Integer value2) {
addCriterion("point between", value1, value2, "point");
return (Criteria) this;
}
public Criteria andPointNotBetween(Integer value1, Integer value2) {
addCriterion("point not between", value1, value2, "point");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("content is null");
return (Criteria) this;
}
public Criteria andContentIsNotNull() {
addCriterion("content is not null");
return (Criteria) this;
}
public Criteria andContentEqualTo(String value) {
addCriterion("content =", value, "content");
return (Criteria) this;
}
public Criteria andContentNotEqualTo(String value) {
addCriterion("content <>", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThan(String value) {
addCriterion("content >", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThanOrEqualTo(String value) {
addCriterion("content >=", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThan(String value) {
addCriterion("content <", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThanOrEqualTo(String value) {
addCriterion("content <=", value, "content");
return (Criteria) this;
}
public Criteria andContentLike(String value) {
addCriterion("content like", value, "content");
return (Criteria) this;
}
public Criteria andContentNotLike(String value) {
addCriterion("content not like", value, "content");
return (Criteria) this;
}
public Criteria andContentIn(List values) {
addCriterion("content in", values, "content");
return (Criteria) this;
}
public Criteria andContentNotIn(List values) {
addCriterion("content not in", values, "content");
return (Criteria) this;
}
public Criteria andContentBetween(String value1, String value2) {
addCriterion("content between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andContentNotBetween(String value1, String value2) {
addCriterion("content not between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andCommenttimeIsNull() {
addCriterion("commentTime is null");
return (Criteria) this;
}
public Criteria andCommenttimeIsNotNull() {
addCriterion("commentTime is not null");
return (Criteria) this;
}
public Criteria andCommenttimeEqualTo(Date value) {
addCriterion("commentTime =", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeNotEqualTo(Date value) {
addCriterion("commentTime <>", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeGreaterThan(Date value) {
addCriterion("commentTime >", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeGreaterThanOrEqualTo(Date value) {
addCriterion("commentTime >=", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeLessThan(Date value) {
addCriterion("commentTime <", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeLessThanOrEqualTo(Date value) {
addCriterion("commentTime <=", value, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeIn(List values) {
addCriterion("commentTime in", values, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeNotIn(List values) {
addCriterion("commentTime not in", values, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeBetween(Date value1, Date value2) {
addCriterion("commentTime between", value1, value2, "commenttime");
return (Criteria) this;
}
public Criteria andCommenttimeNotBetween(Date value1, Date value2) {
addCriterion("commentTime not between", value1, value2, "commenttime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/EmailSend.java
================================================
package com.zhang.ssmschoolshop.entity;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
/**
* @author codingzx
* @description
* @date 2021/3/27 21:13
*/
@Data
@ToString
public class EmailSend implements Serializable {
/**
* 邮件接收方,可多人
*/
private String[] receivers;
/**
* 邮件主题
*/
private String subject;
/**
* 邮件内容
*/
private String content;
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Favorite.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.Date;
public class Favorite extends FavoriteKey {
private Date collecttime;
public Date getCollecttime() {
return collecttime;
}
public void setCollecttime(Date collecttime) {
this.collecttime = collecttime;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/FavoriteExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class FavoriteExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public FavoriteExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUseridIsNull() {
addCriterion("userId is null");
return (Criteria) this;
}
public Criteria andUseridIsNotNull() {
addCriterion("userId is not null");
return (Criteria) this;
}
public Criteria andUseridEqualTo(Integer value) {
addCriterion("userId =", value, "userid");
return (Criteria) this;
}
public Criteria andUseridNotEqualTo(Integer value) {
addCriterion("userId <>", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThan(Integer value) {
addCriterion("userId >", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
addCriterion("userId >=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThan(Integer value) {
addCriterion("userId <", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThanOrEqualTo(Integer value) {
addCriterion("userId <=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridIn(List values) {
addCriterion("userId in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridNotIn(List values) {
addCriterion("userId not in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridBetween(Integer value1, Integer value2) {
addCriterion("userId between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andUseridNotBetween(Integer value1, Integer value2) {
addCriterion("userId not between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andGoodsidIsNull() {
addCriterion("goodsId is null");
return (Criteria) this;
}
public Criteria andGoodsidIsNotNull() {
addCriterion("goodsId is not null");
return (Criteria) this;
}
public Criteria andGoodsidEqualTo(Integer value) {
addCriterion("goodsId =", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotEqualTo(Integer value) {
addCriterion("goodsId <>", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThan(Integer value) {
addCriterion("goodsId >", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThanOrEqualTo(Integer value) {
addCriterion("goodsId >=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThan(Integer value) {
addCriterion("goodsId <", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThanOrEqualTo(Integer value) {
addCriterion("goodsId <=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidIn(List values) {
addCriterion("goodsId in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotIn(List values) {
addCriterion("goodsId not in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidBetween(Integer value1, Integer value2) {
addCriterion("goodsId between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotBetween(Integer value1, Integer value2) {
addCriterion("goodsId not between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andCollecttimeIsNull() {
addCriterion("collectTime is null");
return (Criteria) this;
}
public Criteria andCollecttimeIsNotNull() {
addCriterion("collectTime is not null");
return (Criteria) this;
}
public Criteria andCollecttimeEqualTo(Date value) {
addCriterion("collectTime =", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeNotEqualTo(Date value) {
addCriterion("collectTime <>", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeGreaterThan(Date value) {
addCriterion("collectTime >", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeGreaterThanOrEqualTo(Date value) {
addCriterion("collectTime >=", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeLessThan(Date value) {
addCriterion("collectTime <", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeLessThanOrEqualTo(Date value) {
addCriterion("collectTime <=", value, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeIn(List values) {
addCriterion("collectTime in", values, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeNotIn(List values) {
addCriterion("collectTime not in", values, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeBetween(Date value1, Date value2) {
addCriterion("collectTime between", value1, value2, "collecttime");
return (Criteria) this;
}
public Criteria andCollecttimeNotBetween(Date value1, Date value2) {
addCriterion("collectTime not between", value1, value2, "collecttime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/FavoriteKey.java
================================================
package com.zhang.ssmschoolshop.entity;
public class FavoriteKey {
private Integer userid;
private Integer goodsid;
public FavoriteKey() {
}
public FavoriteKey(Integer userid, Integer goodsid) {
this.userid = userid;
this.goodsid = goodsid;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public Integer getGoodsid() {
return goodsid;
}
public void setGoodsid(Integer goodsid) {
this.goodsid = goodsid;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Goods.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.Date;
import java.util.List;
public class Goods {
private Integer goodsid;
private String goodsname;
private Integer price;
private Integer num;
private Date uptime;
private Integer category;
private String detailcate;
private Integer activityid;
private String description;
private List imagePaths;
private boolean fav;
private Activity activity;
private Float newPrice;
public Integer getGoodsid() {
return goodsid;
}
public void setGoodsid(Integer goodsid) {
this.goodsid = goodsid;
}
public String getGoodsname() {
return goodsname;
}
public void setGoodsname(String goodsname) {
this.goodsname = goodsname == null ? null : goodsname.trim();
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public Date getUptime() {
return uptime;
}
public void setUptime(Date uptime) {
this.uptime = uptime;
}
public Integer getCategory() {
return category;
}
public void setCategory(Integer category) {
this.category = category;
}
public String getDetailcate() {
return detailcate;
}
public void setDetailcate(String detailcate) {
this.detailcate = detailcate == null ? null : detailcate.trim();
}
public Integer getActivityid() {
return activityid;
}
public void setActivityid(Integer activityid) {
this.activityid = activityid;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
public List getImagePaths() {
return imagePaths;
}
public void setImagePaths(List imagePaths) {
this.imagePaths = imagePaths;
}
public boolean isFav() {
return fav;
}
public void setFav(boolean fav) {
this.fav = fav;
}
public Activity getActivity() {
return activity;
}
public void setActivity(Activity activity) {
this.activity = activity;
}
public Float getNewPrice() {
return newPrice;
}
public void setNewPrice(Float newPrice) {
this.newPrice = newPrice;
}
@Override
public String toString() {
return "Goods{" +
"goodsid=" + goodsid +
", goodsname='" + goodsname + '\'' +
", price=" + price +
", num=" + num +
", uptime=" + uptime +
", category=" + category +
", detailcate='" + detailcate + '\'' +
", activityid=" + activityid +
", description='" + description + '\'' +
", imagePaths=" + imagePaths +
", fav=" + fav +
", activity=" + activity +
", newPrice=" + newPrice +
'}';
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/GoodsExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class GoodsExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public GoodsExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andGoodsidIsNull() {
addCriterion("goodsId is null");
return (Criteria) this;
}
public Criteria andGoodsidIsNotNull() {
addCriterion("goodsId is not null");
return (Criteria) this;
}
public Criteria andGoodsidEqualTo(Integer value) {
addCriterion("goodsId =", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotEqualTo(Integer value) {
addCriterion("goodsId <>", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThan(Integer value) {
addCriterion("goodsId >", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidGreaterThanOrEqualTo(Integer value) {
addCriterion("goodsId >=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThan(Integer value) {
addCriterion("goodsId <", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidLessThanOrEqualTo(Integer value) {
addCriterion("goodsId <=", value, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidIn(List values) {
addCriterion("goodsId in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotIn(List values) {
addCriterion("goodsId not in", values, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidBetween(Integer value1, Integer value2) {
addCriterion("goodsId between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsidNotBetween(Integer value1, Integer value2) {
addCriterion("goodsId not between", value1, value2, "goodsid");
return (Criteria) this;
}
public Criteria andGoodsnameIsNull() {
addCriterion("goodsName is null");
return (Criteria) this;
}
public Criteria andGoodsnameIsNotNull() {
addCriterion("goodsName is not null");
return (Criteria) this;
}
public Criteria andGoodsnameEqualTo(String value) {
addCriterion("goodsName =", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameNotEqualTo(String value) {
addCriterion("goodsName <>", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameGreaterThan(String value) {
addCriterion("goodsName >", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameGreaterThanOrEqualTo(String value) {
addCriterion("goodsName >=", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameLessThan(String value) {
addCriterion("goodsName <", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameLessThanOrEqualTo(String value) {
addCriterion("goodsName <=", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameLike(String value) {
addCriterion("goodsName like", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameNotLike(String value) {
addCriterion("goodsName not like", value, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameIn(List values) {
addCriterion("goodsName in", values, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameNotIn(List values) {
addCriterion("goodsName not in", values, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameBetween(String value1, String value2) {
addCriterion("goodsName between", value1, value2, "goodsname");
return (Criteria) this;
}
public Criteria andGoodsnameNotBetween(String value1, String value2) {
addCriterion("goodsName not between", value1, value2, "goodsname");
return (Criteria) this;
}
public Criteria andPriceIsNull() {
addCriterion("price is null");
return (Criteria) this;
}
public Criteria andPriceIsNotNull() {
addCriterion("price is not null");
return (Criteria) this;
}
public Criteria andPriceEqualTo(Integer value) {
addCriterion("price =", value, "price");
return (Criteria) this;
}
public Criteria andPriceNotEqualTo(Integer value) {
addCriterion("price <>", value, "price");
return (Criteria) this;
}
public Criteria andPriceGreaterThan(Integer value) {
addCriterion("price >", value, "price");
return (Criteria) this;
}
public Criteria andPriceGreaterThanOrEqualTo(Integer value) {
addCriterion("price >=", value, "price");
return (Criteria) this;
}
public Criteria andPriceLessThan(Integer value) {
addCriterion("price <", value, "price");
return (Criteria) this;
}
public Criteria andPriceLessThanOrEqualTo(Integer value) {
addCriterion("price <=", value, "price");
return (Criteria) this;
}
public Criteria andPriceIn(List values) {
addCriterion("price in", values, "price");
return (Criteria) this;
}
public Criteria andPriceNotIn(List values) {
addCriterion("price not in", values, "price");
return (Criteria) this;
}
public Criteria andPriceBetween(Integer value1, Integer value2) {
addCriterion("price between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andPriceNotBetween(Integer value1, Integer value2) {
addCriterion("price not between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andNumIsNull() {
addCriterion("num is null");
return (Criteria) this;
}
public Criteria andNumIsNotNull() {
addCriterion("num is not null");
return (Criteria) this;
}
public Criteria andNumEqualTo(Integer value) {
addCriterion("num =", value, "num");
return (Criteria) this;
}
public Criteria andNumNotEqualTo(Integer value) {
addCriterion("num <>", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThan(Integer value) {
addCriterion("num >", value, "num");
return (Criteria) this;
}
public Criteria andNumGreaterThanOrEqualTo(Integer value) {
addCriterion("num >=", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThan(Integer value) {
addCriterion("num <", value, "num");
return (Criteria) this;
}
public Criteria andNumLessThanOrEqualTo(Integer value) {
addCriterion("num <=", value, "num");
return (Criteria) this;
}
public Criteria andNumIn(List values) {
addCriterion("num in", values, "num");
return (Criteria) this;
}
public Criteria andNumNotIn(List values) {
addCriterion("num not in", values, "num");
return (Criteria) this;
}
public Criteria andNumBetween(Integer value1, Integer value2) {
addCriterion("num between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andNumNotBetween(Integer value1, Integer value2) {
addCriterion("num not between", value1, value2, "num");
return (Criteria) this;
}
public Criteria andUptimeIsNull() {
addCriterion("upTime is null");
return (Criteria) this;
}
public Criteria andUptimeIsNotNull() {
addCriterion("upTime is not null");
return (Criteria) this;
}
public Criteria andUptimeEqualTo(Date value) {
addCriterion("upTime =", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeNotEqualTo(Date value) {
addCriterion("upTime <>", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeGreaterThan(Date value) {
addCriterion("upTime >", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeGreaterThanOrEqualTo(Date value) {
addCriterion("upTime >=", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeLessThan(Date value) {
addCriterion("upTime <", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeLessThanOrEqualTo(Date value) {
addCriterion("upTime <=", value, "uptime");
return (Criteria) this;
}
public Criteria andUptimeIn(List values) {
addCriterion("upTime in", values, "uptime");
return (Criteria) this;
}
public Criteria andUptimeNotIn(List values) {
addCriterion("upTime not in", values, "uptime");
return (Criteria) this;
}
public Criteria andUptimeBetween(Date value1, Date value2) {
addCriterion("upTime between", value1, value2, "uptime");
return (Criteria) this;
}
public Criteria andUptimeNotBetween(Date value1, Date value2) {
addCriterion("upTime not between", value1, value2, "uptime");
return (Criteria) this;
}
public Criteria andCategoryIsNull() {
addCriterion("category is null");
return (Criteria) this;
}
public Criteria andCategoryIsNotNull() {
addCriterion("category is not null");
return (Criteria) this;
}
public Criteria andCategoryEqualTo(Integer value) {
addCriterion("category =", value, "category");
return (Criteria) this;
}
public Criteria andCategoryNotEqualTo(Integer value) {
addCriterion("category <>", value, "category");
return (Criteria) this;
}
public Criteria andCategoryGreaterThan(Integer value) {
addCriterion("category >", value, "category");
return (Criteria) this;
}
public Criteria andCategoryGreaterThanOrEqualTo(Integer value) {
addCriterion("category >=", value, "category");
return (Criteria) this;
}
public Criteria andCategoryLessThan(Integer value) {
addCriterion("category <", value, "category");
return (Criteria) this;
}
public Criteria andCategoryLessThanOrEqualTo(Integer value) {
addCriterion("category <=", value, "category");
return (Criteria) this;
}
public Criteria andCategoryIn(List values) {
addCriterion("category in", values, "category");
return (Criteria) this;
}
public Criteria andCategoryNotIn(List values) {
addCriterion("category not in", values, "category");
return (Criteria) this;
}
public Criteria andCategoryBetween(Integer value1, Integer value2) {
addCriterion("category between", value1, value2, "category");
return (Criteria) this;
}
public Criteria andCategoryNotBetween(Integer value1, Integer value2) {
addCriterion("category not between", value1, value2, "category");
return (Criteria) this;
}
public Criteria andDetailcateIsNull() {
addCriterion("detailCate is null");
return (Criteria) this;
}
public Criteria andDetailcateIsNotNull() {
addCriterion("detailCate is not null");
return (Criteria) this;
}
public Criteria andDetailcateEqualTo(String value) {
addCriterion("detailCate =", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateNotEqualTo(String value) {
addCriterion("detailCate <>", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateGreaterThan(String value) {
addCriterion("detailCate >", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateGreaterThanOrEqualTo(String value) {
addCriterion("detailCate >=", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateLessThan(String value) {
addCriterion("detailCate <", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateLessThanOrEqualTo(String value) {
addCriterion("detailCate <=", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateLike(String value) {
addCriterion("detailCate like", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateNotLike(String value) {
addCriterion("detailCate not like", value, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateIn(List values) {
addCriterion("detailCate in", values, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateNotIn(List values) {
addCriterion("detailCate not in", values, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateBetween(String value1, String value2) {
addCriterion("detailCate between", value1, value2, "detailcate");
return (Criteria) this;
}
public Criteria andDetailcateNotBetween(String value1, String value2) {
addCriterion("detailCate not between", value1, value2, "detailcate");
return (Criteria) this;
}
public Criteria andActivityidIsNull() {
addCriterion("activityId is null");
return (Criteria) this;
}
public Criteria andActivityidIsNotNull() {
addCriterion("activityId is not null");
return (Criteria) this;
}
public Criteria andActivityidEqualTo(Integer value) {
addCriterion("activityId =", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotEqualTo(Integer value) {
addCriterion("activityId <>", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidGreaterThan(Integer value) {
addCriterion("activityId >", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidGreaterThanOrEqualTo(Integer value) {
addCriterion("activityId >=", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidLessThan(Integer value) {
addCriterion("activityId <", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidLessThanOrEqualTo(Integer value) {
addCriterion("activityId <=", value, "activityid");
return (Criteria) this;
}
public Criteria andActivityidIn(List values) {
addCriterion("activityId in", values, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotIn(List values) {
addCriterion("activityId not in", values, "activityid");
return (Criteria) this;
}
public Criteria andActivityidBetween(Integer value1, Integer value2) {
addCriterion("activityId between", value1, value2, "activityid");
return (Criteria) this;
}
public Criteria andActivityidNotBetween(Integer value1, Integer value2) {
addCriterion("activityId not between", value1, value2, "activityid");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/GoodsPrice.java
================================================
package com.zhang.ssmschoolshop.entity;
public class GoodsPrice {
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/ImagePath.java
================================================
package com.zhang.ssmschoolshop.entity;
public class ImagePath {
private Integer pathid;
private Integer goodid;
private String path;
public ImagePath() {
}
public ImagePath(Integer pathid, Integer goodid, String path) {
this.pathid = pathid;
this.goodid = goodid;
this.path = path;
}
public Integer getPathid() {
return pathid;
}
public void setPathid(Integer pathid) {
this.pathid = pathid;
}
public Integer getGoodid() {
return goodid;
}
public void setGoodid(Integer goodid) {
this.goodid = goodid;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path == null ? null : path.trim();
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/ImagePathExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.List;
public class ImagePathExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public ImagePathExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andPathidIsNull() {
addCriterion("pathId is null");
return (Criteria) this;
}
public Criteria andPathidIsNotNull() {
addCriterion("pathId is not null");
return (Criteria) this;
}
public Criteria andPathidEqualTo(Integer value) {
addCriterion("pathId =", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidNotEqualTo(Integer value) {
addCriterion("pathId <>", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidGreaterThan(Integer value) {
addCriterion("pathId >", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidGreaterThanOrEqualTo(Integer value) {
addCriterion("pathId >=", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidLessThan(Integer value) {
addCriterion("pathId <", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidLessThanOrEqualTo(Integer value) {
addCriterion("pathId <=", value, "pathid");
return (Criteria) this;
}
public Criteria andPathidIn(List values) {
addCriterion("pathId in", values, "pathid");
return (Criteria) this;
}
public Criteria andPathidNotIn(List values) {
addCriterion("pathId not in", values, "pathid");
return (Criteria) this;
}
public Criteria andPathidBetween(Integer value1, Integer value2) {
addCriterion("pathId between", value1, value2, "pathid");
return (Criteria) this;
}
public Criteria andPathidNotBetween(Integer value1, Integer value2) {
addCriterion("pathId not between", value1, value2, "pathid");
return (Criteria) this;
}
public Criteria andGoodidIsNull() {
addCriterion("goodId is null");
return (Criteria) this;
}
public Criteria andGoodidIsNotNull() {
addCriterion("goodId is not null");
return (Criteria) this;
}
public Criteria andGoodidEqualTo(Integer value) {
addCriterion("goodId =", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidNotEqualTo(Integer value) {
addCriterion("goodId <>", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidGreaterThan(Integer value) {
addCriterion("goodId >", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidGreaterThanOrEqualTo(Integer value) {
addCriterion("goodId >=", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidLessThan(Integer value) {
addCriterion("goodId <", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidLessThanOrEqualTo(Integer value) {
addCriterion("goodId <=", value, "goodid");
return (Criteria) this;
}
public Criteria andGoodidIn(List values) {
addCriterion("goodId in", values, "goodid");
return (Criteria) this;
}
public Criteria andGoodidNotIn(List values) {
addCriterion("goodId not in", values, "goodid");
return (Criteria) this;
}
public Criteria andGoodidBetween(Integer value1, Integer value2) {
addCriterion("goodId between", value1, value2, "goodid");
return (Criteria) this;
}
public Criteria andGoodidNotBetween(Integer value1, Integer value2) {
addCriterion("goodId not between", value1, value2, "goodid");
return (Criteria) this;
}
public Criteria andPathIsNull() {
addCriterion("path is null");
return (Criteria) this;
}
public Criteria andPathIsNotNull() {
addCriterion("path is not null");
return (Criteria) this;
}
public Criteria andPathEqualTo(String value) {
addCriterion("path =", value, "path");
return (Criteria) this;
}
public Criteria andPathNotEqualTo(String value) {
addCriterion("path <>", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThan(String value) {
addCriterion("path >", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThanOrEqualTo(String value) {
addCriterion("path >=", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThan(String value) {
addCriterion("path <", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThanOrEqualTo(String value) {
addCriterion("path <=", value, "path");
return (Criteria) this;
}
public Criteria andPathLike(String value) {
addCriterion("path like", value, "path");
return (Criteria) this;
}
public Criteria andPathNotLike(String value) {
addCriterion("path not like", value, "path");
return (Criteria) this;
}
public Criteria andPathIn(List values) {
addCriterion("path in", values, "path");
return (Criteria) this;
}
public Criteria andPathNotIn(List values) {
addCriterion("path not in", values, "path");
return (Criteria) this;
}
public Criteria andPathBetween(String value1, String value2) {
addCriterion("path between", value1, value2, "path");
return (Criteria) this;
}
public Criteria andPathNotBetween(String value1, String value2) {
addCriterion("path not between", value1, value2, "path");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/Order.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.Date;
import java.util.List;
public class Order {
private Integer orderid;
private Integer userid;
private Date ordertime;
private Float oldprice;
private Float newprice;
private Boolean ispay;
private Boolean issend;
private Boolean isreceive;
private Boolean iscomplete;
private Integer addressid;
private List goodsInfo;
public Order() {
}
private Address address;
public Order(Integer orderid, Integer userid, Date ordertime, Float oldprice, Float newprice, Boolean ispay, Boolean issend, Boolean isreceive, Boolean iscomplete, Integer addressid, List goodsInfo, Address address) {
this.orderid = orderid;
this.userid = userid;
this.ordertime = ordertime;
this.oldprice = oldprice;
this.newprice = newprice;
this.ispay = ispay;
this.issend = issend;
this.isreceive = isreceive;
this.iscomplete = iscomplete;
this.addressid = addressid;
this.goodsInfo = goodsInfo;
this.address = address;
}
public Integer getOrderid() {
return orderid;
}
public void setOrderid(Integer orderid) {
this.orderid = orderid;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public Date getOrdertime() {
return ordertime;
}
public void setOrdertime(Date ordertime) {
this.ordertime = ordertime;
}
public Float getOldprice() {
return oldprice;
}
public void setOldprice(Float oldprice) {
this.oldprice = oldprice;
}
public Float getNewprice() {
return newprice;
}
public void setNewprice(Float newprice) {
this.newprice = newprice;
}
public Boolean getIspay() {
return ispay;
}
public void setIspay(Boolean ispay) {
this.ispay = ispay;
}
public Boolean getIssend() {
return issend;
}
public void setIssend(Boolean issend) {
this.issend = issend;
}
public Boolean getIsreceive() {
return isreceive;
}
public void setIsreceive(Boolean isreceive) {
this.isreceive = isreceive;
}
public Boolean getIscomplete() {
return iscomplete;
}
public void setIscomplete(Boolean iscomplete) {
this.iscomplete = iscomplete;
}
public Integer getAddressid() {
return addressid;
}
public void setAddressid(Integer addressid) {
this.addressid = addressid;
}
public List getGoodsInfo() {
return goodsInfo;
}
public void setGoodsInfo(List goodsInfo) {
this.goodsInfo = goodsInfo;
}
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
}
================================================
FILE: SpringbootSchoolShop/src/main/java/com/zhang/ssmschoolshop/entity/OrderExample.java
================================================
package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OrderExample {
protected String orderByClause;
protected boolean distinct;
protected List oredCriteria;
public OrderExample() {
oredCriteria = new ArrayList();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List getAllCriteria() {
return criteria;
}
public List getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andOrderidIsNull() {
addCriterion("orderId is null");
return (Criteria) this;
}
public Criteria andOrderidIsNotNull() {
addCriterion("orderId is not null");
return (Criteria) this;
}
public Criteria andOrderidEqualTo(Integer value) {
addCriterion("orderId =", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotEqualTo(Integer value) {
addCriterion("orderId <>", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidGreaterThan(Integer value) {
addCriterion("orderId >", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidGreaterThanOrEqualTo(Integer value) {
addCriterion("orderId >=", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidLessThan(Integer value) {
addCriterion("orderId <", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidLessThanOrEqualTo(Integer value) {
addCriterion("orderId <=", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidIn(List values) {
addCriterion("orderId in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotIn(List values) {
addCriterion("orderId not in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidBetween(Integer value1, Integer value2) {
addCriterion("orderId between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotBetween(Integer value1, Integer value2) {
addCriterion("orderId not between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andUseridIsNull() {
addCriterion("userId is null");
return (Criteria) this;
}
public Criteria andUseridIsNotNull() {
addCriterion("userId is not null");
return (Criteria) this;
}
public Criteria andUseridEqualTo(Integer value) {
addCriterion("userId =", value, "userid");
return (Criteria) this;
}
public Criteria andUseridNotEqualTo(Integer value) {
addCriterion("userId <>", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThan(Integer value) {
addCriterion("userId >", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
addCriterion("userId >=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThan(Integer value) {
addCriterion("userId <", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThanOrEqualTo(Integer value) {
addCriterion("userId <=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridIn(List values) {
addCriterion("userId in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridNotIn(List values) {
addCriterion("userId not in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridBetween(Integer value1, Integer value2) {
addCriterion("userId between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andUseridNotBetween(Integer value1, Integer value2) {
addCriterion("userId not between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andOrdertimeIsNull() {
addCriterion("orderTime is null");
return (Criteria) this;
}
public Criteria andOrdertimeIsNotNull() {
addCriterion("orderTime is not null");
return (Criteria) this;
}
public Criteria andOrdertimeEqualTo(Date value) {
addCriterion("orderTime =", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeNotEqualTo(Date value) {
addCriterion("orderTime <>", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeGreaterThan(Date value) {
addCriterion("orderTime >", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeGreaterThanOrEqualTo(Date value) {
addCriterion("orderTime >=", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeLessThan(Date value) {
addCriterion("orderTime <", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeLessThanOrEqualTo(Date value) {
addCriterion("orderTime <=", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeIn(List values) {
addCriterion("orderTime in", values, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeNotIn(List values) {
addCriterion("orderTime not in", values, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeBetween(Date value1, Date value2) {
addCriterion("orderTime between", value1, value2, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeNotBetween(Date value1, Date value2) {
addCriterion("orderTime not between", value1, value2, "ordertime");
return (Criteria) this;
}
public Criteria andOldpriceIsNull() {
addCriterion("oldPrice is null");
return (Criteria) this;
}
public Criteria andOldpriceIsNotNull() {
addCriterion("oldPrice is not null");
return (Criteria) this;
}
public Criteria andOldpriceEqualTo(Float value) {
addCriterion("oldPrice =", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceNotEqualTo(Float value) {
addCriterion("oldPrice <>", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceGreaterThan(Float value) {
addCriterion("oldPrice >", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceGreaterThanOrEqualTo(Float value) {
addCriterion("oldPrice >=", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceLessThan(Float value) {
addCriterion("oldPrice <", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceLessThanOrEqualTo(Float value) {
addCriterion("oldPrice <=", value, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceIn(List values) {
addCriterion("oldPrice in", values, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceNotIn(List values) {
addCriterion("oldPrice not in", values, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceBetween(Float value1, Float value2) {
addCriterion("oldPrice between", value1, value2, "oldprice");
return (Criteria) this;
}
public Criteria andOldpriceNotBetween(Float value1, Float value2) {
addCriterion("oldPrice not between", value1, value2, "oldprice");
return (Criteria) this;
}
public Criteria andNewpriceIsNull() {
addCriterion("newPrice is null");
return (Criteria) this;
}
public Criteria andNewpriceIsNotNull() {
addCriterion("newPrice is not null");
return (Criteria) this;
}
public Criteria andNewpriceEqualTo(Float value) {
addCriterion("newPrice =", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceNotEqualTo(Float value) {
addCriterion("newPrice <>", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceGreaterThan(Float value) {
addCriterion("newPrice >", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceGreaterThanOrEqualTo(Float value) {
addCriterion("newPrice >=", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceLessThan(Float value) {
addCriterion("newPrice <", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceLessThanOrEqualTo(Float value) {
addCriterion("newPrice <=", value, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceIn(List values) {
addCriterion("newPrice in", values, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceNotIn(List values) {
addCriterion("newPrice not in", values, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceBetween(Float value1, Float value2) {
addCriterion("newPrice between", value1, value2, "newprice");
return (Criteria) this;
}
public Criteria andNewpriceNotBetween(Float value1, Float value2) {
addCriterion("newPrice not between", value1, value2, "newprice");
return (Criteria) this;
}
public Criteria andIspayIsNull() {
addCriterion("isPay is null");
return (Criteria) this;
}
public Criteria andIspayIsNotNull() {
addCriterion("isPay is not null");
return (Criteria) this;
}
public Criteria andIspayEqualTo(Boolean value) {
addCriterion("isPay =", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayNotEqualTo(Boolean value) {
addCriterion("isPay <>", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayGreaterThan(Boolean value) {
addCriterion("isPay >", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayGreaterThanOrEqualTo(Boolean value) {
addCriterion("isPay >=", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayLessThan(Boolean value) {
addCriterion("isPay <", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayLessThanOrEqualTo(Boolean value) {
addCriterion("isPay <=", value, "ispay");
return (Criteria) this;
}
public Criteria andIspayIn(List values) {
addCriterion("isPay in", values, "ispay");
return (Criteria) this;
}
public Criteria andIspayNotIn(List values) {
addCriterion("isPay not in", values, "ispay");
return (Criteria) this;
}
public Criteria andIspayBetween(Boolean value1, Boolean value2) {
addCriterion("isPay between", value1, value2, "ispay");
return (Criteria) this;
}
public Criteria andIspayNotBetween(Boolean value1, Boolean value2) {
addCriterion("isPay not between", value1, value2, "ispay");
return (Criteria) this;
}
public Criteria andIssendIsNull() {
addCriterion("isSend is null");
return (Criteria) this;
}
public Criteria andIssendIsNotNull() {
addCriterion("isSend is not null");
return (Criteria) this;
}
public Criteria andIssendEqualTo(Boolean value) {
addCriterion("isSend =", value, "issend");
return (Criteria) this;
}
public Criteria andIssendNotEqualTo(Boolean value) {
addCriterion("isSend <>", value, "issend");
return (Criteria) this;
}
public Criteria andIssendGreaterThan(Boolean value) {
addCriterion("isSend >", value, "issend");
return (Criteria) this;
}
public Criteria andIssendGreaterThanOrEqualTo(Boolean value) {
addCriterion("isSend >=", value, "issend");
return (Criteria) this;
}
public Criteria andIssendLessThan(Boolean value) {
addCriterion("isSend <", value, "issend");
return (Criteria) this;
}
public Criteria andIssendLessThanOrEqualTo(Boolean value) {
addCriterion("isSend <=", value, "issend");
return (Criteria) this;
}
public Criteria andIssendIn(List values) {
addCriterion("isSend in", values, "issend");
return (Criteria) this;
}
public Criteria andIssendNotIn(List