├── image
├── 1.png
├── 10.png
├── 11.png
├── 12.png
├── 13.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
└── 9.png
├── limage
├── 1.png
├── 2.png
└── 3.png
├── .idea
├── encodings.xml
├── modules.xml
├── misc.xml
├── libraries
│ ├── Maven__dom4j_dom4j_1_6_1.xml
│ ├── Maven__log4j_log4j_1_2_17.xml
│ ├── Maven__org_apache_poi_poi_3_9.xml
│ ├── Maven__org_ow2_asm_asm_5_0_4.xml
│ ├── Maven__stax_stax_api_1_0_1.xml
│ ├── Maven__org_apache_ant_ant_1_8_2.xml
│ ├── Maven__org_json_json_20160810.xml
│ ├── Maven__org_yaml_snakeyaml_1_25.xml
│ ├── Maven__org_hamcrest_hamcrest_2_1.xml
│ ├── Maven__com_zaxxer_HikariCP_3_4_1.xml
│ ├── Maven__commons_io_commons_io_2_2.xml
│ ├── Maven__org_mybatis_mybatis_3_5_3.xml
│ ├── Maven__xml_apis_xml_apis_1_0_b2.xml
│ ├── Maven__com_alibaba_fastjson_1_2_8.xml
│ ├── Maven__net_minidev_json_smart_2_3.xml
│ ├── Maven__org_objenesis_objenesis_2_6.xml
│ ├── Maven__org_slf4j_slf4j_api_1_7_29.xml
│ ├── Maven__com_baidu_aip_java_sdk_4_4_1.xml
│ ├── Maven__org_apache_poi_poi_ooxml_3_9.xml
│ ├── Maven__cn_hutool_hutool_all_4_0_12.xml
│ ├── Maven__com_baomidou_mybatis_plus_2_3.xml
│ ├── Maven__com_fasterxml_classmate_1_5_1.xml
│ ├── Maven__org_apache_poi_poi_examples_3_9.xml
│ ├── Maven__org_apache_poi_poi_excelant_3_9.xml
│ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml
│ ├── Maven__org_slf4j_jul_to_slf4j_1_7_29.xml
│ ├── Maven__net_bytebuddy_byte_buddy_1_10_4.xml
│ ├── Maven__org_apache_shiro_shiro_web_1_3_2.xml
│ ├── Maven__org_mockito_mockito_core_3_1_0.xml
│ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml
│ ├── Maven__org_xmlunit_xmlunit_core_2_6_3.xml
│ ├── Maven__net_minidev_accessors_smart_1_2.xml
│ ├── Maven__org_apache_shiro_shiro_core_1_3_2.xml
│ ├── Maven__org_apache_xmlbeans_xmlbeans_2_3_0.xml
│ ├── Maven__org_assertj_assertj_core_3_13_2.xml
│ ├── Maven__commons_codec_commons_codec_1_13.xml
│ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml
│ ├── Maven__com_github_jsqlparser_jsqlparser_1_1.xml
│ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml
│ ├── Maven__org_apache_ant_ant_launcher_1_8_2.xml
│ ├── Maven__org_apache_poi_poi_scratchpad_3_9.xml
│ ├── Maven__org_mybatis_mybatis_spring_2_0_3.xml
│ ├── Maven__com_baomidou_mybatis_plus_core_2_3.xml
│ ├── Maven__org_apache_commons_commons_lang3_3_0.xml
│ ├── Maven__org_apache_shiro_shiro_spring_1_3_2.xml
│ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml
│ ├── Maven__org_apache_poi_poi_ooxml_schemas_3_9.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml
│ ├── Maven__mysql_mysql_connector_java_8_0_18.xml
│ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml
│ ├── Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml
│ ├── Maven__com_baomidou_mybatis_plus_support_2_3.xml
│ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_4.xml
│ ├── Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml
│ ├── Maven__com_google_protobuf_protobuf_java_3_10_0.xml
│ ├── Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml
│ ├── Maven__com_baomidou_mybatis_plus_generate_2_3.xml
│ ├── Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml
│ ├── Maven__commons_beanutils_commons_beanutils_1_8_3.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml
│ ├── Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_10_1.xml
│ ├── Maven__org_springframework_spring_tx_5_2_2_RELEASE.xml
│ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
│ ├── Maven__javax_validation_validation_api_2_0_1_Final.xml
│ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml
│ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml
│ ├── Maven__org_springframework_spring_aop_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_jcl_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_web_5_2_2_RELEASE.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_29.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml
│ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml
│ ├── Maven__org_springframework_spring_core_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_jdbc_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_test_5_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_beans_5_2_2_RELEASE.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_29.xml
│ ├── Maven__org_junit_platform_junit_platform_engine_1_5_2.xml
│ ├── Maven__org_springframework_spring_webmvc_5_2_2_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_10_1.xml
│ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
│ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml
│ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml
│ ├── Maven__org_junit_platform_junit_platform_commons_1_5_2.xml
│ ├── Maven__org_springframework_boot_spring_boot_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_spring_context_5_2_2_RELEASE.xml
│ ├── Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_1.xml
│ ├── Maven__org_springframework_spring_expression_5_2_2_RELEASE.xml
│ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_29.xml
│ ├── Maven__com_baomidou_mybatisplus_spring_boot_starter_1_0_5.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_2_2_2_RELEASE.xml
│ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_1.xml
│ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_1_1.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_2_2_2_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_1.xml
│ ├── Maven__org_springframework_boot_spring_boot_devtools_2_2_2_RELEASE.xml
│ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_2_2_RELEASE.xml
│ ├── Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml
│ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_1_1.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_2_RELEASE.xml
│ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_1.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_2_2_RELEASE.xml
│ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_2_RELEASE.xml
│ └── Maven__org_springframework_boot_spring_boot_configuration_processor_2_2_2_RELEASE.xml
└── compiler.xml
├── src
└── main
│ ├── java
│ └── com
│ │ ├── dao
│ │ ├── ConfigDao.java
│ │ ├── CartDao.java
│ │ ├── TushuDao.java
│ │ ├── YonghuDao.java
│ │ ├── AddressDao.java
│ │ ├── DictionaryDao.java
│ │ ├── TushuOrderDao.java
│ │ ├── UsersDao.java
│ │ ├── TokenDao.java
│ │ ├── TushuCollectionDao.java
│ │ ├── TushuCommentbackDao.java
│ │ └── CommonDao.java
│ │ ├── annotation
│ │ ├── IgnoreAuth.java
│ │ ├── LoginUser.java
│ │ └── APPLoginUser.java
│ │ ├── utils
│ │ ├── StringUtil.java
│ │ ├── CommonUtil.java
│ │ ├── FileUtil.java
│ │ ├── JQPageInfo.java
│ │ ├── R.java
│ │ ├── SQLFilter.java
│ │ ├── HttpClientUtils.java
│ │ ├── ValidatorUtils.java
│ │ ├── SpringContextUtils.java
│ │ ├── PageUtils.java
│ │ ├── Query.java
│ │ ├── BaiduUtil.java
│ │ └── PoiUtil.java
│ │ ├── service
│ │ ├── ConfigService.java
│ │ ├── CartService.java
│ │ ├── TushuService.java
│ │ ├── YonghuService.java
│ │ ├── AddressService.java
│ │ ├── TushuOrderService.java
│ │ ├── TushuCollectionService.java
│ │ ├── TushuCommentbackService.java
│ │ ├── DictionaryService.java
│ │ ├── UsersService.java
│ │ ├── TokenService.java
│ │ ├── impl
│ │ │ ├── ConfigServiceImpl.java
│ │ │ ├── CartServiceImpl.java
│ │ │ ├── TushuServiceImpl.java
│ │ │ ├── YonghuServiceImpl.java
│ │ │ ├── AddressServiceImpl.java
│ │ │ ├── TushuOrderServiceImpl.java
│ │ │ ├── TushuCollectionServiceImpl.java
│ │ │ ├── TushuCommentbackServiceImpl.java
│ │ │ ├── UsersServiceImpl.java
│ │ │ └── TokenServiceImpl.java
│ │ └── CommonService.java
│ │ ├── config
│ │ ├── MybatisPlusConfig.java
│ │ ├── MyMetaObjectHandler.java
│ │ └── InterceptorConfig.java
│ │ ├── thread
│ │ └── MyThreadMethod.java
│ │ ├── model
│ │ └── enums
│ │ │ └── TypeEnum.java
│ │ ├── tushushangchengApplication.java
│ │ ├── entity
│ │ ├── EIException.java
│ │ ├── ConfigEntity.java
│ │ ├── view
│ │ │ ├── DictionaryView.java
│ │ │ ├── TushuView.java
│ │ │ └── YonghuView.java
│ │ ├── UsersEntity.java
│ │ ├── TokenEntity.java
│ │ ├── model
│ │ │ ├── TushuCollectionModel.java
│ │ │ ├── CartModel.java
│ │ │ ├── DictionaryModel.java
│ │ │ ├── TushuCommentbackModel.java
│ │ │ └── AddressModel.java
│ │ └── vo
│ │ │ ├── TushuCollectionVO.java
│ │ │ ├── CartVO.java
│ │ │ └── DictionaryVO.java
│ │ ├── ServletContextListener
│ │ └── DictionaryServletContextListener.java
│ │ ├── controller
│ │ ├── ConfigController.java
│ │ └── FileController.java
│ │ └── interceptor
│ │ └── AuthorizationInterceptor.java
│ └── resources
│ └── application.yml
└── README.md
/image/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/1.png
--------------------------------------------------------------------------------
/image/10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/10.png
--------------------------------------------------------------------------------
/image/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/11.png
--------------------------------------------------------------------------------
/image/12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/12.png
--------------------------------------------------------------------------------
/image/13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/13.png
--------------------------------------------------------------------------------
/image/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/2.png
--------------------------------------------------------------------------------
/image/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/3.png
--------------------------------------------------------------------------------
/image/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/4.png
--------------------------------------------------------------------------------
/image/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/5.png
--------------------------------------------------------------------------------
/image/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/6.png
--------------------------------------------------------------------------------
/image/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/7.png
--------------------------------------------------------------------------------
/image/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/8.png
--------------------------------------------------------------------------------
/image/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/image/9.png
--------------------------------------------------------------------------------
/limage/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/limage/1.png
--------------------------------------------------------------------------------
/limage/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/limage/2.png
--------------------------------------------------------------------------------
/limage/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nature924/No60Book-Mall-Management-System/HEAD/limage/3.png
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/ConfigDao.java:
--------------------------------------------------------------------------------
1 |
2 | package com.dao;
3 |
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import com.entity.ConfigEntity;
6 |
7 | /**
8 | * 配置
9 | */
10 | public interface ConfigDao extends BaseMapper {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/com/annotation/IgnoreAuth.java:
--------------------------------------------------------------------------------
1 | package com.annotation;
2 |
3 | import java.lang.annotation.*;
4 |
5 | /**
6 | * 忽略Token验证
7 | */
8 | @Target(ElementType.METHOD)
9 | @Retention(RetentionPolicy.RUNTIME)
10 | @Documented
11 | public @interface IgnoreAuth {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/main/java/com/annotation/LoginUser.java:
--------------------------------------------------------------------------------
1 | package com.annotation;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * 登录用户信息
10 | */
11 | @Target(ElementType.PARAMETER)
12 | @Retention(RetentionPolicy.RUNTIME)
13 | public @interface LoginUser {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/StringUtil.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | public class StringUtil {
4 |
5 | public static boolean isEmpty(String s){
6 | if(s==null || s.equals("") || s.equals("null")){
7 | return true;
8 | }
9 | return false;
10 | }
11 |
12 | public static boolean isNotEmpty(String s){
13 | return !StringUtil.isEmpty(s);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/com/annotation/APPLoginUser.java:
--------------------------------------------------------------------------------
1 | package com.annotation;
2 |
3 | import java.lang.annotation.ElementType;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 | import java.lang.annotation.Target;
7 |
8 | /**
9 | * 登录用户信息
10 | */
11 | @Target(ElementType.PARAMETER)
12 | @Retention(RetentionPolicy.RUNTIME)
13 | public @interface APPLoginUser {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/main/java/com/service/ConfigService.java:
--------------------------------------------------------------------------------
1 |
2 | package com.service;
3 |
4 | import java.util.Map;
5 |
6 | import com.baomidou.mybatisplus.service.IService;
7 | import com.entity.ConfigEntity;
8 | import com.utils.PageUtils;
9 |
10 |
11 | /**
12 | * 系统用户
13 | * @author yangliyuan
14 | * @date 2019年10月10日 上午9:18:20
15 | */
16 | public interface ConfigService extends IService {
17 | PageUtils queryPage(Map params);
18 | }
19 |
--------------------------------------------------------------------------------
/src/main/java/com/service/CartService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.CartEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 购物车 服务类
11 | */
12 | public interface CartService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/src/main/java/com/service/TushuService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.TushuEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 图书 服务类
11 | */
12 | public interface TushuService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/src/main/java/com/service/YonghuService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.YonghuEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 用户 服务类
11 | */
12 | public interface YonghuService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/src/main/java/com/service/AddressService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.AddressEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 收货地址 服务类
11 | */
12 | public interface AddressService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/service/TushuOrderService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.TushuOrderEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 图书订单 服务类
11 | */
12 | public interface TushuOrderService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/.idea/libraries/Maven__log4j_log4j_1_2_17.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__stax_stax_api_1_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/service/TushuCollectionService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.TushuCollectionEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 图书收藏 服务类
11 | */
12 | public interface TushuCollectionService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/src/main/java/com/service/TushuCommentbackService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.TushuCommentbackEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 图书评价 服务类
11 | */
12 | public interface TushuCommentbackService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | }
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_ant_ant_1_8_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_json_json_20160810.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_io_commons_io_2_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_mybatis_3_5_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_alibaba_fastjson_1_2_8.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/CartDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.CartEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.CartView;
11 |
12 | /**
13 | * 购物车 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface CartDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baidu_aip_java_sdk_4_4_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_ooxml_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/TushuDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.TushuEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.TushuView;
11 |
12 | /**
13 | * 图书 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface TushuDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__cn_hutool_hutool_all_4_0_12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baomidou_mybatis_plus_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/YonghuDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.YonghuEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.YonghuView;
11 |
12 | /**
13 | * 用户 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface YonghuDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/AddressDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.AddressEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.AddressView;
11 |
12 | /**
13 | * 收货地址 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface AddressDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_examples_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_excelant_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_web_1_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_6_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_core_1_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_2_3_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_assertj_assertj_core_3_13_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/DictionaryDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.DictionaryEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.DictionaryView;
11 |
12 | /**
13 | * 字典 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface DictionaryDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_codec_commons_codec_1_13.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/config/MybatisPlusConfig.java:
--------------------------------------------------------------------------------
1 |
2 | package com.config;
3 |
4 | import org.springframework.context.annotation.Bean;
5 | import org.springframework.context.annotation.Configuration;
6 |
7 | import com.baomidou.mybatisplus.mapper.MetaObjectHandler;
8 | import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
9 |
10 | /**
11 | * mybatis-plus配置
12 | */
13 | @Configuration
14 | public class MybatisPlusConfig {
15 |
16 | /**
17 | * 分页插件
18 | */
19 | @Bean
20 | public PaginationInterceptor paginationInterceptor() {
21 | return new PaginationInterceptor();
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/TushuOrderDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.TushuOrderEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.TushuOrderView;
11 |
12 | /**
13 | * 图书订单 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface TushuOrderDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_1_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_ant_ant_launcher_1_8_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_scratchpad_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_shiro_shiro_spring_1_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_3_9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/UsersDao.java:
--------------------------------------------------------------------------------
1 |
2 | package com.dao;
3 |
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | import com.baomidou.mybatisplus.mapper.BaseMapper;
9 | import com.baomidou.mybatisplus.mapper.Wrapper;
10 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
11 | import com.entity.UsersEntity;
12 |
13 | /**
14 | * 用户
15 | */
16 | public interface UsersDao extends BaseMapper {
17 |
18 | List selectListView(@Param("ew") Wrapper wrapper);
19 |
20 | List selectListView(Pagination page, @Param("ew") Wrapper wrapper);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/com/thread/MyThreadMethod.java:
--------------------------------------------------------------------------------
1 | package com.thread;
2 |
3 | /**
4 | * 线程执行方法(做一些项目启动后 一直要执行的操作,比如根据时间自动更改订单状态,比如订单签收30天自动收货功能,比如根据时间来更改状态)
5 | */
6 | public class MyThreadMethod extends Thread {
7 | public void run() {
8 | while (!this.isInterrupted()) {// 线程未中断执行循环
9 | try {
10 | Thread.sleep(5000); //每隔2000ms执行一次
11 | } catch (InterruptedException e) {
12 | e.printStackTrace();
13 | }
14 |
15 | // ------------------ 开始执行 ---------------------------
16 | // System.out.println("线程执行中:" + System.currentTimeMillis());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_18.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/TokenDao.java:
--------------------------------------------------------------------------------
1 |
2 | package com.dao;
3 |
4 | import java.util.List;
5 |
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | import com.baomidou.mybatisplus.mapper.BaseMapper;
9 | import com.baomidou.mybatisplus.mapper.Wrapper;
10 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
11 | import com.entity.TokenEntity;
12 |
13 | /**
14 | * token
15 | */
16 | public interface TokenDao extends BaseMapper {
17 |
18 | List selectListView(@Param("ew") Wrapper wrapper);
19 |
20 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/TushuCollectionDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.TushuCollectionEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.TushuCollectionView;
11 |
12 | /**
13 | * 图书收藏 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface TushuCollectionDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/CommonUtil.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | import java.util.Random;
4 |
5 | public class CommonUtil {
6 | /**
7 | * 获取随机字符串
8 | *
9 | * @param num
10 | * @return
11 | */
12 | public static String getRandomString(Integer num) {
13 | String base = "abcdefghijklmnopqrstuvwxyz0123456789";
14 | Random random = new Random();
15 | StringBuffer sb = new StringBuffer();
16 | for (int i = 0; i < num; i++) {
17 | int number = random.nextInt(base.length());
18 | sb.append(base.charAt(number));
19 | }
20 | return sb.toString();
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/dao/TushuCommentbackDao.java:
--------------------------------------------------------------------------------
1 | package com.dao;
2 |
3 | import com.entity.TushuCommentbackEntity;
4 | import com.baomidou.mybatisplus.mapper.BaseMapper;
5 | import java.util.List;
6 | import java.util.Map;
7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination;
8 |
9 | import org.apache.ibatis.annotations.Param;
10 | import com.entity.view.TushuCommentbackView;
11 |
12 | /**
13 | * 图书评价 Dao 接口
14 | *
15 | * @author
16 | */
17 | public interface TushuCommentbackDao extends BaseMapper {
18 |
19 | List selectListView(Pagination page,@Param("params")Map params);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baomidou_mybatis_plus_support_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_10_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/service/DictionaryService.java:
--------------------------------------------------------------------------------
1 | package com.service;
2 |
3 | import com.baomidou.mybatisplus.service.IService;
4 | import com.utils.PageUtils;
5 | import com.entity.DictionaryEntity;
6 | import java.util.Map;
7 | import javax.servlet.http.HttpServletRequest;
8 |
9 | /**
10 | * 字典 服务类
11 | */
12 | public interface DictionaryService extends IService {
13 |
14 | /**
15 | * @param params 查询参数
16 | * @return 带分页的查询出来的数据
17 | */
18 | PageUtils queryPage(Map params);
19 | /**
20 | * 字典表转换
21 | * @param obj
22 | */
23 | void dictionaryConvert(Object obj, HttpServletRequest request);
24 | }
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baomidou_mybatis_plus_generate_2_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_8_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_tx_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_aop_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_jcl_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_web_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_core_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_test_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/config/MyMetaObjectHandler.java:
--------------------------------------------------------------------------------
1 | package com.config;
2 |
3 | import java.util.Date;
4 |
5 | import org.apache.ibatis.reflection.MetaObject;
6 |
7 | import com.baomidou.mybatisplus.mapper.MetaObjectHandler;
8 |
9 | /**
10 | * 自定义填充处理器
11 | */
12 | public class MyMetaObjectHandler extends MetaObjectHandler {
13 |
14 | @Override
15 | public void insertFill(MetaObject metaObject) {
16 | this.setFieldValByName("ctime", new Date(), metaObject);
17 | }
18 |
19 | @Override
20 | public boolean openUpdateFill() {
21 | return false;
22 | }
23 |
24 | @Override
25 | public void updateFill(MetaObject metaObject) {
26 | // 关闭更新填充、这里不执行
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_beans_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/service/UsersService.java:
--------------------------------------------------------------------------------
1 |
2 | package com.service;
3 |
4 | import java.util.List;
5 | import java.util.Map;
6 |
7 | import com.baomidou.mybatisplus.mapper.Wrapper;
8 | import com.baomidou.mybatisplus.service.IService;
9 | import com.entity.UsersEntity;
10 | import com.utils.PageUtils;
11 |
12 |
13 | /**
14 | * 系统用户
15 | * @author yangliyuan
16 | * @date 2019年10月10日 上午9:18:20
17 | */
18 | public interface UsersService extends IService {
19 | PageUtils queryPage(Map params);
20 |
21 | List selectListView(Wrapper wrapper);
22 |
23 | PageUtils queryPage(Map params, Wrapper wrapper);
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_5_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_context_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_spring_expression_5_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_29.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_baomidou_mybatisplus_spring_boot_starter_1_0_5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_1_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/model/enums/TypeEnum.java:
--------------------------------------------------------------------------------
1 | package com.model.enums;
2 |
3 | import java.io.Serializable;
4 |
5 | import com.baomidou.mybatisplus.enums.IEnum;
6 |
7 | /**
8 | * 必须现在 IEnum 配置 该包扫描自动注入,查看文件 spring-mybatis.xml 参数 typeEnumsPackage
9 | */
10 | public enum TypeEnum implements IEnum {
11 | DISABLED(0, "禁用"),
12 | NORMAL(1, "正常");
13 |
14 | private final int value;
15 | private final String desc;
16 |
17 | TypeEnum(final int value, final String desc) {
18 | this.value = value;
19 | this.desc = desc;
20 | }
21 |
22 | @Override
23 | public Serializable getValue() {
24 | return this.value;
25 | }
26 |
27 | // Jackson 注解为 JsonValue 返回中文 json 描述
28 | public String getDesc() {
29 | return this.desc;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/FileUtil.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | import java.io.ByteArrayOutputStream;
4 | import java.io.File;
5 | import java.io.FileInputStream;
6 | import java.io.IOException;
7 | import java.io.InputStream;
8 |
9 | /**
10 | * @author yangliyuan
11 | * @version 创建时间:2020年2月7日 下午8:01:14
12 | * 类说明 :
13 | */
14 |
15 | public class FileUtil {
16 | public static byte[] FileToByte(File file) throws IOException {
17 | // 将数据转为流
18 | @SuppressWarnings("resource")
19 | InputStream content = new FileInputStream(file);
20 | ByteArrayOutputStream swapStream = new ByteArrayOutputStream();
21 | byte[] buff = new byte[100];
22 | int rc = 0;
23 | while ((rc = content.read(buff, 0, 100)) > 0) {
24 | swapStream.write(buff, 0, rc);
25 | }
26 | // 获得二进制数组
27 | return swapStream.toByteArray();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_1_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/service/TokenService.java:
--------------------------------------------------------------------------------
1 |
2 | package com.service;
3 |
4 | import java.util.List;
5 | import java.util.Map;
6 |
7 | import com.baomidou.mybatisplus.mapper.Wrapper;
8 | import com.baomidou.mybatisplus.service.IService;
9 | import com.entity.TokenEntity;
10 | import com.utils.PageUtils;
11 |
12 |
13 | /**
14 | * token
15 | * @author yangliyuan
16 | * @date 2019年10月10日 上午9:18:20
17 | */
18 | public interface TokenService extends IService {
19 | PageUtils queryPage(Map params);
20 |
21 | List selectListView(Wrapper wrapper);
22 |
23 | PageUtils queryPage(Map params,Wrapper wrapper);
24 |
25 | String generateToken(Integer userid,String username,String tableName, String role);
26 |
27 | TokenEntity getTokenEntity(String token);
28 | }
29 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/.idea/libraries/Maven__org_springframework_boot_spring_boot_configuration_processor_2_2_2_RELEASE.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/JQPageInfo.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | public class JQPageInfo{
4 | private Integer page;
5 |
6 | private Integer limit;
7 |
8 | private String sidx;
9 |
10 | private String order;
11 |
12 | private Integer offset;
13 |
14 | public Integer getPage() {
15 | return page;
16 | }
17 |
18 | public void setPage(Integer page) {
19 | this.page = page;
20 | }
21 |
22 | public Integer getLimit() {
23 | return limit;
24 | }
25 |
26 | public void setLimit(Integer limit) {
27 | this.limit = limit;
28 | }
29 |
30 | public String getSidx() {
31 | return sidx;
32 | }
33 |
34 | public void setSidx(String sidx) {
35 | this.sidx = sidx;
36 | }
37 |
38 | public String getOrder() {
39 | return order;
40 | }
41 |
42 | public void setOrder(String order) {
43 | this.order = order;
44 | }
45 |
46 | public Integer getOffset() {
47 | return offset;
48 | }
49 |
50 | public void setOffset(Integer offset) {
51 | this.offset = offset;
52 | }
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/src/main/java/com/tushushangchengApplication.java:
--------------------------------------------------------------------------------
1 | package com;
2 |
3 | import org.mybatis.spring.annotation.MapperScan;
4 | import org.springframework.boot.SpringApplication;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 | import org.springframework.boot.builder.SpringApplicationBuilder;
7 | import org.springframework.boot.web.servlet.ServletComponentScan;
8 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
9 |
10 | @SpringBootApplication
11 | @ServletComponentScan(value = "com.ServletContextListener")
12 | @MapperScan(basePackages = {"com.dao"})
13 | public class tushushangchengApplication extends SpringBootServletInitializer{
14 |
15 | public static void main(String[] args) {
16 | SpringApplication.run(tushushangchengApplication.class, args);
17 | }
18 |
19 | @Override
20 | protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
21 | return applicationBuilder.sources(tushushangchengApplication.class);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/entity/EIException.java:
--------------------------------------------------------------------------------
1 |
2 | package com.entity;
3 |
4 | /**
5 | * 自定义异常
6 | */
7 | public class EIException extends RuntimeException {
8 | private static final long serialVersionUID = 1L;
9 |
10 | private String msg;
11 | private int code = 500;
12 |
13 | public EIException(String msg) {
14 | super(msg);
15 | this.msg = msg;
16 | }
17 |
18 | public EIException(String msg, Throwable e) {
19 | super(msg, e);
20 | this.msg = msg;
21 | }
22 |
23 | public EIException(String msg, int code) {
24 | super(msg);
25 | this.msg = msg;
26 | this.code = code;
27 | }
28 |
29 | public EIException(String msg, int code, Throwable e) {
30 | super(msg, e);
31 | this.msg = msg;
32 | this.code = code;
33 | }
34 |
35 | public String getMsg() {
36 | return msg;
37 | }
38 |
39 | public void setMsg(String msg) {
40 | this.msg = msg;
41 | }
42 |
43 | public int getCode() {
44 | return code;
45 | }
46 |
47 | public void setCode(int code) {
48 | this.code = code;
49 | }
50 |
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/R.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | /**
7 | * 返回数据
8 | */
9 | public class R extends HashMap {
10 | private static final long serialVersionUID = 1L;
11 |
12 | public R() {
13 | put("code", 0);
14 | }
15 |
16 | public static R error() {
17 | return error(500, "未知异常,请联系管理员");
18 | }
19 |
20 | public static R error(String msg) {
21 | return error(500, msg);
22 | }
23 |
24 | public static R error(int code, String msg) {
25 | R r = new R();
26 | r.put("code", code);
27 | r.put("msg", msg);
28 | return r;
29 | }
30 |
31 | public static R ok(String msg) {
32 | R r = new R();
33 | r.put("msg", msg);
34 | return r;
35 | }
36 |
37 | public static R ok(Map map) {
38 | R r = new R();
39 | r.putAll(map);
40 | return r;
41 | }
42 |
43 | public static R ok() {
44 | return new R();
45 | }
46 |
47 | public R put(String key, Object value) {
48 | super.put(key, value);
49 | return this;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/main/java/com/service/impl/ConfigServiceImpl.java:
--------------------------------------------------------------------------------
1 |
2 | package com.service.impl;
3 |
4 |
5 | import java.util.Map;
6 |
7 | import org.springframework.stereotype.Service;
8 |
9 | import com.baomidou.mybatisplus.mapper.EntityWrapper;
10 | import com.baomidou.mybatisplus.plugins.Page;
11 | import com.baomidou.mybatisplus.service.impl.ServiceImpl;
12 | import com.dao.ConfigDao;
13 | import com.entity.ConfigEntity;
14 | import com.service.ConfigService;
15 | import com.utils.PageUtils;
16 | import com.utils.Query;
17 |
18 |
19 | /**
20 | * 系统用户
21 | * @author yangliyuan
22 | * @date 2019年10月10日 上午9:17:59
23 | */
24 | @Service("configService")
25 | public class ConfigServiceImpl extends ServiceImpl implements ConfigService {
26 | @Override
27 | public PageUtils queryPage(Map params) {
28 | Page page = this.selectPage(
29 | new Query(params).getPage(),
30 | new EntityWrapper()
31 | );
32 | return new PageUtils(page);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/entity/ConfigEntity.java:
--------------------------------------------------------------------------------
1 | package com.entity;
2 |
3 | import java.io.Serializable;
4 |
5 | import com.baomidou.mybatisplus.annotations.TableId;
6 | import com.baomidou.mybatisplus.annotations.TableName;
7 | import com.baomidou.mybatisplus.enums.IdType;
8 |
9 | /**
10 | * @author yangliyuan
11 | * @version 创建时间:2020年2月7日 下午8:36:05
12 | * 类说明 :
13 | */
14 | @TableName("config")
15 | public class ConfigEntity implements Serializable{
16 | private static final long serialVersionUID = 1L;
17 |
18 | @TableId(type = IdType.AUTO)
19 | private Long id;
20 |
21 | /**
22 | * key
23 | */
24 | private String name;
25 |
26 | /**
27 | * value
28 | */
29 | private String value;
30 |
31 | public Long getId() {
32 | return id;
33 | }
34 |
35 | public void setId(Long id) {
36 | this.id = id;
37 | }
38 |
39 | public String getName() {
40 | return name;
41 | }
42 |
43 | public void setName(String name) {
44 | this.name = name;
45 | }
46 |
47 | public String getValue() {
48 | return value;
49 | }
50 |
51 | public void setValue(String value) {
52 | this.value = value;
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/SQLFilter.java:
--------------------------------------------------------------------------------
1 |
2 | package com.utils;
3 |
4 | import org.apache.commons.lang3.StringUtils;
5 |
6 | import com.entity.EIException;
7 |
8 | /**
9 | * SQL过滤
10 | */
11 | public class SQLFilter {
12 |
13 | /**
14 | * SQL注入过滤
15 | * @param str 待验证的字符串
16 | */
17 | public static String sqlInject(String str){
18 | if(StringUtils.isBlank(str)){
19 | return null;
20 | }
21 | //去掉'|"|;|\字符
22 | str = StringUtils.replace(str, "'", "");
23 | str = StringUtils.replace(str, "\"", "");
24 | str = StringUtils.replace(str, ";", "");
25 | str = StringUtils.replace(str, "\\", "");
26 |
27 | //转换成小写
28 | str = str.toLowerCase();
29 |
30 | //非法字符
31 | String[] keywords = {"master", "truncate", "insert", "select", "delete", "update", "declare", "alter", "drop"};
32 |
33 | //判断是否包含非法字符
34 | for(String keyword : keywords){
35 | if(str.indexOf(keyword) != -1){
36 | throw new EIException("包含非法字符");
37 | }
38 | }
39 |
40 | return str;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/HttpClientUtils.java:
--------------------------------------------------------------------------------
1 | package com.utils;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.InputStreamReader;
5 | import java.net.HttpURLConnection;
6 | import java.net.URL;
7 |
8 |
9 | /**
10 | * HttpClient工具类
11 | */
12 | public class HttpClientUtils {
13 |
14 | /**
15 | * @param uri
16 | * @return String
17 | * @description get请求方式
18 | * @author: long.he01
19 | */
20 | public static String doGet(String uri) {
21 |
22 | StringBuilder result = new StringBuilder();
23 | try {
24 | String res = "";
25 | URL url = new URL(uri);
26 | HttpURLConnection conn = (HttpURLConnection) url.openConnection();
27 | BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));
28 | String line;
29 | while ((line = in.readLine()) != null) {
30 | res += line+"\n";
31 | }
32 | in.close();
33 | return res;
34 | }catch (Exception e) {
35 | e.printStackTrace();
36 | return null;
37 | }
38 |
39 | }
40 |
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/main/java/com/utils/ValidatorUtils.java:
--------------------------------------------------------------------------------
1 |
2 | package com.utils;
3 |
4 |
5 | import java.util.Set;
6 |
7 | import javax.validation.ConstraintViolation;
8 | import javax.validation.Validation;
9 | import javax.validation.Validator;
10 |
11 | import com.entity.EIException;
12 |
13 | /**
14 | * hibernate-validator校验工具类
15 | */
16 | public class ValidatorUtils {
17 | private static Validator validator;
18 |
19 | static {
20 | validator = Validation.buildDefaultValidatorFactory().getValidator();
21 | }
22 |
23 | /**
24 | * 校验对象
25 | * @param object 待校验对象
26 | * @param groups 待校验的组
27 | * @throws EIException 校验不通过,则报EIException异常
28 | */
29 | public static void validateEntity(Object object, Class>... groups)
30 | throws EIException {
31 | Set> constraintViolations = validator.validate(object, groups);
32 | if (!constraintViolations.isEmpty()) {
33 | ConstraintViolation