Răsfoiți Sursa

框架改造

1811872455@163.com 3 săptămâni în urmă
părinte
comite
0d65c752cd
100 a modificat fișierele cu 731 adăugiri și 210 ștergeri
  1. 43 0
      .gitignore
  2. 3 11
      .idea/compiler.xml
  3. 1 0
      .idea/encodings.xml
  4. 24 23
      pom.xml
  5. 11 1
      storlead-centre-api/pom.xml
  6. 152 0
      storlead-centre-api/src/main/java/com/storlead/centre/ChenkqGeneratorCodeConfig.java
  7. 84 0
      storlead-centre-api/src/main/java/com/storlead/centre/SpCentreApplication.java
  8. 0 7
      storlead-centre-api/src/main/java/org/example/Main.java
  9. 79 0
      storlead-centre-service/pom.xml
  10. 48 0
      storlead-centre-service/src/main/java/com/storlead/centre/controller/SysAppInfoController.java
  11. 59 0
      storlead-centre-service/src/main/java/com/storlead/centre/entity/SysAppInfoEntity.java
  12. 16 0
      storlead-centre-service/src/main/java/com/storlead/centre/mapper/SysAppInfoMapper.java
  13. 33 0
      storlead-centre-service/src/main/java/com/storlead/centre/mapper/xml/SysAppInfoMapper.xml
  14. 16 0
      storlead-centre-service/src/main/java/com/storlead/centre/service/SysAppInfoService.java
  15. 20 0
      storlead-centre-service/src/main/java/com/storlead/centre/service/impl/SysAppInfoServiceImpl.java
  16. 33 0
      storlead-centre-service/src/main/resources/mapper/SysAppInfoMapper.xml
  17. 1 89
      storlead-dependencies/pom.xml
  18. 1 1
      storlead-framework/pom.xml
  19. 1 1
      storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/jwt/JwtUtil.java
  20. 1 1
      storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/login/CurrentEmployeeInfo.java
  21. 1 1
      storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/login/LoginEmployee.java
  22. 1 1
      storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/vo/LoginUser.java
  23. BIN
      storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/jwt/JwtUtil.class
  24. BIN
      storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/login/CurrentEmployeeInfo.class
  25. BIN
      storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/login/LoginEmployee.class
  26. BIN
      storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/vo/LoginUser.class
  27. 0 3
      storlead-framework/storlead-auth/target/maven-archiver/pom.properties
  28. 0 4
      storlead-framework/storlead-auth/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  29. 0 4
      storlead-framework/storlead-auth/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  30. BIN
      storlead-framework/storlead-auth/target/storlead-auth-1.0.jar
  31. 5 4
      storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/constant/CommonConstant.java
  32. 1 1
      storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/constant/UserCacheKeyConstants.java
  33. 1 1
      storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/util/SystemUtils.java
  34. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CacheConstant.class
  35. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CodeGenerateInterface.class
  36. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CommonConstant.class
  37. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DSConstants.class
  38. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DataBaseConstant.class
  39. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DefContants.class
  40. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/LongToStringSerializer.class
  41. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/SystemConstant.class
  42. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/UserCacheKeyConstants.class
  43. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/enums/DataTypeEnum.class
  44. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/property/YamlPropertyResourceFactory.class
  45. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/MatchTypeEnum.class
  46. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryCondition.class
  47. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryRuleEnum.class
  48. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ConvertUtils.class
  49. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtil.class
  50. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtils.class
  51. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/HtmlUtils.class
  52. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/LocalDateUtils.class
  53. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/MD5Util.class
  54. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomCodeUtil.class
  55. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomGenerateHelper.class
  56. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RsaUtils.class
  57. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SnowFlake.class
  58. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SpringContextUtils.class
  59. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SqlInjectionUtil.class
  60. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/StringUtil.class
  61. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SystemUtils.class
  62. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/WordUtilsTest.class
  63. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ZipUtil.class
  64. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/encryptor/AccessKeyEncryptor.class
  65. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/CodeGenerate.class
  66. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/DefaultIdentifierGenerator.class
  67. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdWorker.class
  68. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdentifierGenerator.class
  69. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/Sequence.class
  70. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContains.class
  71. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContainsValidator.class
  72. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContains.class
  73. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContainsValidator.class
  74. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/FeignResult.class
  75. BIN
      storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/UserVo.class
  76. 0 3
      storlead-framework/storlead-common/target/maven-archiver/pom.properties
  77. 0 43
      storlead-framework/storlead-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  78. BIN
      storlead-framework/storlead-common/target/storlead-common-1.0.jar
  79. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/Page.class
  80. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/Menu.class
  81. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/MenuApi.class
  82. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/PerDataAccess.class
  83. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/Context.class
  84. BIN
      storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/IContext.class
  85. 0 3
      storlead-framework/storlead-core/target/maven-archiver/pom.properties
  86. 0 6
      storlead-framework/storlead-core/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  87. BIN
      storlead-framework/storlead-core/target/storlead-core-1.0.jar
  88. 49 0
      storlead-framework/storlead-mybatis/src/main/java/com/storlead/framework/mybatis/service/MyBaseService.java
  89. 47 2
      storlead-framework/storlead-mybatis/src/main/java/com/storlead/framework/mybatis/service/impl/MyBaseServiceImpl.java
  90. 0 0
      storlead-framework/storlead-mybatis/target/classes/META-INF/spring.factories
  91. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/OrgBaseFieldExt.class
  92. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/Page.class
  93. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/PowerBaseFieldExt.class
  94. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/QueryBaseEntity.class
  95. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/SysBaseField.class
  96. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/handler/MyMetaObjectHandler.class
  97. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/interceptor/MybatisPlusConfig.class
  98. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/interceptor/SqlToJsonParser.class
  99. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/mapper/MyBaseMapper.class
  100. BIN
      storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/mapper/SysBaseFieldMapper.class

+ 43 - 0
.gitignore

@@ -0,0 +1,43 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+java/storlead-centre-api/target
+java/storlead-centre-service/target
+java/storlead-dependencies/target
+java/storlead-framework/*/target
+java/storlead-framework/storlead-web/target
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store

+ 3 - 11
.idea/compiler.xml

@@ -6,28 +6,19 @@
         <sourceOutputDir name="target/generated-sources/annotations" />
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
         <outputRelativeToContentRoot value="true" />
-      </profile>
-      <profile name="Annotation profile for storlead-platform" enabled="true">
-        <sourceOutputDir name="target/generated-sources/annotations" />
-        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
-        <outputRelativeToContentRoot value="true" />
-        <processorPath useClasspath="false">
-          <entry name="$USER_HOME$/.m2/centre.repository/org/springframework/boot/spring-boot-configuration-processor/2.7.0/spring-boot-configuration-processor-2.7.0.jar" />
-          <entry name="$USER_HOME$/.m2/centre.repository/org/projectlombok/lombok/1.18.36/lombok-1.18.36.jar" />
-          <entry name="$USER_HOME$/.m2/centre.repository/org/mapstruct/mapstruct-processor/1.6.3/mapstruct-processor-1.6.3.jar" />
-          <entry name="$USER_HOME$/.m2/centre.repository/org/mapstruct/mapstruct/1.6.3/mapstruct-1.6.3.jar" />
-        </processorPath>
         <module name="storlead-centre-api" />
         <module name="storlead-auth" />
         <module name="storlead-common" />
         <module name="storlead-core" />
         <module name="storlead-redis" />
+        <module name="storlead-centre-service" />
         <module name="storlead-web" />
         <module name="storlead-mybatis" />
       </profile>
     </annotationProcessing>
     <bytecodeTargetLevel>
       <module name="storlead-ai-api" target="17" />
+      <module name="storlead-platform" target="17" />
     </bytecodeTargetLevel>
   </component>
   <component name="JavacSettings">
@@ -35,6 +26,7 @@
       <module name="storlead-ai-api" options="-parameters" />
       <module name="storlead-auth" options="-parameters" />
       <module name="storlead-centre-api" options="-parameters" />
+      <module name="storlead-centre-service" options="-parameters" />
       <module name="storlead-common" options="-parameters" />
       <module name="storlead-core" options="-parameters" />
       <module name="storlead-mybatis" options="-parameters" />

+ 1 - 0
.idea/encodings.xml

@@ -5,6 +5,7 @@
     <file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
     <file url="file://$PROJECT_DIR$/storlead-centre-api/src/main/java" charset="UTF-8" />
     <file url="file://$PROJECT_DIR$/storlead-centre-api/src/main/resources" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/storlead-centre-service/src/main/java" charset="UTF-8" />
     <file url="file://$PROJECT_DIR$/storlead-dependencies/src/main/java" charset="UTF-8" />
     <file url="file://$PROJECT_DIR$/storlead-dependencies/src/main/resources" charset="UTF-8" />
     <file url="file://$PROJECT_DIR$/storlead-framework/src/main/java" charset="UTF-8" />

+ 24 - 23
pom.xml

@@ -11,15 +11,16 @@
     </parent>
 
     <groupId>com.storlead.boot</groupId>
-    <artifactId>storlead-platform</artifactId>
+    <artifactId>storlead-centre-platform</artifactId>
     <version>${revision}</version>
     <packaging>pom</packaging>
-    <name>storlead-platform</name>
+    <name>storlead-centre-platform</name>
 
     <modules>
         <module>storlead-dependencies</module>
         <module>storlead-framework</module>
         <module>storlead-centre-api</module>
+        <module>storlead-centre-service</module>
     </modules>
 
     <properties>
@@ -75,27 +76,27 @@
                     <artifactId>maven-compiler-plugin</artifactId>
                     <version>${maven-compiler-plugin.version}</version>
                     <configuration>
-                        <configuration>
-                            <source>17</source>
-                            <target>17</target>
-                        </configuration>
-                        <annotationProcessorPaths>
-                            <path>
-                                <groupId>org.springframework.boot</groupId>
-                                <artifactId>spring-boot-configuration-processor</artifactId>
-                                <version>${spring.boot.version}</version>
-                            </path>
-                            <path>
-                                <groupId>org.projectlombok</groupId>
-                                <artifactId>lombok</artifactId>
-                                <version>${lombok.version}</version>
-                            </path>
-                            <path>
-                                <groupId>org.mapstruct</groupId>
-                                <artifactId>mapstruct-processor</artifactId>
-                                <version>${mapstruct.version}</version>
-                            </path>
-                        </annotationProcessorPaths>
+<!--                        <configuration>-->
+<!--                            <source>17</source>-->
+<!--                            <target>17</target>-->
+<!--                        </configuration>-->
+<!--                        <annotationProcessorPaths>-->
+<!--                            <path>-->
+<!--                                <groupId>org.springframework.boot</groupId>-->
+<!--                                <artifactId>spring-boot-configuration-processor</artifactId>-->
+<!--                                <version>${spring.boot.version}</version>-->
+<!--                            </path>-->
+<!--                            <path>-->
+<!--                                <groupId>org.projectlombok</groupId>-->
+<!--                                <artifactId>lombok</artifactId>-->
+<!--                                <version>${lombok.version}</version>-->
+<!--                            </path>-->
+<!--                            <path>-->
+<!--                                <groupId>org.mapstruct</groupId>-->
+<!--                                <artifactId>mapstruct-processor</artifactId>-->
+<!--                                <version>${mapstruct.version}</version>-->
+<!--                            </path>-->
+<!--                        </annotationProcessorPaths>-->
                     </configuration>
                 </plugin>
             </plugins>

+ 11 - 1
storlead-centre-api/pom.xml

@@ -5,7 +5,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>com.storlead.boot</groupId>
-        <artifactId>storlead-platform</artifactId>
+        <artifactId>storlead-centre-platform</artifactId>
         <version>${revision}</version>
     </parent>
 
@@ -24,6 +24,11 @@
             <artifactId>storlead-web</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.storlead.boot</groupId>
+            <artifactId>storlead-mybatis</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>com.storlead.boot</groupId>
             <artifactId>storlead-common</artifactId>
@@ -78,6 +83,11 @@
             <artifactId>spring-web</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-generator</artifactId>
+            <version>3.1.2</version>
+        </dependency>
         <!--        <dependency>-->
         <!--            <groupId>org.java-websocket</groupId>-->
         <!--            <artifactId>Java-WebSocket</artifactId>-->

+ 152 - 0
storlead-centre-api/src/main/java/com/storlead/centre/ChenkqGeneratorCodeConfig.java

@@ -0,0 +1,152 @@
+package com.storlead.centre;
+
+import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
+import com.baomidou.mybatisplus.generator.AutoGenerator;
+import org.apache.commons.lang3.StringUtils;
+import com.baomidou.mybatisplus.core.toolkit.*;
+import com.baomidou.mybatisplus.generator.*;
+import com.baomidou.mybatisplus.generator.config.*;
+import com.baomidou.mybatisplus.generator.config.po.*;
+import com.baomidou.mybatisplus.generator.config.rules.*;
+import com.baomidou.mybatisplus.generator.engine.*;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Scanner;
+
+/**
+ * @program: sp-project-system
+ * @description: 代码生成器
+ * @author: chenkq
+ * @create: 2021-09-09 15:15
+ */
+public class ChenkqGeneratorCodeConfig {
+
+    public static String scanner(String tip) {
+        Scanner scanner = new Scanner(System.in);
+        StringBuilder help = new StringBuilder();
+        help.append("请输入" + tip + ":");
+        System.out.println(help.toString());
+        if (scanner.hasNext()) {
+            String ipt = scanner.next();
+            if (StringUtils.isNotEmpty(ipt)) {
+                return ipt;
+            }
+        }
+        throw new MybatisPlusException("请输入正确的" + tip + "!");
+    }
+
+    public static void main(String[] args) {
+        // 代码生成器
+        AutoGenerator mpg = new AutoGenerator();
+        // 全局配置
+        GlobalConfig gc = new GlobalConfig();
+        String projectPath = System.getProperty("user.dir");
+        gc.setOutputDir(projectPath + "\\storlead-centre-service\\src\\main\\java");
+        gc.setAuthor("chenkq");
+        gc.setOpen(false);
+        //实体属性 Swagger2 注解
+        gc.setSwagger2(true);
+        // 不需要ActiveRecord特性的请改为false
+        gc.setActiveRecord(false);
+        // XML 二级缓存
+        gc.setEnableCache(false);
+        // XML ResultMap
+        gc.setBaseResultMap(true);
+        // XML columList
+        gc.setBaseColumnList(true);
+        // 自定义文件命名
+        gc.setEntityName("%sEntity");
+        gc.setServiceName("%sService");
+        mpg.setGlobalConfig(gc);
+        // 数据源配置
+        DataSourceConfig dsc = new DataSourceConfig();
+//        dsc.setUrl("jdbc:mysql://192.168.1.93:39091/sp_sales_dev?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&noDatetimeStringSync=true&serverTimezone=Asia/Shanghai");
+        dsc.setUrl("jdbc:mysql://mysql.test.storlead.com:39091/sp_unified_service_test?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true");
+        dsc.setDriverName("com.mysql.jdbc.Driver");
+        dsc.setUsername("root");
+        dsc.setPassword("rCgRgLjH99Xvg5BN");
+        mpg.setDataSource(dsc);
+        // 包配置
+        PackageConfig pc = new PackageConfig();
+//        pc.setModuleName(scanner("模块名"));
+        pc.setParent("com.storlead.centre");
+        pc.setEntity("entity");
+        pc.setService("service");
+        pc.setServiceImpl("service.impl");
+//        gc.setXmlName("mapper");
+        mpg.setPackageInfo(pc);
+
+        // 自定义配置
+        InjectionConfig cfg = new InjectionConfig() {
+            @Override
+            public void initMap() {
+
+            }
+        };
+
+        //如果模板引擎是 freemarker
+        String templatePath = "/templates/mapper.xml.ftl";
+        //如果模板引擎是 velocity
+        //String templatePath = "/templates/mapper.xml.vm";
+//
+//        // 自定义输出配置
+        List<FileOutConfig> focList = new ArrayList<>();
+        //自定义配置会被优先输出
+        focList.add(new FileOutConfig(templatePath) {
+            @Override
+            public String outputFile(TableInfo tableInfo) {
+                // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着发生变化!!
+
+                String str = projectPath + "\\storlead-centre-service\\src\\main\\resources\\mapper\\" + tableInfo.getEntityName().replace("Entity","") + "Mapper" + StringPool.DOT_XML;
+                System.out.println("str = :" + str);
+                return str;
+            }
+        });
+//        cfg.setFileCreate(new IFileCreate() {
+//            @Override
+//            public boolean isCreate(ConfigBuilder configBuilder, FileType fileType, String filePath) {
+//                // 判断自定义文件夹是否需要创建
+//                System.out.println("filePath = "+filePath);
+//                checkDir(filePath);
+//                return false;
+//            }
+//        });
+//
+        cfg.setFileOutConfigList(focList);
+        mpg.setCfg(cfg);
+
+        // 策略配置
+        StrategyConfig strategy = new StrategyConfig();
+        strategy.setNaming(NamingStrategy.underline_to_camel);
+        strategy.setColumnNaming(NamingStrategy.underline_to_camel);
+        strategy.setSuperEntityClass("com.baomidou.mybatisplus.extension.activerecord.Model");
+        strategy.setEntityLombokModel(true);
+        strategy.setRestControllerStyle(true);
+        // 表名生成策略
+        strategy.setNaming(NamingStrategy.underline_to_camel);
+        strategy.setColumnNaming(NamingStrategy.underline_to_camel);
+
+        // 公共父类
+        strategy.setSuperEntityClass("com.storlead.frame.mybatis.entity.SysBaseField");
+        // 写于父类中的公共字段
+        strategy.setSuperEntityColumns("create_by","update_by","create_time","update_time","is_delete","enabled","owner_by","sort");
+        strategy.setControllerMappingHyphenStyle(true);
+        strategy.setEntityTableFieldAnnotationEnable(true);
+
+        strategy.setSuperMapperClass("com.storlead.frame.mybatis.mapper.MyBaseMapper");
+        strategy.setSuperServiceClass("com.storlead.frame.mybatis.service.MyBaseService");
+        strategy.setSuperServiceImplClass("com.storlead.frame.mybatis.service.impl.MyBaseServiceImpl");
+        strategy.setEntityLombokModel(true);
+        // 公共父类
+//        strategy.setSuperControllerClass("com.baomidou.ant.common.BaseController");
+        // 写于父类中的公共字段
+//        strategy.setSuperEntityColumns("id");
+        strategy.setInclude(scanner("表名,多个英文逗号分割").split(","));
+        strategy.setControllerMappingHyphenStyle(true);
+        strategy.setTablePrefix(pc.getModuleName() + "_");
+        mpg.setStrategy(strategy);
+        mpg.setTemplateEngine(new FreemarkerTemplateEngine());
+        mpg.execute();
+    }
+}

+ 84 - 0
storlead-centre-api/src/main/java/com/storlead/centre/SpCentreApplication.java

@@ -0,0 +1,84 @@
+package com.storlead.centre;
+
+import lombok.extern.slf4j.Slf4j;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.context.annotation.Bean;
+import org.springframework.core.env.Environment;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.web.cors.CorsConfiguration;
+import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
+import org.springframework.web.filter.CorsFilter;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
+
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+/**
+ * @program: sp-sales-platform
+ * @description: 启动程序
+ * @author: chenkq
+ * @create: 2024-03-29 15:42
+ */
+@Slf4j
+@EnableAsync
+@EnableCaching
+@EnableSwagger2
+@EnableScheduling
+@MapperScan(basePackages = {"com.storlead.*.mapper","com.storlead.*.*.mapper"})
+//@EnableDiscoveryClient
+//@EnableFeignClients(basePackages = "com.storlead.sales.common.feign")
+@SpringBootApplication(scanBasePackages = "com.storlead")
+public class SpCentreApplication {
+
+    public static void main(String[] args) throws UnknownHostException {
+
+        ConfigurableApplicationContext application = SpringApplication.run(SpCentreApplication.class, args);
+        Environment env = application.getEnvironment();
+        String ip = InetAddress.getLocalHost().getHostAddress();
+        String port = env.getProperty("server.port");
+        String path = env.getProperty("server.servlet.context-path");
+        log.info("\n----------------------------------------------------------\n\t" +
+                "Application lingcun is running! Access URLs:\n\t" +
+                "Local: \t\thttp://localhost:" + port + path + "/\n\t" +
+                "External: \thttp://" + ip + ":" + port + path + "/\n\t" +
+                "swagger-ui: \t\thttp://" + ip + ":" + port + path + "/doc.html\n" +
+                "----------------------------------------------------------");
+
+        disableDruidWaring();
+
+//      disableWarning(); //禁用警告
+    }
+
+    private static void disableDruidWaring() {
+        // 解决druid 日志报错:discard long time none received connection:xxx https://juejin.cn/post/6956349355041259557
+        System.setProperty("druid.mysql.usePingMethod","false");
+    }
+
+    @Bean
+    public CorsFilter corsFilter() {
+        //1.添加CORS配置信息
+        CorsConfiguration config = new CorsConfiguration();
+        //1) 允许的域,不要写*,否则cookie就无法使用了
+        config.addAllowedOrigin("*");
+        //3) 允许的请求方式
+        config.addAllowedMethod("OPTIONS");
+        config.addAllowedMethod("POST");
+        config.addAllowedMethod("GET");
+        // 4)允许的头信息
+        config.addAllowedHeader("*");
+        config.setAllowCredentials(true);
+        //初始化Cors配置源
+        UrlBasedCorsConfigurationSource configSource = new UrlBasedCorsConfigurationSource();
+        //2.添加映射路径,我们拦截一切请求
+        configSource.registerCorsConfiguration("/**", config);
+
+        //3.返回CorsFilter实例.参数:cors配置源
+        return new CorsFilter(configSource);
+    }
+}

+ 0 - 7
storlead-centre-api/src/main/java/org/example/Main.java

@@ -1,7 +0,0 @@
-package org.example;
-
-public class Main {
-    public static void main(String[] args) {
-        System.out.println("Hello world!");
-    }
-}

+ 79 - 0
storlead-centre-service/pom.xml

@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.storlead.boot</groupId>
+        <artifactId>storlead-centre-platform</artifactId>
+        <version>1.0</version>
+    </parent>
+
+    <artifactId>storlead-centre-service</artifactId>
+    <packaging>jar</packaging>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>com.storlead.boot</groupId>
+            <artifactId>storlead-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.storlead.boot</groupId>
+            <artifactId>storlead-common</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.storlead.boot</groupId>
+            <artifactId>storlead-mybatis</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+        </dependency>
+
+        <!-- 参数校验 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-validation</artifactId>
+            <optional>true</optional>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springdoc</groupId>
+            <artifactId>springdoc-openapi-ui</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>io.projectreactor</groupId>
+            <artifactId>reactor-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <!-- Spring Boot WebSocket -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-websocket</artifactId>
+        </dependency>
+
+        <!-- Spring Boot WebFlux (响应式编程) -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-webflux</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-web</artifactId>
+        </dependency>
+
+
+        <dependency>
+            <groupId>cn.hutool</groupId>
+            <artifactId>hutool-all</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

+ 48 - 0
storlead-centre-service/src/main/java/com/storlead/centre/controller/SysAppInfoController.java

@@ -0,0 +1,48 @@
+package com.storlead.centre.controller;
+
+
+import com.storlead.centre.entity.SysAppInfoEntity;
+import com.storlead.centre.service.SysAppInfoService;
+import com.storlead.framework.web.assemble.Result;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+/**
+ * <p>
+ * 应用信息表 前端控制器
+ * </p>
+ *
+ * @author chenkq
+ * @since 2025-11-18
+ */
+@RestController
+@RequestMapping("/sys/app/")
+public class SysAppInfoController {
+
+    @Resource
+    private SysAppInfoService sysAppInfoService;
+
+    @ResponseBody
+    @RequestMapping("save")
+    public Result save(SysAppInfoEntity info){
+        sysAppInfoService.save(info);
+        return Result.ok();
+    }
+
+    @ApiOperation("启用禁用部门")
+    @PostMapping("enable")
+    public Result setEnable(Long id,Boolean enable) {
+        if (enable) {
+            sysAppInfoService.enable(id);
+        } else {
+            sysAppInfoService.disable(id);
+        }
+        return Result.ok();
+    }
+}

+ 59 - 0
storlead-centre-service/src/main/java/com/storlead/centre/entity/SysAppInfoEntity.java

@@ -0,0 +1,59 @@
+package com.storlead.centre.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.storlead.framework.mybatis.entity.SysBaseField;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 应用信息表
+ * </p>
+ *
+ * @author chenkq
+ * @since 2025-11-18
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("sys_app_info")
+@ApiModel(value="SysAppInfoEntity对象", description="应用信息表")
+public class SysAppInfoEntity extends SysBaseField {
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "主键ID")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "应用名称")
+    @TableField("app_name")
+    private String appName;
+
+    @ApiModelProperty(value = "应用标识(唯一)")
+    @TableField("app_code")
+    private String appCode;
+
+    @ApiModelProperty(value = "应用密钥")
+    @TableField("app_secret")
+    private String appSecret;
+
+    @ApiModelProperty(value = "回调地址(OAuth2)")
+    @TableField("redirect_uri")
+    private String redirectUri;
+
+    @ApiModelProperty(value = "应用主页(入口)")
+    @TableField("homepage_url")
+    private String homepageUrl;
+
+    @ApiModelProperty(value = "应用描述")
+    @TableField("description")
+    private String description;
+
+}

+ 16 - 0
storlead-centre-service/src/main/java/com/storlead/centre/mapper/SysAppInfoMapper.java

@@ -0,0 +1,16 @@
+package com.storlead.centre.mapper;
+
+import com.storlead.centre.entity.SysAppInfoEntity;
+import com.storlead.framework.mybatis.mapper.MyBaseMapper;
+
+/**
+ * <p>
+ * 应用信息表 Mapper 接口
+ * </p>
+ *
+ * @author chenkq
+ * @since 2025-11-18
+ */
+public interface SysAppInfoMapper extends MyBaseMapper<SysAppInfoEntity> {
+
+}

+ 33 - 0
storlead-centre-service/src/main/java/com/storlead/centre/mapper/xml/SysAppInfoMapper.xml

@@ -0,0 +1,33 @@
+<?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.storlead.centre.mapper.SysAppInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.storlead.centre.entity.SysAppInfoEntity">
+        <id column="id" property="id" />
+    <result column="sort" property="sort" />
+    <result column="enabled" property="enabled" />
+    <result column="create_by" property="createBy" />
+    <result column="create_time" property="createTime" />
+    <result column="update_by" property="updateBy" />
+    <result column="update_time" property="updateTime" />
+        <result column="app_name" property="appName" />
+        <result column="app_code" property="appCode" />
+        <result column="app_secret" property="appSecret" />
+        <result column="redirect_uri" property="redirectUri" />
+        <result column="homepage_url" property="homepageUrl" />
+        <result column="description" property="description" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sort,
+        enabled,
+        create_by,
+        create_time,
+        update_by,
+        update_time,
+        id, app_name, app_code, app_secret, redirect_uri, homepage_url, description
+    </sql>
+
+</mapper>

+ 16 - 0
storlead-centre-service/src/main/java/com/storlead/centre/service/SysAppInfoService.java

@@ -0,0 +1,16 @@
+package com.storlead.centre.service;
+
+import com.storlead.centre.entity.SysAppInfoEntity;
+import com.storlead.framework.mybatis.service.MyBaseService;
+
+/**
+ * <p>
+ * 应用信息表 服务类
+ * </p>
+ *
+ * @author chenkq
+ * @since 2025-11-18
+ */
+public interface SysAppInfoService extends MyBaseService<SysAppInfoEntity> {
+
+}

+ 20 - 0
storlead-centre-service/src/main/java/com/storlead/centre/service/impl/SysAppInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.storlead.centre.service.impl;
+
+import com.storlead.centre.entity.SysAppInfoEntity;
+import com.storlead.centre.mapper.SysAppInfoMapper;
+import com.storlead.centre.service.SysAppInfoService;
+import com.storlead.framework.mybatis.service.impl.MyBaseServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 应用信息表 服务实现类
+ * </p>
+ *
+ * @author chenkq
+ * @since 2025-11-18
+ */
+@Service
+public class SysAppInfoServiceImpl extends MyBaseServiceImpl<SysAppInfoMapper, SysAppInfoEntity> implements SysAppInfoService {
+
+}

+ 33 - 0
storlead-centre-service/src/main/resources/mapper/SysAppInfoMapper.xml

@@ -0,0 +1,33 @@
+<?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.storlead.centre.mapper.SysAppInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.storlead.centre.entity.SysAppInfoEntity">
+        <id column="id" property="id" />
+    <result column="sort" property="sort" />
+    <result column="enabled" property="enabled" />
+    <result column="create_by" property="createBy" />
+    <result column="create_time" property="createTime" />
+    <result column="update_by" property="updateBy" />
+    <result column="update_time" property="updateTime" />
+        <result column="app_name" property="appName" />
+        <result column="app_code" property="appCode" />
+        <result column="app_secret" property="appSecret" />
+        <result column="redirect_uri" property="redirectUri" />
+        <result column="homepage_url" property="homepageUrl" />
+        <result column="description" property="description" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sort,
+        enabled,
+        create_by,
+        create_time,
+        update_by,
+        update_time,
+        id, app_name, app_code, app_secret, redirect_uri, homepage_url, description
+    </sql>
+
+</mapper>

+ 1 - 89
storlead-dependencies/pom.xml

@@ -92,23 +92,13 @@
 <!--                <version>${revision}</version>-->
 <!--            </dependency>-->
 
-            <dependency>
-                <groupId>com.storlead.boot</groupId>
-                <artifactId>storlead-share-aicms</artifactId>
-                <version>${revision}</version>
-            </dependency>
-
             <dependency>
                 <groupId>com.storlead.boot</groupId>
                 <artifactId>storlead-web</artifactId>
                 <version>${revision}</version>
             </dependency>
 
-            <dependency>
-                <groupId>com.baomidou</groupId>
-                <artifactId>mybatis-plus-generator</artifactId>
-                <version>${mybatis-plus.version}</version>
-            </dependency>
+
 
             <dependency>
                 <groupId>com.storlead.boot</groupId>
@@ -122,12 +112,6 @@
                 <version>${revision}</version>
             </dependency>
 
-            <dependency>
-                <groupId>com.storlead.boot</groupId>
-                <artifactId>storlead-system</artifactId>
-                <version>${revision}</version>
-            </dependency>
-
 <!--            &lt;!&ndash;swagger&ndash;&gt;-->
             <dependency>
                 <groupId>io.springfox</groupId>
@@ -145,12 +129,6 @@
                 <version>${swagger.annotations.version}</version>
             </dependency>
 
-            <dependency>
-                <groupId>com.google.code.gson</groupId>
-                <artifactId>gson</artifactId>
-                <version>${google.code.gson.version}</version> <!-- 建议使用最新版本 -->
-            </dependency>
-
             <dependency>
                 <groupId>com.alibaba</groupId>
                 <artifactId>fastjson</artifactId>
@@ -158,19 +136,6 @@
             </dependency>
 
 
-            <dependency>
-                <groupId>org.apache.httpcomponents.client5</groupId>
-                <artifactId>httpclient5</artifactId>
-                <version>${apache.httpcore5.client5.version}</version>
-            </dependency>
-
-            <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5 -->
-            <dependency>
-                <groupId>org.apache.httpcomponents.core5</groupId>
-                <artifactId>httpcore5</artifactId>
-                <version>${apache.httpcore5.version}</version>
-            </dependency>
-
             <!--JWT-->
             <dependency>
                 <groupId>com.auth0</groupId>
@@ -184,37 +149,8 @@
                 <artifactId>jjwt</artifactId>
                 <version>${io.jsonwebtoken.version}</version>
             </dependency>
-            <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5-h2 -->
-            <dependency>
-                <groupId>org.apache.httpcomponents.core5</groupId>
-                <artifactId>httpcore5-h2</artifactId>
-                <version>${apache.httpcore5-h2.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.apache.httpcomponents</groupId>
-                <artifactId>httpasyncclient</artifactId>
-                <version>${apache.httpasyncclient.version}</version>
-            </dependency>
-<!--            <dependency>-->
-<!--                <groupId>com.github.xiaoymin</groupId>-->
-<!--                <artifactId>swagger-bootstrap-ui</artifactId>-->
-<!--                <version>1.8.7</version>-->
-<!--            </dependency>-->
 
 
-<!--            <dependency>-->
-<!--                <groupId>com.squareup.okhttp3</groupId>-->
-<!--                <artifactId>okhttp</artifactId>-->
-<!--                <version>${squareup.okhttp.version}</version> &lt;!&ndash; 2023年最新稳定版 &ndash;&gt;-->
-<!--            </dependency>-->
-
-            <dependency>
-                <groupId>com.squareup.okhttp3</groupId>
-                <artifactId>okhttp-sse</artifactId>
-                <version>${okhttp.sse.version}</version>
-            </dependency>
-
             <dependency>
                 <groupId>org.projectlombok</groupId>
                 <artifactId>lombok</artifactId>
@@ -284,18 +220,6 @@
                 <version>${druid.version}</version>
             </dependency>
 
-            <dependency>
-                <groupId>com.github.yulichang</groupId>
-                <artifactId>mybatis-plus-join-boot-starter</artifactId> <!-- MyBatis 联表查询 -->
-                <version>${mybatis-plus-join.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.java-websocket</groupId>
-                <artifactId>Java-WebSocket</artifactId>
-                <version>${spring.web.socket.version}</version>
-            </dependency>
-
             <!-- Web 相关 -->
             <dependency>
                 <groupId>org.springframework.boot</groupId>
@@ -309,24 +233,12 @@
                 </exclusions>
             </dependency>
 
-            <dependency>
-                <groupId>org.jsoup</groupId>
-                <artifactId>jsoup</artifactId>
-                <version>${jsoup.version}</version>
-            </dependency>
-
             <dependency>
                 <groupId>com.google.guava</groupId>
                 <artifactId>guava</artifactId>
                 <version>${guava.version}</version>
             </dependency>
 
-            <dependency>
-                <groupId>org.mockito</groupId>
-                <artifactId>mockito-inline</artifactId>
-                <version>${mockito-inline.version}</version> <!-- 支持 Mockito 的 final 类与 static 方法的 mock -->
-            </dependency>
-
             <dependency>
                 <groupId>org.springdoc</groupId>
                 <artifactId>springdoc-openapi-ui</artifactId>

+ 1 - 1
storlead-framework/pom.xml

@@ -3,7 +3,7 @@
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <artifactId>storlead-platform</artifactId>
+        <artifactId>storlead-centre-platform</artifactId>
         <groupId>com.storlead.boot</groupId>
         <version>${revision}</version>
     </parent>

+ 1 - 1
storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/jwt/JwtUtil.java

@@ -12,7 +12,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
 import java.util.*;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-07-09 14:53

+ 1 - 1
storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/login/CurrentEmployeeInfo.java

@@ -6,7 +6,7 @@ import lombok.Data;
 import lombok.extern.log4j.Log4j2;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-07-10 10:58

+ 1 - 1
storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/login/LoginEmployee.java

@@ -5,7 +5,7 @@ import com.storlead.framework.core.context.Context;
 import lombok.extern.log4j.Log4j2;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-07-10 11:00

+ 1 - 1
storlead-framework/storlead-auth/src/main/java/com/storlead/framework/auth/vo/LoginUser.java

@@ -7,7 +7,7 @@ import lombok.experimental.Accessors;
 import java.io.Serializable;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-06-16 17:26

BIN
storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/jwt/JwtUtil.class


BIN
storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/login/CurrentEmployeeInfo.class


BIN
storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/login/LoginEmployee.class


BIN
storlead-framework/storlead-auth/target/classes/com/storlead/framework/auth/vo/LoginUser.class


+ 0 - 3
storlead-framework/storlead-auth/target/maven-archiver/pom.properties

@@ -1,3 +0,0 @@
-artifactId=storlead-auth
-groupId=com.storlead.boot
-version=1.0

+ 0 - 4
storlead-framework/storlead-auth/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -1,4 +0,0 @@
-com\storlead\framework\auth\login\LoginEmployee.class
-com\storlead\framework\auth\jwt\JwtUtil.class
-com\storlead\framework\auth\login\CurrentEmployeeInfo.class
-com\storlead\framework\auth\vo\LoginUser.class

+ 0 - 4
storlead-framework/storlead-auth/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@@ -1,4 +0,0 @@
-D:\chenkq-work\git\storlead-ai-platform\storlead-framework\storlead-auth\src\main\java\com\storlead\framework\auth\jwt\JwtUtil.java
-D:\chenkq-work\git\storlead-ai-platform\storlead-framework\storlead-auth\src\main\java\com\storlead\framework\auth\login\LoginEmployee.java
-D:\chenkq-work\git\storlead-ai-platform\storlead-framework\storlead-auth\src\main\java\com\storlead\framework\auth\vo\LoginUser.java
-D:\chenkq-work\git\storlead-ai-platform\storlead-framework\storlead-auth\src\main\java\com\storlead\framework\auth\login\CurrentEmployeeInfo.java

BIN
storlead-framework/storlead-auth/target/storlead-auth-1.0.jar


+ 5 - 4
storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/constant/CommonConstant.java

@@ -18,14 +18,15 @@ public interface CommonConstant {
 	Integer STATUS_DISABLE = 0;
 
 	/**
-	 * 未删除
+	 * 
 	 */
-	Integer DEL_FLAG_0 = 0;
+	Integer FALSE_FLAG = 0;
 
     /**
-     * 删除
+     * 
      */
-    Integer DEL_FLAG_1 = 1;
+    Integer TRUE_FLAG = 1;
+
 
 	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
     Integer SC_INTERNAL_SERVER_ERROR_500 = 500;

+ 1 - 1
storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/constant/UserCacheKeyConstants.java

@@ -1,7 +1,7 @@
 package com.storlead.framework.common.constant;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-06-17 15:39

+ 1 - 1
storlead-framework/storlead-common/src/main/java/com/storlead/framework/common/util/SystemUtils.java

@@ -4,7 +4,7 @@ import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 
 /**
- * @program: storlead-storlead-Platform
+ * @program: storlead-storlead-centre-platform
  * @description:
  * @author: chenkq
  * @create: 2025-06-17 15:47

BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CacheConstant.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CodeGenerateInterface.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CommonConstant.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DSConstants.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DataBaseConstant.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DefContants.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/LongToStringSerializer.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/SystemConstant.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/UserCacheKeyConstants.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/enums/DataTypeEnum.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/property/YamlPropertyResourceFactory.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/MatchTypeEnum.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryCondition.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryRuleEnum.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ConvertUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtil.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/HtmlUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/LocalDateUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/MD5Util.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomCodeUtil.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomGenerateHelper.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RsaUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SnowFlake.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SpringContextUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SqlInjectionUtil.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/StringUtil.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SystemUtils.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/WordUtilsTest.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ZipUtil.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/encryptor/AccessKeyEncryptor.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/CodeGenerate.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/DefaultIdentifierGenerator.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdWorker.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdentifierGenerator.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/Sequence.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContains.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContainsValidator.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContains.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContainsValidator.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/FeignResult.class


BIN
storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/UserVo.class


+ 0 - 3
storlead-framework/storlead-common/target/maven-archiver/pom.properties

@@ -1,3 +0,0 @@
-artifactId=storlead-common
-groupId=com.storlead.boot
-version=1.0

+ 0 - 43
storlead-framework/storlead-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -1,43 +0,0 @@
-com\storlead\framework\common\constant\CodeGenerateInterface.class
-com\storlead\framework\common\util\encryptor\AccessKeyEncryptor.class
-com\storlead\framework\common\util\generate\Sequence.class
-com\storlead\framework\common\util\SystemUtils.class
-com\storlead\framework\common\validation\NeContainsValidator.class
-com\storlead\framework\common\util\SnowFlake.class
-com\storlead\framework\common\util\generate\IdentifierGenerator.class
-com\storlead\framework\common\util\ZipUtil.class
-com\storlead\framework\common\util\SqlInjectionUtil.class
-com\storlead\framework\common\constant\CacheConstant.class
-com\storlead\framework\common\constant\LongToStringSerializer.class
-com\storlead\framework\common\system\query\QueryRuleEnum.class
-com\storlead\framework\common\util\RsaUtils.class
-com\storlead\framework\common\util\DateUtil.class
-com\storlead\framework\common\util\WordUtilsTest.class
-com\storlead\framework\common\enums\DataTypeEnum.class
-com\storlead\framework\common\property\YamlPropertyResourceFactory.class
-com\storlead\framework\common\util\HtmlUtils.class
-com\storlead\framework\common\validation\NeContains.class
-com\storlead\framework\common\util\DateUtils.class
-com\storlead\framework\common\util\RandomGenerateHelper.class
-com\storlead\framework\common\util\generate\DefaultIdentifierGenerator.class
-com\storlead\framework\common\system\query\MatchTypeEnum.class
-com\storlead\framework\common\util\generate\IdWorker.class
-com\storlead\framework\common\constant\DSConstants.class
-com\storlead\framework\common\system\query\QueryCondition.class
-com\storlead\framework\common\util\RsaUtils$RsaKeyPair.class
-com\storlead\framework\common\util\SpringContextUtils.class
-com\storlead\framework\common\constant\UserCacheKeyConstants.class
-com\storlead\framework\common\vo\FeignResult.class
-com\storlead\framework\common\validation\NotContainsValidator.class
-com\storlead\framework\common\constant\SystemConstant.class
-com\storlead\framework\common\util\LocalDateUtils.class
-com\storlead\framework\common\constant\CommonConstant.class
-com\storlead\framework\common\vo\UserVo.class
-com\storlead\framework\common\constant\DefContants.class
-com\storlead\framework\common\util\RandomCodeUtil.class
-com\storlead\framework\common\util\StringUtil.class
-com\storlead\framework\common\validation\NotContains.class
-com\storlead\framework\common\constant\DataBaseConstant.class
-com\storlead\framework\common\util\MD5Util.class
-com\storlead\framework\common\util\ConvertUtils.class
-com\storlead\framework\common\util\generate\CodeGenerate.class

BIN
storlead-framework/storlead-common/target/storlead-common-1.0.jar


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/Page.class


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/Menu.class


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/MenuApi.class


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/PerDataAccess.class


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/Context.class


BIN
storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/IContext.class


+ 0 - 3
storlead-framework/storlead-core/target/maven-archiver/pom.properties

@@ -1,3 +0,0 @@
-artifactId=storlead-core
-groupId=com.storlead.boot
-version=1.0

+ 0 - 6
storlead-framework/storlead-core/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -1,6 +0,0 @@
-com\storlead\framework\core\context\Context.class
-com\storlead\framework\core\annotation\MenuApi.class
-com\storlead\framework\core\annotation\Menu.class
-com\storlead\framework\core\context\IContext.class
-com\storlead\framework\core\Page.class
-com\storlead\framework\core\annotation\PerDataAccess.class

BIN
storlead-framework/storlead-core/target/storlead-core-1.0.jar


+ 49 - 0
storlead-framework/storlead-mybatis/src/main/java/com/storlead/framework/mybatis/service/MyBaseService.java

@@ -1,13 +1,62 @@
 package com.storlead.framework.mybatis.service;
 
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.storlead.framework.common.constant.CommonConstant;
+import org.springframework.util.CollectionUtils;
+
 import java.util.List;
+import java.util.Objects;
 
 public interface MyBaseService <T> extends IService<T> {
 
+    /**
+     * 删除
+     * @param id
+     * @return
+     */
     Boolean lgDelete(Long id);
 
+
+    /**
+     * 删除
+     * @param ids
+     * @return
+     */
     Boolean lgDelete(List<Long> ids);
 
+    /**
+     * 查询
+     * @param ids
+     * @return
+     */
     List<T> listByIds(List<Long> ids);
+
+    /**
+     * 启用
+     * @param ids
+     * @return
+     */
+    Boolean enable(List<Long> ids);
+
+    /**
+     * 启用
+     * @param id
+     * @return
+     */
+    Boolean enable(Long id);
+
+    /**
+     * 禁用
+     * @param ids
+     * @return
+     */
+    Boolean disable(List<Long> ids);
+
+    /**
+     * 禁用
+     * @param id
+     * @return
+     */
+    Boolean disable(Long id);
 }

+ 47 - 2
storlead-framework/storlead-mybatis/src/main/java/com/storlead/framework/mybatis/service/impl/MyBaseServiceImpl.java

@@ -11,6 +11,7 @@ import com.storlead.framework.mybatis.mapper.MyBaseMapper;
 import com.storlead.framework.mybatis.service.MyBaseService;
 import org.springframework.util.CollectionUtils;
 
+import java.util.ArrayList;
 import java.util.List;
 import java.util.Objects;
 
@@ -29,7 +30,7 @@ public class MyBaseServiceImpl<M extends MyBaseMapper<T>, T extends SysBaseField
         }
         UpdateWrapper updateWrapper = new UpdateWrapper<>();
         updateWrapper.eq("id",id);
-        updateWrapper.set("is_delete", CommonConstant.DEL_FLAG_1);
+        updateWrapper.set("is_delete", CommonConstant.TRUE_FLAG);
         return this.update(updateWrapper);
     }
 
@@ -40,7 +41,7 @@ public class MyBaseServiceImpl<M extends MyBaseMapper<T>, T extends SysBaseField
         }
         UpdateWrapper updateWrapper = new UpdateWrapper<>();
         updateWrapper.in("id",ids);
-        updateWrapper.set("is_delete", CommonConstant.DEL_FLAG_1);
+        updateWrapper.set("is_delete", CommonConstant.TRUE_FLAG);
         return this.update(updateWrapper);
     }
 
@@ -53,4 +54,48 @@ public class MyBaseServiceImpl<M extends MyBaseMapper<T>, T extends SysBaseField
         query.in("id",ids);
         return this.list(query);
     }
+
+    @Override
+    public Boolean enable(List<Long> ids) {
+        if (CollectionUtils.isEmpty(ids)) {
+            return false;
+        }
+        UpdateWrapper updateWrapper = new UpdateWrapper<>();
+        updateWrapper.in("id",ids);
+        updateWrapper.set("enable", CommonConstant.TRUE_FLAG);
+        return this.update(updateWrapper);
+    }
+
+    @Override
+    public Boolean enable(Long id) {
+        if (Objects.isNull(id)) {
+            return false;
+        }
+        UpdateWrapper updateWrapper = new UpdateWrapper<>();
+        updateWrapper.eq("id",id);
+        updateWrapper.set("enable", CommonConstant.TRUE_FLAG);
+        return this.update(updateWrapper);
+    }
+
+    @Override
+    public Boolean disable(List<Long> ids) {
+        if (CollectionUtils.isEmpty(ids)) {
+            return false;
+        }
+        UpdateWrapper updateWrapper = new UpdateWrapper<>();
+        updateWrapper.eq("id",ids);
+        updateWrapper.set("enable", CommonConstant.FALSE_FLAG);
+        return this.update(updateWrapper);
+    }
+
+    @Override
+    public Boolean disable(Long id) {
+        if (Objects.isNull(id)) {
+            return false;
+        }
+        UpdateWrapper updateWrapper = new UpdateWrapper<>();
+        updateWrapper.eq("id",id);
+        updateWrapper.set("enable", CommonConstant.FALSE_FLAG);
+        return this.update(updateWrapper);
+    }
 }

+ 0 - 0
storlead-framework/storlead-mybatis/target/classes/META-INF/spring.factories


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/OrgBaseFieldExt.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/Page.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/PowerBaseFieldExt.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/QueryBaseEntity.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/entity/SysBaseField.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/handler/MyMetaObjectHandler.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/interceptor/MybatisPlusConfig.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/interceptor/SqlToJsonParser.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/mapper/MyBaseMapper.class


BIN
storlead-framework/storlead-mybatis/target/classes/com/storlead/framework/mybatis/mapper/SysBaseFieldMapper.class


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff