Forráskód Böngészése

update:修改包名路径

miloma93@163.com 5 hónapja
szülő
commit
891dbc267b
23 módosított fájl, 64 hozzáadás és 68 törlés
  1. BIN
      db/标记软件数据库.xlsx
  2. 3 3
      pom.xml
  3. 4 4
      src/main/java/com/sw/patroleditor/PatrolEditorApplication.java
  4. 2 2
      src/main/java/com/sw/patroleditor/common/ResultData.java
  5. 1 1
      src/main/java/com/sw/patroleditor/config/ACAFilter.java
  6. 1 1
      src/main/java/com/sw/patroleditor/config/DruidConfig.java
  7. 1 1
      src/main/java/com/sw/patroleditor/config/MybatisPlusConfig.java
  8. 1 1
      src/main/java/com/sw/patroleditor/config/Swagger2.java
  9. 6 6
      src/main/java/com/sw/patroleditor/controller/SystemController.java
  10. 2 2
      src/main/java/com/sw/patroleditor/controller/api/SystemApi.java
  11. 1 1
      src/main/java/com/sw/patroleditor/domain/dto/SystemDictDTO.java
  12. 1 1
      src/main/java/com/sw/patroleditor/domain/dto/UserDTO.java
  13. 1 1
      src/main/java/com/sw/patroleditor/exception/BusinessException.java
  14. 2 2
      src/main/java/com/sw/patroleditor/exception/ControllerAdviceHandle.java
  15. 1 1
      src/main/java/com/sw/patroleditor/exception/ErrorCode.java
  16. 2 2
      src/main/java/com/sw/patroleditor/mapper/SystemDictMapper.java
  17. 2 5
      src/main/java/com/sw/patroleditor/mapper/UserMapper.java
  18. 1 1
      src/main/java/com/sw/patroleditor/service/SystemService.java
  19. 11 12
      src/main/java/com/sw/patroleditor/service/impl/SystemServiceImpl.java
  20. 2 2
      src/main/java/com/sw/patroleditor/util/DateUtil.java
  21. 1 1
      src/main/java/com/sw/patroleditor/util/MD5Util.java
  22. 16 16
      src/main/resources/application.properties
  23. 2 2
      src/main/resources/mapper/SysDictMapper.xml

BIN
db/标记软件数据库.xlsx


+ 3 - 3
pom.xml

@@ -9,10 +9,10 @@
         <relativePath/> <!-- lookup parent from repository -->
     </parent>
     <groupId>com.sw</groupId>
-    <artifactId>bird</artifactId>
+    <artifactId>PatrolEditor</artifactId>
     <version>0.0.1</version>
-    <name>bird</name>
-    <description>bird_sys</description>
+    <name>PatrolEditor</name>
+    <description>patrol_editor_sys</description>
     <properties>
         <java.version>1.8</java.version>
         <tomcat.version>9.0.64</tomcat.version>

+ 4 - 4
src/main/java/com/sw/bird/BirdApplication.java → src/main/java/com/sw/patroleditor/PatrolEditorApplication.java

@@ -1,15 +1,15 @@
-package com.sw.bird;
+package com.sw.patroleditor;
 
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 
-@MapperScan(value = {"com.sw.bird.mapper"}) // 扫描mapper
+@MapperScan(value = {"com.sw.patroleditor.mapper"}) // 扫描mapper
 @SpringBootApplication
-public class BirdApplication {
+public class PatrolEditorApplication {
 
     public static void main(String[] args) {
-        SpringApplication.run(BirdApplication.class, args);
+        SpringApplication.run(PatrolEditorApplication.class, args);
     }
 
 }

+ 2 - 2
src/main/java/com/sw/bird/common/ResultData.java → src/main/java/com/sw/patroleditor/common/ResultData.java

@@ -1,6 +1,6 @@
-package com.sw.bird.common;
+package com.sw.patroleditor.common;
 
-import com.sw.bird.exception.ErrorCode;
+import com.sw.patroleditor.exception.ErrorCode;
 
 /**
  * Created by shiwn on 2021-05-08

+ 1 - 1
src/main/java/com/sw/bird/config/ACAFilter.java → src/main/java/com/sw/patroleditor/config/ACAFilter.java

@@ -1,4 +1,4 @@
-package com.sw.bird.config;
+package com.sw.patroleditor.config;
 
 import org.springframework.stereotype.Component;
 

+ 1 - 1
src/main/java/com/sw/bird/config/DruidConfig.java → src/main/java/com/sw/patroleditor/config/DruidConfig.java

@@ -1,4 +1,4 @@
-package com.sw.bird.config;
+package com.sw.patroleditor.config;
 
 import com.alibaba.druid.pool.DruidDataSource;
 import com.alibaba.druid.support.http.StatViewServlet;

+ 1 - 1
src/main/java/com/sw/bird/config/MybatisPlusConfig.java → src/main/java/com/sw/patroleditor/config/MybatisPlusConfig.java

@@ -1,4 +1,4 @@
-package com.sw.bird.config;
+package com.sw.patroleditor.config;
 
 import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
 import org.springframework.context.annotation.Bean;

+ 1 - 1
src/main/java/com/sw/bird/config/Swagger2.java → src/main/java/com/sw/patroleditor/config/Swagger2.java

@@ -1,4 +1,4 @@
-package com.sw.bird.config;
+package com.sw.patroleditor.config;
 
 import com.google.common.base.Predicate;
 import org.springframework.context.annotation.Bean;

+ 6 - 6
src/main/java/com/sw/bird/controller/SystemController.java → src/main/java/com/sw/patroleditor/controller/SystemController.java

@@ -1,10 +1,10 @@
-package com.sw.bird.controller;
+package com.sw.patroleditor.controller;
 
-import com.sw.bird.common.ResultData;
-import com.sw.bird.controller.api.SystemApi;
-import com.sw.bird.exception.BusinessException;
-import com.sw.bird.exception.ErrorCode;
-import com.sw.bird.service.SystemService;
+import com.sw.patroleditor.common.ResultData;
+import com.sw.patroleditor.controller.api.SystemApi;
+import com.sw.patroleditor.exception.BusinessException;
+import com.sw.patroleditor.exception.ErrorCode;
+import com.sw.patroleditor.service.SystemService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 

+ 2 - 2
src/main/java/com/sw/bird/controller/api/SystemApi.java → src/main/java/com/sw/patroleditor/controller/api/SystemApi.java

@@ -1,6 +1,6 @@
-package com.sw.bird.controller.api;
+package com.sw.patroleditor.controller.api;
 
-import com.sw.bird.common.ResultData;
+import com.sw.patroleditor.common.ResultData;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;

+ 1 - 1
src/main/java/com/sw/bird/domain/dto/SystemDictDTO.java → src/main/java/com/sw/patroleditor/domain/dto/SystemDictDTO.java

@@ -1,4 +1,4 @@
-package com.sw.bird.domain.dto;
+package com.sw.patroleditor.domain.dto;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;

+ 1 - 1
src/main/java/com/sw/bird/domain/dto/UserDTO.java → src/main/java/com/sw/patroleditor/domain/dto/UserDTO.java

@@ -1,4 +1,4 @@
-package com.sw.bird.domain.dto;
+package com.sw.patroleditor.domain.dto;
 
 import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;

+ 1 - 1
src/main/java/com/sw/bird/exception/BusinessException.java → src/main/java/com/sw/patroleditor/exception/BusinessException.java

@@ -1,4 +1,4 @@
-package com.sw.bird.exception;
+package com.sw.patroleditor.exception;
 
 /**
  * @Description: 自定义异常类

+ 2 - 2
src/main/java/com/sw/bird/exception/ControllerAdviceHandle.java → src/main/java/com/sw/patroleditor/exception/ControllerAdviceHandle.java

@@ -1,6 +1,6 @@
-package com.sw.bird.exception;
+package com.sw.patroleditor.exception;
 
-import com.sw.bird.common.ResultData;
+import com.sw.patroleditor.common.ResultData;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.bind.MethodArgumentNotValidException;
 import org.springframework.web.bind.MissingServletRequestParameterException;

+ 1 - 1
src/main/java/com/sw/bird/exception/ErrorCode.java → src/main/java/com/sw/patroleditor/exception/ErrorCode.java

@@ -1,4 +1,4 @@
-package com.sw.bird.exception;
+package com.sw.patroleditor.exception;
 
 /**
  * 异常状态编码

+ 2 - 2
src/main/java/com/sw/bird/mapper/SystemDictMapper.java → src/main/java/com/sw/patroleditor/mapper/SystemDictMapper.java

@@ -1,7 +1,7 @@
-package com.sw.bird.mapper;
+package com.sw.patroleditor.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.sw.bird.domain.dto.SystemDictDTO;
+import com.sw.patroleditor.domain.dto.SystemDictDTO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Component;
 

+ 2 - 5
src/main/java/com/sw/bird/mapper/UserMapper.java → src/main/java/com/sw/patroleditor/mapper/UserMapper.java

@@ -1,14 +1,11 @@
-package com.sw.bird.mapper;
+package com.sw.patroleditor.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.sw.bird.domain.dto.UserDTO;
+import com.sw.patroleditor.domain.dto.UserDTO;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
-import javax.annotation.Resource;
-
 /**
  * Created by shiwn on 2024/5/29 16:30
  */

+ 1 - 1
src/main/java/com/sw/bird/service/SystemService.java → src/main/java/com/sw/patroleditor/service/SystemService.java

@@ -1,4 +1,4 @@
-package com.sw.bird.service;
+package com.sw.patroleditor.service;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;

+ 11 - 12
src/main/java/com/sw/bird/service/impl/SystemServiceImpl.java → src/main/java/com/sw/patroleditor/service/impl/SystemServiceImpl.java

@@ -1,16 +1,15 @@
-package com.sw.bird.service.impl;
+package com.sw.patroleditor.service.impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.sw.bird.domain.dto.SystemDictDTO;
-import com.sw.bird.domain.dto.UserDTO;
-import com.sw.bird.exception.BusinessException;
-import com.sw.bird.exception.ErrorCode;
-import com.sw.bird.mapper.SystemDictMapper;
-import com.sw.bird.mapper.UserMapper;
-import com.sw.bird.service.SystemService;
-import com.sw.bird.util.DateUtil;
-import com.sw.bird.util.MD5Util;
+import com.sw.patroleditor.domain.dto.SystemDictDTO;
+import com.sw.patroleditor.domain.dto.UserDTO;
+import com.sw.patroleditor.exception.BusinessException;
+import com.sw.patroleditor.exception.ErrorCode;
+import com.sw.patroleditor.mapper.SystemDictMapper;
+import com.sw.patroleditor.mapper.UserMapper;
+import com.sw.patroleditor.service.SystemService;
+import com.sw.patroleditor.util.DateUtil;
+import com.sw.patroleditor.util.MD5Util;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -24,7 +23,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import static com.sw.bird.util.DateUtil.DateFormat_yyyyMMddHHmmss;
+import static com.sw.patroleditor.util.DateUtil.DateFormat_yyyyMMddHHmmss;
 
 /**
  * Created by shiwn on 2024/5/29 16:26

+ 2 - 2
src/main/java/com/sw/bird/util/DateUtil.java → src/main/java/com/sw/patroleditor/util/DateUtil.java

@@ -1,6 +1,6 @@
-package com.sw.bird.util;
+package com.sw.patroleditor.util;
 
-import com.sw.bird.exception.BusinessException;
+import com.sw.patroleditor.exception.BusinessException;
 
 import java.text.DateFormat;
 import java.text.ParseException;

+ 1 - 1
src/main/java/com/sw/bird/util/MD5Util.java → src/main/java/com/sw/patroleditor/util/MD5Util.java

@@ -1,4 +1,4 @@
-package com.sw.bird.util;
+package com.sw.patroleditor.util;
 
 import sun.misc.BASE64Decoder;
 import sun.misc.BASE64Encoder;

+ 16 - 16
src/main/resources/application.properties

@@ -1,44 +1,44 @@
-# 配置项目信息
+# \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u013F\uFFFD\uFFFD\u03E2
 server.servlet.context-path=/
 server.port=8081
-# 获取pom文件中project.version值
+# \uFFFD\uFFFD\u0221pom\uFFFD\u013C\uFFFD\uFFFD\uFFFDproject.version\u05B5
 version=@project.version@
 
-# 配置数据源
+# \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0534
 spring.profiles.active=dev
 
-# 配置时区
+# \uFFFD\uFFFD\uFFFD\uFFFD\u02B1\uFFFD\uFFFD
 spring.jackson.time-zone=GMT+8
-# 配置文件请求大小设置
+# \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u013C\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0421\uFFFD\uFFFD\uFFFD\uFFFD
 spring.servlet.multipart.max-file-size=50MB
 spring.servlet.multipart.max-request-size=50MB
 
-# page helper分页插件配置
+# page helper\uFFFD\uFFFD\u04B3\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD
 pagehelper.helperDialect=mysql
 pagehelper.reasonable=true
 pagehelper.supportMethodsArguments=true
 pagehelper.params=count=countSql
 
-# 配置日志
+# \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05BE
 logging.level.com.sw=warn
 logging.file.path=./logs/pmp
-# ***解决swagger2.9.2版本“@ApiModelProperty”注解“example”属性不填时的报错问题
+# ***\uFFFD\uFFFD\uFFFDswagger2.9.2\uFFFD\u6C7E\uFFFD\uFFFD@ApiModelProperty\uFFFD\uFFFD\u05E2\uFFFD\u2870example\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0532\uFFFD\uFFFD\uFFFD\u02B1\uFFFD\u0131\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD
 logging.level.io.swagger.models.parameters.AbstractSerializableParameter:error
 
-# 配置请求信息
+# \uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u03E2
 spring.session.timeout=0
 server.max-http-header-size=1024000
 
-############# 配置mybatis #############
-# 驼峰转换
+############# \uFFFD\uFFFD\uFFFD\uFFFDmybatis #############
+# \uFFFD\u0577\uFFFD\u05EA\uFFFD\uFFFD
 mybatis-plus.configuration.map-underscore-to-camel-case=true
-# 实体类地址
-mybatis-plus.typeAliasesPackage=com.sw.bird.mapper
-# xml文件地址
+# \u02B5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05B7
+mybatis-plus.typeAliasesPackage=com.sw.patroleditor.mapper
+# xml\uFFFD\u013C\uFFFD\uFFFD\uFFFD\u05B7
 mybatis-plus.mapper-locations=classpath:/mapper/*.xml
-# 接收null字段
+# \uFFFD\uFFFD\uFFFD\uFFFDnull\uFFFD\u05B6\uFFFD
 mybatis-plus.configuration.call-setters-on-nulls=true
-# 删除值
+# \u027E\uFFFD\uFFFD\u05B5
 mybatis-plus.global-config.db-config.logic-delete-value=1
 mybatis-plus.global-config.db-config.logic-not-delete-value=0
 

+ 2 - 2
src/main/resources/mapper/SysDictMapper.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.sw.bird.mapper.SystemDictMapper">
+<mapper namespace="com.sw.patroleditor.mapper.SystemDictMapper">
 
-    <select id="getList" resultType="com.sw.bird.domain.dto.SystemDictDTO">
+    <select id="getList" resultType="com.sw.patroleditor.domain.dto.SystemDictDTO">
 
         select
         *