diff --git a/blade-ops/.flattened-pom.xml b/blade-ops/.flattened-pom.xml
deleted file mode 100644
index 0288ebb48..000000000
--- a/blade-ops/.flattened-pom.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- 4.0.0
- org.springblade
- blade-ops
- 4.6.0.RELEASE
- pom
- blade-ops
-
-
- org.springblade
- blade-starter-metrics
- 4.6.0.RELEASE
- compile
-
-
- com.oracle.database.jdbc
- ojdbc8
- 21.5.0.0
- compile
-
-
- com.oracle.database.nls
- orai18n
- 19.15.0.0
- compile
-
-
- org.projectlombok
- lombok
- 1.18.36
- provided
-
-
-
diff --git a/blade-ops/blade-admin/.flattened-pom.xml b/blade-ops/blade-admin/.flattened-pom.xml
deleted file mode 100644
index 5500a6d53..000000000
--- a/blade-ops/blade-admin/.flattened-pom.xml
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
- 4.0.0
- org.springblade
- blade-admin
- 4.6.0.RELEASE
- blade-admin
-
-
- org.springblade
- blade-common
- 4.6.0.RELEASE
- compile
-
-
- blade-core-launch
- org.springblade
-
-
-
-
- org.springblade
- blade-core-launch
- 4.6.0.RELEASE
- compile
-
-
- spring-boot-starter-web
- org.springframework.boot
-
-
- spring-boot-starter-undertow
- org.springframework.boot
-
-
-
-
- org.springblade
- blade-starter-prometheus
- 4.6.0.RELEASE
- compile
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
- 2023.0.1.2
- compile
-
-
- nacos-client
- com.alibaba.nacos
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
- 2023.0.1.2
- compile
-
-
- nacos-client
- com.alibaba.nacos
-
-
-
-
- com.alibaba.nacos
- nacos-client
- 2.5.1
- compile
-
-
- de.codecentric
- spring-boot-admin-starter-server
- 3.2.3
- compile
-
-
- org.springframework.boot
- spring-boot-starter-security
- 3.2.12
- compile
-
-
- com.taobao
- taobao-sdk
- 20201116
- compile
-
-
- org.springblade
- blade-starter-metrics
- 4.6.0.RELEASE
- compile
-
-
- com.oracle.database.jdbc
- ojdbc8
- 21.5.0.0
- compile
-
-
- com.oracle.database.nls
- orai18n
- 19.15.0.0
- compile
-
-
- org.projectlombok
- lombok
- 1.18.36
- provided
-
-
-
diff --git a/blade-ops/blade-admin/.gitignore b/blade-ops/blade-admin/.gitignore
index f364341cd..a70db8f70 100644
--- a/blade-ops/blade-admin/.gitignore
+++ b/blade-ops/blade-admin/.gitignore
@@ -1,9 +1,39 @@
-######################################################################
-# Build Tools
+# maven #
+target
+logs
+!.mvn/wrapper/maven-wrapper.jar
+# gradle
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
-target/
-!.mvn/wrapper/maven-wrapper.jar
\ No newline at end of file
+# windows #
+Thumbs.db
+
+# Mac #
+.DS_Store
+
+# eclipse #
+.settings
+.project
+.classpath
+.log
+*.class
+
+# vscode #
+.vscode
+
+# idea #
+.idea
+*.iml
+
+# Package Files #
+*.jar
+*.war
+*.ear
+/target
+
+# Flattened pom
+.flattened-pom.xml
+/**/.flattened-pom.xml
diff --git a/blade-ops/blade-admin/blade-admin.iml b/blade-ops/blade-admin/blade-admin.iml
deleted file mode 100644
index bce5d49df..000000000
--- a/blade-ops/blade-admin/blade-admin.iml
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blade-ops/blade-admin/target/antrun/build-main.xml b/blade-ops/blade-admin/target/antrun/build-main.xml
deleted file mode 100644
index 42bdf4ea5..000000000
--- a/blade-ops/blade-admin/target/antrun/build-main.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/blade-ops/blade-admin/target/blade-admin.jar.original b/blade-ops/blade-admin/target/blade-admin.jar.original
deleted file mode 100644
index 1838f9454..000000000
Binary files a/blade-ops/blade-admin/target/blade-admin.jar.original and /dev/null differ
diff --git a/blade-ops/blade-admin/target/classes/bootstrap.yml b/blade-ops/blade-admin/target/classes/bootstrap.yml
deleted file mode 100644
index 9e4c3fcdb..000000000
--- a/blade-ops/blade-admin/target/classes/bootstrap.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-server:
- port: 7002
- undertow:
- threads:
- # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
- io: 16
- # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
- worker: 400
- # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
- buffer-size: 1024
- # 是否分配的直接内存
- direct-buffers: true
-
-spring:
- boot:
- admin:
- # 忽略服务名
- discovery:
- ignored-services:
- - consul
- - serverAddr
- # 自定义UI界面
- ui:
- title: BladeX Monitor
- external-views:
- - label: 架构官网
- url: https://bladex.cn/
- order: 1
- iframe: true
- # 用于内网安全,判断 admin proxy
- instance-proxy:
- ignored-headers: "X-Forwarded-For"
- # 自定义登录用户名密码
- security:
- user:
- name: blade
- password: blade
-
-# 监控的相关配置
-monitor:
- ding-talk:
- enabled: false
- # 用于自定义域名,默认会自动填充为 http://ip:port
- link: http://localhost:${server.port}
- # 钉钉配置的令牌
- access-token: xxx
- # 如果采用密钥形式,需要添加,否则需要去掉该参数
- secret:
diff --git a/blade-ops/blade-admin/target/maven-archiver/pom.properties b/blade-ops/blade-admin/target/maven-archiver/pom.properties
deleted file mode 100644
index 3f268ae0f..000000000
--- a/blade-ops/blade-admin/target/maven-archiver/pom.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-#Generated by Maven
-#Fri Nov 07 14:04:09 CST 2025
-groupId=org.springblade
-artifactId=blade-admin
-version=4.6.0.RELEASE
diff --git a/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
deleted file mode 100644
index 5089b2e89..000000000
--- a/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+++ /dev/null
@@ -1,10 +0,0 @@
-org\springblade\admin\dingtalk\DingTalkService.class
-org\springblade\admin\config\DingTalkConfiguration.class
-org\springblade\admin\dingtalk\MonitorProperties$Service.class
-org\springblade\admin\config\AdminConfiguration.class
-org\springblade\admin\security\InternalAuthorizationManager.class
-org\springblade\admin\dingtalk\MonitorProperties.class
-org\springblade\admin\dingtalk\DingTalkNotifier.class
-org\springblade\admin\AdminApplication.class
-org\springblade\admin\config\SecurityConfiguration.class
-org\springblade\admin\dingtalk\MonitorProperties$DingTalk.class
diff --git a/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
deleted file mode 100644
index 9096ba7e1..000000000
--- a/blade-ops/blade-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+++ /dev/null
@@ -1,8 +0,0 @@
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\DingTalkConfiguration.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\DingTalkService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\AdminApplication.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\DingTalkNotifier.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\SecurityConfiguration.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\config\AdminConfiguration.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\dingtalk\MonitorProperties.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-admin\src\main\java\org\springblade\admin\security\InternalAuthorizationManager.java
diff --git a/blade-ops/blade-develop/.flattened-pom.xml b/blade-ops/blade-develop/.flattened-pom.xml
deleted file mode 100644
index efca17590..000000000
--- a/blade-ops/blade-develop/.flattened-pom.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
- 4.0.0
- org.springblade
- blade-develop
- 4.6.0.RELEASE
- blade-develop
-
-
- org.springblade
- blade-core-boot
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-develop
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-swagger
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-excel
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-common
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-dict-api
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-develop-api
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-metrics
- 4.6.0.RELEASE
- compile
-
-
- com.oracle.database.jdbc
- ojdbc8
- 21.5.0.0
- compile
-
-
- com.oracle.database.nls
- orai18n
- 19.15.0.0
- compile
-
-
- org.projectlombok
- lombok
- 1.18.36
- provided
-
-
-
diff --git a/blade-ops/blade-develop/.gitignore b/blade-ops/blade-develop/.gitignore
index f364341cd..a70db8f70 100644
--- a/blade-ops/blade-develop/.gitignore
+++ b/blade-ops/blade-develop/.gitignore
@@ -1,9 +1,39 @@
-######################################################################
-# Build Tools
+# maven #
+target
+logs
+!.mvn/wrapper/maven-wrapper.jar
+# gradle
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
-target/
-!.mvn/wrapper/maven-wrapper.jar
\ No newline at end of file
+# windows #
+Thumbs.db
+
+# Mac #
+.DS_Store
+
+# eclipse #
+.settings
+.project
+.classpath
+.log
+*.class
+
+# vscode #
+.vscode
+
+# idea #
+.idea
+*.iml
+
+# Package Files #
+*.jar
+*.war
+*.ear
+/target
+
+# Flattened pom
+.flattened-pom.xml
+/**/.flattened-pom.xml
diff --git a/blade-ops/blade-develop/blade-develop.iml b/blade-ops/blade-develop/blade-develop.iml
deleted file mode 100644
index 4e060fd8d..000000000
--- a/blade-ops/blade-develop/blade-develop.iml
+++ /dev/null
@@ -1,293 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blade-ops/blade-develop/src/main/java/org/springblade/desk/zzzz/package-info.java b/blade-ops/blade-develop/src/main/java/org/springblade/desk/zzzz/package-info.java
new file mode 100644
index 000000000..897941529
--- /dev/null
+++ b/blade-ops/blade-develop/src/main/java/org/springblade/desk/zzzz/package-info.java
@@ -0,0 +1 @@
+package org.springblade.desk.zzzz;
\ No newline at end of file
diff --git a/blade-ops/blade-develop/src/test/java/org/springblade/test/CodeGeneratorVer2.java b/blade-ops/blade-develop/src/test/java/org/springblade/test/CodeGeneratorVer2.java
new file mode 100644
index 000000000..f5fa22c9b
--- /dev/null
+++ b/blade-ops/blade-develop/src/test/java/org/springblade/test/CodeGeneratorVer2.java
@@ -0,0 +1,105 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ *
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ *
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ *
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ *
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ *
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ *
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.test;
+
+
+import org.springblade.develop.constant.DevelopConstant;
+import org.springblade.develop.support.BladeFastCodeGenerator;
+
+/**
+ * .ver2
+ */
+public class CodeGeneratorVer2 {
+
+ /**
+ * 代码生成的系统类型(Boot/Cloud)
+ */
+ public static String SYSTEM_NAME = DevelopConstant.CLOUD_NAME;
+ /**
+ * 代码生成的模块名
+ */
+ public static String CODE_NAME = "";
+ /**
+ * 代码所在服务名
+ */
+ public static String SERVICE_NAME = "blade-desk";
+ /**
+ * 代码生成的包名
+ *
+ * basic
+ * quality
+ */
+ public static String PACKAGE_NAME = "org.springblade.desk.basic";
+ /**
+ * 需要去掉的表前缀
+ * BA
+ * QA
+ */
+ public static String[] TABLE_PREFIX = {"BLADE_", "BA_", "QA_"};
+ /**
+ * 需要生成的表名(两者只能取其一)
+ */
+ public static String[] INCLUDE_TABLES = {"BA_FORMULA", "BA_SHIFT", "BA_TEAM", "BA_WORK_TANK", "BA_WORKSTATION"};
+ /**
+ * 需要排除的表名(两者只能取其一)
+ */
+ public static String[] EXCLUDE_TABLES = {};
+ /**
+ * 是否包含基础业务字段
+ */
+ public static Boolean HAS_SUPER_ENTITY = Boolean.TRUE;
+ /**
+ * 基础业务字段
+ */
+ public static String[] SUPER_ENTITY_COLUMNS =
+ {
+ "id",
+ "create_time",
+ "create_user",
+ "create_dept",
+ "update_time",
+ "update_user",
+ "status",
+ "is_deleted"
+ };
+
+ /**
+ * RUN THIS
+ */
+ public static void main(String[] args) {
+ BladeFastCodeGenerator generator = new BladeFastCodeGenerator();
+ generator.setSystemName(SYSTEM_NAME);
+ generator.setCodeName(CODE_NAME);
+ generator.setServiceName(SERVICE_NAME);
+ generator.setPackageName(PACKAGE_NAME);
+ generator.setTablePrefix(TABLE_PREFIX);
+ generator.setIncludeTables(INCLUDE_TABLES);
+ generator.setExcludeTables(EXCLUDE_TABLES);
+ generator.setHasSuperEntity(HAS_SUPER_ENTITY);
+ generator.setSuperEntityColumns(SUPER_ENTITY_COLUMNS);
+ generator.run();
+ }
+}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/controller.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/controller.java.btl
index f7b1595ce..e2fbec357 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/controller.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/controller.java.btl
@@ -1,27 +1,5 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
package ${package.Controller};
@@ -41,13 +19,13 @@ import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
+import ${packageName!}.pojo.entity.${entityKey!};
+import ${packageName!}.pojo.vo.gen.${entityKey!}GenVO;
+import ${packageName!}.excel.gen.${entityKey!}GenExcel;
#if(hasWrapper) {
-import ${packageName!}.wrapper.${entityKey!}Wrapper;
+import ${packageName!}.wrapper.gen.${entityKey!}GenWrapper;
#}
-import ${packageName!}.service.${table.serviceName!};
+import ${packageName!}.service.gen.${table.serviceName!};
#if(isNotEmpty(superControllerClassPackage)){
import ${superControllerClassPackage!};
#}
@@ -69,7 +47,7 @@ import jakarta.servlet.http.HttpServletResponse;
#if(hasServiceName) {
@RequestMapping("${serviceName!}/${entityKeyPath!}")
#}else{
-@RequestMapping("/${entityKeyPath!}")
+@RequestMapping("/${entityKey!}")
#}
@Tag(name = "${table.comment!}", description = "${table.comment!}接口")
#if(isNotEmpty(superControllerClass)){
@@ -79,7 +57,7 @@ public class ${table.controllerName!} extends ${superControllerClass!} {
public class ${table.controllerName!} {
#}
- private final ${table.serviceName!} ${entityKeyPath!}Service;
+ private final ${table.serviceName!} ${entityKeyPath!}GenService;
#if(hasWrapper){
/**
@@ -87,10 +65,10 @@ public class ${table.controllerName!} {
*/
@GetMapping("/detail")
@ApiOperationSupport(order = 1)
- @Operation(summary = "详情", description = "传入${entityKeyPath!}")
- public R<${entityKey!}VO> detail(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
- return R.data(${entityKey!}Wrapper.build().entityVO(detail));
+ @Operation(summary = "详情", description = "传入${entityKey!}")
+ public R<${entityKey!}GenVO> detail(${entityKey!} ${entityKeyPath!}) {
+ ${entityKey!} detail = ${entityKeyPath!}GenService.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
+ return R.data(${entityKey!}GenWrapper.build().entityVO(detail));
}
/**
@@ -98,10 +76,10 @@ public class ${table.controllerName!} {
*/
@GetMapping("/list")
@ApiOperationSupport(order = 2)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
- public R> list(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class));
- return R.data(${entityKey!}Wrapper.build().pageVO(pages));
+ @Operation(summary = "分页", description = "传入${entityKey!}")
+ public R> list(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, Query query) {
+ IPage<${entityKey!}> pages = ${entityKeyPath!}GenService.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}.class));
+ return R.data(${entityKey!}GenWrapper.build().pageVO(pages));
}
#}else{
@@ -110,9 +88,9 @@ public class ${table.controllerName!} {
*/
@GetMapping("/detail")
@ApiOperationSupport(order = 1)
- @Operation(summary = "详情", description = "传入${entityKeyPath!}")
- public R<${entityKey!}Entity> detail(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
+ @Operation(summary = "详情", description = "传入${entityKey!}")
+ public R<${entityKey!}> detail(${entityKey!} ${entityKeyPath!}) {
+ ${entityKey!} detail = ${entityKeyPath!}GenService.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
return R.data(detail);
}
@@ -121,9 +99,9 @@ public class ${table.controllerName!} {
*/
@GetMapping("/list")
@ApiOperationSupport(order = 2)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
+ @Operation(summary = "分页", description = "传入${entityKey!}")
public R> list(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class));
+ IPage<${entityKey!}Entity> pages = ${entityKeyPath!}GenService.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class));
return R.data(pages);
}
@@ -134,9 +112,9 @@ public class ${table.controllerName!} {
*/
@GetMapping("/page")
@ApiOperationSupport(order = 3)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
- public R> page(${entityKey!}VO ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}VO> pages = ${entityKeyPath!}Service.select${entityKey!}Page(Condition.getPage(query), ${entityKeyPath!});
+ @Operation(summary = "分页", description = "传入${entityKey!}")
+ public R> page(${entityKey!}GenVO ${entityKeyPath!}, Query query) {
+ IPage<${entityKey!}GenVO> pages = ${entityKeyPath!}GenService.select${entityKey!}Page(Condition.getPage(query), ${entityKeyPath!});
return R.data(pages);
}
@@ -145,9 +123,9 @@ public class ${table.controllerName!} {
*/
@PostMapping("/save")
@ApiOperationSupport(order = 4)
- @Operation(summary = "新增", description = "传入${entityKeyPath!}")
- public R save(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.save(${entityKeyPath!}));
+ @Operation(summary = "新增", description = "传入${entityKey!}")
+ public R save(@Valid @RequestBody ${entityKey!} ${entityKeyPath!}) {
+ return R.status(${entityKeyPath!}GenService.save(${entityKeyPath!}));
}
/**
@@ -155,9 +133,9 @@ public class ${table.controllerName!} {
*/
@PostMapping("/update")
@ApiOperationSupport(order = 5)
- @Operation(summary = "修改", description = "传入${entityKeyPath!}")
- public R update(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.updateById(${entityKeyPath!}));
+ @Operation(summary = "修改", description = "传入${entityKey!}")
+ public R update(@Valid @RequestBody ${entityKey!} ${entityKeyPath!}) {
+ return R.status(${entityKeyPath!}GenService.updateById(${entityKeyPath!}));
}
/**
@@ -165,9 +143,9 @@ public class ${table.controllerName!} {
*/
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
- @Operation(summary = "新增或修改", description = "传入${entityKeyPath!}")
- public R submit(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.saveOrUpdate(${entityKeyPath!}));
+ @Operation(summary = "新增或修改", description = "传入${entityKey!}")
+ public R submit(@Valid @RequestBody ${entityKey!} ${entityKeyPath!}) {
+ return R.status(${entityKeyPath!}GenService.saveOrUpdate(${entityKeyPath!}));
}
#if(hasSuperEntity){
@@ -178,7 +156,7 @@ public class ${table.controllerName!} {
@ApiOperationSupport(order = 7)
@Operation(summary = "逻辑删除", description = "传入ids")
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
- return R.status(${entityKeyPath!}Service.deleteLogic(Func.toLongList(ids)));
+ return R.status(${entityKeyPath!}GenService.deleteLogic(Func.toLongList(ids)));
}
#}else{
/**
@@ -196,17 +174,16 @@ public class ${table.controllerName!} {
* 导出数据
*/
@IsAdmin
- @GetMapping("/export-${entityKeyPath!}")
+ @GetMapping("/export-excel")
@ApiOperationSupport(order = 8)
- @Operation(summary = "导出数据", description = "传入${entityKeyPath!}")
+ @Operation(summary = "导出数据", description = "传入${entityKey!}")
public void export${entityKey!}(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, BladeUser bladeUser, HttpServletResponse response) {
- QueryWrapper<${entityKey!}Entity> queryWrapper = Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class);
+ QueryWrapper<${entityKey!}> queryWrapper = Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}.class);
//if (!AuthUtil.isAdministrator()) {
// queryWrapper.lambda().eq(${entity!}::getTenantId, bladeUser.getTenantId());
//}
//queryWrapper.lambda().eq(${entityKey!}Entity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
- List<${entityKey!}Excel> list = ${entityKeyPath!}Service.export${entityKey!}(queryWrapper);
- ExcelUtil.export(response, "${table.comment!}数据" + DateUtil.time(), "${table.comment!}数据表", list, ${entityKey!}Excel.class);
+ List<${entityKey!}GenExcel> list = ${entityKeyPath!}GenService.export${entityKey!}(queryWrapper);
+ ExcelUtil.export(response, "${table.comment!}数据" + DateUtil.time(), "${table.comment!}数据表", list, ${entityKey!}GenExcel.class);
}
-
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entity.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entity.java.btl
index 893dc7df9..ca356feab 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entity.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entity.java.btl
@@ -1,27 +1,5 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
package ${package.Entity!};
@@ -55,15 +33,15 @@ import java.io.Serial;
*/
@Data
@TableName("${table.name!}")
-@Schema(description = "${entity!}对象")
+@Schema(description = "${entityKey!} Entity对象")
#if(hasSuperEntity){
@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}Entity extends TenantEntity {
+public class ${entityKey!} extends BaseEntity {
@Serial
private static final long serialVersionUID = 1L;
#}else{
-public class ${entityKey!}Entity implements Serializable {
+public class ${entityKey!} implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@@ -77,6 +55,13 @@ public class ${entityKey!}Entity implements Serializable {
private Long id;
#}
+#for(x in table.fields) {
+ /**
+ * ${x.comment!}
+ */
+ public static final String COL_${x.columnName!} = "${x.columnName!}";
+#}
+
#for(x in table.fields) {
#if(hasSuperEntity){
#if(x.propertyName!="id"&&x.propertyName!="createUser"&&x.propertyName!="createDept"&&x.propertyName!="createTime"&&x.propertyName!="updateUser"&&x.propertyName!="updateTime"&&x.propertyName!="status"&&x.propertyName!="isDeleted"&&x.propertyName!="tenantId"){
@@ -96,5 +81,4 @@ public class ${entityKey!}Entity implements Serializable {
#}
#}
#}
-
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityDTO.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityDTO.java.btl
index 5a56c0dc8..3a6c69f1d 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityDTO.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityDTO.java.btl
@@ -1,31 +1,9 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
-package ${strutil.replace(package.Entity,"entity","dto")};
+package ${strutil.replace(package.Entity,"entity","dto.gen")};
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
+import ${packageName!}.pojo.entity.${entityKey!};
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
@@ -38,7 +16,7 @@ import java.io.Serial;
*/
@Data
@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}DTO extends ${entityKey!}Entity {
+public class ${entityKey!}GenDTO extends ${entityKey!} {
@Serial
private static final long serialVersionUID = 1L;
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityExcel.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityExcel.java.btl
index db8f1ccfa..b05539b39 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityExcel.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityExcel.java.btl
@@ -1,29 +1,7 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
-package ${strutil.replace(package.Entity,"pojo.entity","excel")};
+package ${strutil.replace(package.Entity,"pojo.entity","excel.gen")};
import lombok.Data;
@@ -50,7 +28,7 @@ import java.io.Serial;
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
-public class ${entityKey!}Excel implements Serializable {
+public class ${entityKey!}GenExcel implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@@ -65,5 +43,4 @@ public class ${entityKey!}Excel implements Serializable {
private ${x.propertyType!} ${x.propertyName!};
#}
#}
-
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityVO.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityVO.java.btl
index b9b598166..3082536e4 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityVO.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/entityVO.java.btl
@@ -1,31 +1,9 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
-package ${strutil.replace(package.Entity,"entity","vo")};
+package ${strutil.replace(package.Entity,"entity","vo.gen")};
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
+import ${packageName!}.pojo.entity.${entityKey!};
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serial;
@@ -38,7 +16,7 @@ import java.io.Serial;
*/
@Data
@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}VO extends ${entityKey!}Entity {
+public class ${entityKey!}GenVO extends ${entityKey!} {
@Serial
private static final long serialVersionUID = 1L;
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.java.btl
index d49c3d4a7..d7050ddc5 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.java.btl
@@ -1,33 +1,11 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
package ${package.Mapper!};
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
+import ${packageName!}.pojo.entity.${entityKey!};
+import ${packageName!}.pojo.vo.gen.${entityKey!}GenVO;
+import ${packageName!}.excel.gen.${entityKey!}GenExcel;
import ${superMapperClassPackage!};
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -40,7 +18,7 @@ import java.util.List;
* @author ${author!}
* @since ${date!}
*/
-public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}Entity> {
+public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}> {
/**
* 自定义分页
@@ -49,7 +27,7 @@ public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}
* @param ${entityKeyPath!} 查询参数
* @return List<${entityKey!}VO>
*/
- List<${entityKey!}VO> select${entityKey!}Page(IPage page, ${entityKey!}VO ${entityKeyPath!});
+ List<${entityKey!}GenVO> select${entityKey!}Page(IPage page, ${entityKey!}GenVO ${entityKeyPath!});
/**
* 获取导出数据
@@ -57,6 +35,5 @@ public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}
* @param queryWrapper 查询条件
* @return List<${entityKey!}Excel>
*/
- List<${entityKey!}Excel> export${entityKey!}(@Param("ew") Wrapper<${entityKey!}Entity> queryWrapper);
-
+ List<${entityKey!}GenExcel> export${entityKey!}(@Param("ew") Wrapper<${entityKey!}> queryWrapper);
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.xml.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.xml.btl
index ea15f4971..fbbfc442b 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.xml.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/mapper.xml.btl
@@ -7,17 +7,17 @@
#}
-
+
#for(x in table.fields) {
#}
- select * from ${table.name} where is_deleted = 0
+ SELECT * FROM ${table.name} WHERE is_deleted = 0
-
+
SELECT * FROM ${table.name!} \${ew.customSqlSegment}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/service.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/service.java.btl
index 738d086f0..8b740fd23 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/service.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/service.java.btl
@@ -1,34 +1,12 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
package ${package.Service!};
import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
+import ${packageName!}.pojo.entity.${entityKey!};
+import ${packageName!}.pojo.vo.gen.${entityKey!}GenVO;
+import ${packageName!}.excel.gen.${entityKey!}GenExcel;
import com.baomidou.mybatisplus.core.metadata.IPage;
#if(hasSuperEntity){
import ${superServiceClassPackage!};
@@ -55,7 +33,7 @@ public interface ${table.serviceName!} extends IService<${entity!}> {
* @param ${entityKeyPath!} 查询参数
* @return IPage<${entityKey!}VO>
*/
- IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!});
+ IPage<${entityKey!}GenVO> select${entityKey!}Page(IPage<${entityKey!}GenVO> page, ${entityKey!}GenVO ${entityKeyPath!});
/**
* 导出数据
@@ -63,6 +41,5 @@ public interface ${table.serviceName!} extends IService<${entity!}> {
* @param queryWrapper 查询条件
* @return List<${entityKey!}Excel>
*/
- List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper);
-
+ List<${entityKey!}GenExcel> export${entityKey!}(Wrapper<${entityKey!}> queryWrapper);
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/serviceImpl.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/serviceImpl.java.btl
index a5636091a..0ec02812b 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/serviceImpl.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/serviceImpl.java.btl
@@ -1,35 +1,13 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
package ${package.ServiceImpl!};
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
-import ${packageName!}.mapper.${table.mapperName!};
-import ${packageName!}.service.${table.serviceName!};
+import ${packageName!}.pojo.entity.${entityKey!};
+import ${packageName!}.pojo.vo.gen.${entityKey!}GenVO;
+import ${packageName!}.excel.gen.${entityKey!}GenExcel;
+import ${packageName!}.mapper.gen.${table.mapperName!};
+import ${packageName!}.service.gen.${table.serviceName!};
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -54,17 +32,16 @@ public class ${table.serviceImplName!} extends ServiceImpl<${table.mapperName!},
#}
@Override
- public IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!}) {
+ public IPage<${entityKey!}GenVO> select${entityKey!}Page(IPage<${entityKey!}GenVO> page, ${entityKey!}GenVO ${entityKeyPath!}) {
return page.setRecords(baseMapper.select${entityKey!}Page(page, ${entityKeyPath!}));
}
@Override
- public List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper) {
- List<${entityKey!}Excel> ${entityKeyPath!}List = baseMapper.export${entityKey!}(queryWrapper);
+ public List<${entityKey!}GenExcel> export${entityKey!}(Wrapper<${entityKey!}> queryWrapper) {
+ List<${entityKey!}GenExcel> ${entityKeyPath!}List = baseMapper.export${entityKey!}(queryWrapper);
//${entityKeyPath!}List.forEach(${entityKeyPath!} -> {
// ${entityKeyPath!}.setTypeName(DictCache.getValue(DictEnum.YES_NO, ${entity!}.getType()));
//});
return ${entityKeyPath!}List;
}
-
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/api-fast/wrapper.java.btl b/blade-ops/blade-develop/src/test/resources/templates/api-fast/wrapper.java.btl
index 83d3171c2..6364f4c08 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/api-fast/wrapper.java.btl
+++ b/blade-ops/blade-develop/src/test/resources/templates/api-fast/wrapper.java.btl
@@ -1,34 +1,12 @@
/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
+ * Author: Tom Shuo
*/
-package ${strutil.replace(package.Entity,"pojo.entity","wrapper")};
+package ${strutil.replace(package.Entity,"pojo.entity","wrapper.gen")};
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
+import ${packageName!}.pojo.entity.${entityKey!};
+import ${packageName!}.pojo.vo.gen.${entityKey!}GenVO;
import java.util.Objects;
/**
@@ -37,15 +15,15 @@ import java.util.Objects;
* @author ${author!}
* @since ${date!}
*/
-public class ${entityKey!}Wrapper extends BaseEntityWrapper<${entityKey!}Entity, ${entityKey!}VO> {
+public class ${entityKey!}GenWrapper extends BaseEntityWrapper<${entityKey!}, ${entityKey!}GenVO> {
- public static ${entityKey!}Wrapper build() {
- return new ${entityKey!}Wrapper();
+ public static ${entityKey!}GenWrapper build() {
+ return new ${entityKey!}GenWrapper();
}
@Override
- public ${entityKey!}VO entityVO(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}VO ${entityKeyPath!}VO = Objects.requireNonNull(BeanUtil.copyProperties(${entityKeyPath!}, ${entityKey!}VO.class));
+ public ${entityKey!}GenVO entityVO(${entityKey!} ${entityKeyPath!}) {
+ ${entityKey!}GenVO ${entityKeyPath!}VO = Objects.requireNonNull(BeanUtil.copyProperties(${entityKeyPath!}, ${entityKey!}GenVO.class));
//User createUser = UserCache.getUser(${entityKeyPath!}.getCreateUser());
//User updateUser = UserCache.getUser(${entityKeyPath!}.getUpdateUser());
@@ -54,5 +32,4 @@ public class ${entityKey!}Wrapper extends BaseEntityWrapper<${entityKey!}Entity,
return ${entityKeyPath!}VO;
}
-
}
diff --git a/blade-ops/blade-develop/src/test/resources/templates/code.properties b/blade-ops/blade-develop/src/test/resources/templates/code.properties
index 50420cb68..32cf23a53 100644
--- a/blade-ops/blade-develop/src/test/resources/templates/code.properties
+++ b/blade-ops/blade-develop/src/test/resources/templates/code.properties
@@ -1,5 +1,12 @@
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
-spring.datasource.username=root
-spring.datasource.password=root
-author=BladeX
+#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+#spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
+#spring.datasource.username=root
+#spring.datasource.password=root
+#author=BladeX
+
+# QA
+spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
+spring.datasource.url=jdbc:oracle:thin:@192.168.0.221:1521/orcl
+spring.datasource.username=JONHON_MES
+spring.datasource.password=oracle123456
+author=Tom Shuo
\ No newline at end of file
diff --git a/blade-ops/blade-develop/target/antrun/build-main.xml b/blade-ops/blade-develop/target/antrun/build-main.xml
deleted file mode 100644
index 9cf5e8245..000000000
--- a/blade-ops/blade-develop/target/antrun/build-main.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/blade-ops/blade-develop/target/blade-develop.jar.original b/blade-ops/blade-develop/target/blade-develop.jar.original
deleted file mode 100644
index 3c32e3fba..000000000
Binary files a/blade-ops/blade-develop/target/blade-develop.jar.original and /dev/null differ
diff --git a/blade-ops/blade-develop/target/classes/application-dev.yml b/blade-ops/blade-develop/target/classes/application-dev.yml
deleted file mode 100644
index e81d9877d..000000000
--- a/blade-ops/blade-develop/target/classes/application-dev.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-#服务器端口
-server:
- port: 7007
-
-#数据源配置
-spring:
- datasource:
- url: ${blade.datasource.dev.url}
- username: ${blade.datasource.dev.username}
- password: ${blade.datasource.dev.password}
diff --git a/blade-ops/blade-develop/target/classes/application-prod.yml b/blade-ops/blade-develop/target/classes/application-prod.yml
deleted file mode 100644
index ff20d1017..000000000
--- a/blade-ops/blade-develop/target/classes/application-prod.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-#服务器端口
-server:
- port: 7007
-
-#数据源配置
-spring:
- datasource:
- url: ${blade.datasource.prod.url}
- username: ${blade.datasource.prod.username}
- password: ${blade.datasource.prod.password}
-
diff --git a/blade-ops/blade-develop/target/classes/application-test.yml b/blade-ops/blade-develop/target/classes/application-test.yml
deleted file mode 100644
index e8a77d135..000000000
--- a/blade-ops/blade-develop/target/classes/application-test.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-#服务器端口
-server:
- port: 7007
-
-#数据源配置
-spring:
- datasource:
- url: ${blade.datasource.test.url}
- username: ${blade.datasource.test.username}
- password: ${blade.datasource.test.password}
diff --git a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeMapper.xml b/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeMapper.xml
deleted file mode 100644
index febe6b433..000000000
--- a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeMapper.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeSettingMapper.xml b/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeSettingMapper.xml
deleted file mode 100644
index b0fe4f864..000000000
--- a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/CodeSettingMapper.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/DatasourceMapper.xml b/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/DatasourceMapper.xml
deleted file mode 100644
index bb8400c05..000000000
--- a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/DatasourceMapper.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelMapper.xml b/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelMapper.xml
deleted file mode 100644
index a8c89339c..000000000
--- a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelMapper.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- select * from blade_model where is_deleted = 0
-
-
-
diff --git a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelPrototypeMapper.xml b/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelPrototypeMapper.xml
deleted file mode 100644
index fe8d216f8..000000000
--- a/blade-ops/blade-develop/target/classes/org/springblade/develop/mapper/ModelPrototypeMapper.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- select * from blade_model_prototype where is_deleted = 0
-
-
-
diff --git a/blade-ops/blade-develop/target/classes/templates/code.properties b/blade-ops/blade-develop/target/classes/templates/code.properties
deleted file mode 100644
index 50420cb68..000000000
--- a/blade-ops/blade-develop/target/classes/templates/code.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
-spring.datasource.username=root
-spring.datasource.password=root
-author=BladeX
diff --git a/blade-ops/blade-develop/target/maven-archiver/pom.properties b/blade-ops/blade-develop/target/maven-archiver/pom.properties
deleted file mode 100644
index 3b78db514..000000000
--- a/blade-ops/blade-develop/target/maven-archiver/pom.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-#Generated by Maven
-#Fri Nov 07 14:04:28 CST 2025
-groupId=org.springblade
-artifactId=blade-develop
-version=4.6.0.RELEASE
diff --git a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
deleted file mode 100644
index 3aa2e2124..000000000
--- a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+++ /dev/null
@@ -1,24 +0,0 @@
-org\springblade\develop\DevelopApplication.class
-org\springblade\develop\service\impl\DatasourceServiceImpl.class
-org\springblade\develop\service\IGenerateService.class
-org\springblade\develop\service\IModelPrototypeService.class
-org\springblade\develop\controller\DatasourceController.class
-org\springblade\develop\controller\CodeSettingController.class
-org\springblade\develop\service\impl\CodeSettingServiceImpl.class
-org\springblade\develop\controller\ModelController.class
-org\springblade\develop\feign\DatasourceClient.class
-org\springblade\develop\service\ICodeSettingService.class
-org\springblade\develop\service\impl\GenerateServiceImpl.class
-org\springblade\develop\controller\CodeController.class
-org\springblade\develop\mapper\CodeSettingMapper.class
-org\springblade\develop\controller\ModelPrototypeController.class
-org\springblade\develop\service\IDatasourceService.class
-org\springblade\develop\service\impl\CodeServiceImpl.class
-org\springblade\develop\mapper\ModelMapper.class
-org\springblade\develop\mapper\DatasourceMapper.class
-org\springblade\develop\service\impl\ModelPrototypeServiceImpl.class
-org\springblade\develop\service\impl\ModelServiceImpl.class
-org\springblade\develop\mapper\ModelPrototypeMapper.class
-org\springblade\develop\service\ICodeService.class
-org\springblade\develop\service\IModelService.class
-org\springblade\develop\mapper\CodeMapper.class
diff --git a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
deleted file mode 100644
index ff499203f..000000000
--- a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+++ /dev/null
@@ -1,24 +0,0 @@
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\GenerateServiceImpl.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IModelService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\ICodeService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\DatasourceMapper.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\DatasourceController.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IGenerateService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\CodeSettingMapper.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\ModelServiceImpl.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\CodeController.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\feign\DatasourceClient.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IDatasourceService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\CodeSettingServiceImpl.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\CodeServiceImpl.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\IModelPrototypeService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\CodeMapper.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\ModelPrototypeController.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\ModelMapper.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\ICodeSettingService.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\ModelPrototypeServiceImpl.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\CodeSettingController.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\ModelController.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\DevelopApplication.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\mapper\ModelPrototypeMapper.java
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\main\java\org\springblade\develop\service\impl\DatasourceServiceImpl.java
diff --git a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
deleted file mode 100644
index 085f4699c..000000000
--- a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
+++ /dev/null
@@ -1 +0,0 @@
-org\springblade\test\CodeGenerator.class
diff --git a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
deleted file mode 100644
index abf5b412a..000000000
--- a/blade-ops/blade-develop/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
+++ /dev/null
@@ -1 +0,0 @@
-D:\ideaworkspeate\jonhon-mes-svr\blade-ops\blade-develop\src\test\java\org\springblade\test\CodeGenerator.java
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/controller.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/controller.java.btl
deleted file mode 100644
index f7b1595ce..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/controller.java.btl
+++ /dev/null
@@ -1,212 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${package.Controller};
-
-import io.swagger.v3.oas.annotations.tags.Tag;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.Parameter;
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import lombok.AllArgsConstructor;
-import jakarta.validation.Valid;
-
-import org.springblade.core.secure.BladeUser;
-import org.springblade.core.secure.annotation.IsAdmin;
-import org.springblade.core.mp.support.Condition;
-import org.springblade.core.mp.support.Query;
-import org.springblade.core.tool.api.R;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.web.bind.annotation.*;
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
-#if(hasWrapper) {
-import ${packageName!}.wrapper.${entityKey!}Wrapper;
-#}
-import ${packageName!}.service.${table.serviceName!};
-#if(isNotEmpty(superControllerClassPackage)){
-import ${superControllerClassPackage!};
-#}
-import org.springblade.core.tool.utils.DateUtil;
-import org.springblade.core.excel.util.ExcelUtil;
-import org.springblade.core.tool.constant.BladeConstant;
-import java.util.Map;
-import java.util.List;
-import jakarta.servlet.http.HttpServletResponse;
-
-/**
- * ${table.comment!} 控制器
- *
- * @author ${author!}
- * @since ${date!}
- */
-@RestController
-@AllArgsConstructor
-#if(hasServiceName) {
-@RequestMapping("${serviceName!}/${entityKeyPath!}")
-#}else{
-@RequestMapping("/${entityKeyPath!}")
-#}
-@Tag(name = "${table.comment!}", description = "${table.comment!}接口")
-#if(isNotEmpty(superControllerClass)){
-public class ${table.controllerName!} extends ${superControllerClass!} {
-#}
-#else{
-public class ${table.controllerName!} {
-#}
-
- private final ${table.serviceName!} ${entityKeyPath!}Service;
-
-#if(hasWrapper){
- /**
- * ${table.comment!} 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @Operation(summary = "详情", description = "传入${entityKeyPath!}")
- public R<${entityKey!}VO> detail(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
- return R.data(${entityKey!}Wrapper.build().entityVO(detail));
- }
-
- /**
- * ${table.comment!} 分页
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
- public R> list(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class));
- return R.data(${entityKey!}Wrapper.build().pageVO(pages));
- }
-
-#}else{
- /**
- * ${table.comment!} 详情
- */
- @GetMapping("/detail")
- @ApiOperationSupport(order = 1)
- @Operation(summary = "详情", description = "传入${entityKeyPath!}")
- public R<${entityKey!}Entity> detail(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}Entity detail = ${entityKeyPath!}Service.getOne(Condition.getQueryWrapper(${entityKeyPath!}));
- return R.data(detail);
- }
-
- /**
- * ${table.comment!} 分页
- */
- @GetMapping("/list")
- @ApiOperationSupport(order = 2)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
- public R> list(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}Entity> pages = ${entityKeyPath!}Service.page(Condition.getPage(query), Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class));
- return R.data(pages);
- }
-
-#}
-
- /**
- * ${table.comment!} 自定义分页
- */
- @GetMapping("/page")
- @ApiOperationSupport(order = 3)
- @Operation(summary = "分页", description = "传入${entityKeyPath!}")
- public R> page(${entityKey!}VO ${entityKeyPath!}, Query query) {
- IPage<${entityKey!}VO> pages = ${entityKeyPath!}Service.select${entityKey!}Page(Condition.getPage(query), ${entityKeyPath!});
- return R.data(pages);
- }
-
- /**
- * ${table.comment!} 新增
- */
- @PostMapping("/save")
- @ApiOperationSupport(order = 4)
- @Operation(summary = "新增", description = "传入${entityKeyPath!}")
- public R save(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.save(${entityKeyPath!}));
- }
-
- /**
- * ${table.comment!} 修改
- */
- @PostMapping("/update")
- @ApiOperationSupport(order = 5)
- @Operation(summary = "修改", description = "传入${entityKeyPath!}")
- public R update(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.updateById(${entityKeyPath!}));
- }
-
- /**
- * ${table.comment!} 新增或修改
- */
- @PostMapping("/submit")
- @ApiOperationSupport(order = 6)
- @Operation(summary = "新增或修改", description = "传入${entityKeyPath!}")
- public R submit(@Valid @RequestBody ${entityKey!}Entity ${entityKeyPath!}) {
- return R.status(${entityKeyPath!}Service.saveOrUpdate(${entityKeyPath!}));
- }
-
-#if(hasSuperEntity){
- /**
- * ${table.comment!} 删除
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @Operation(summary = "逻辑删除", description = "传入ids")
- public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
- return R.status(${entityKeyPath!}Service.deleteLogic(Func.toLongList(ids)));
- }
-#}else{
- /**
- * ${table.comment!} 删除
- */
- @PostMapping("/remove")
- @ApiOperationSupport(order = 7)
- @Operation(summary = "删除", description = "传入ids")
- public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
- return R.status(${entityKeyPath!}Service.removeByIds(Func.toLongList(ids)));
- }
-#}
-
- /**
- * 导出数据
- */
- @IsAdmin
- @GetMapping("/export-${entityKeyPath!}")
- @ApiOperationSupport(order = 8)
- @Operation(summary = "导出数据", description = "传入${entityKeyPath!}")
- public void export${entityKey!}(@Parameter(hidden = true) @RequestParam Map ${entityKeyPath!}, BladeUser bladeUser, HttpServletResponse response) {
- QueryWrapper<${entityKey!}Entity> queryWrapper = Condition.getQueryWrapper(${entityKeyPath!}, ${entityKey!}Entity.class);
- //if (!AuthUtil.isAdministrator()) {
- // queryWrapper.lambda().eq(${entity!}::getTenantId, bladeUser.getTenantId());
- //}
- //queryWrapper.lambda().eq(${entityKey!}Entity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
- List<${entityKey!}Excel> list = ${entityKeyPath!}Service.export${entityKey!}(queryWrapper);
- ExcelUtil.export(response, "${table.comment!}数据" + DateUtil.time(), "${table.comment!}数据表", list, ${entityKey!}Excel.class);
- }
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entity.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/entity.java.btl
deleted file mode 100644
index 893dc7df9..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entity.java.btl
+++ /dev/null
@@ -1,100 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${package.Entity!};
-
-import lombok.Data;
-import io.swagger.v3.oas.annotations.media.Schema;
-#for(x in table.importPackages){
-#if(isNotEmpty(x)){
-#if(hasSuperEntity&&!strutil.contain(x,"Serializable")){
-import ${x!};
-#}
-#if(!hasSuperEntity&&!strutil.contain(x,"TenantEntity")){
-import ${x!};
-#}
-#}
-#}
-#if(hasSuperEntity){
-import lombok.EqualsAndHashCode;
-#}else{
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
-#}
-import java.io.Serial;
-
-/**
- * ${table.comment!} 实体类
- *
- * @author ${author!}
- * @since ${date!}
- */
-@Data
-@TableName("${table.name!}")
-@Schema(description = "${entity!}对象")
-#if(hasSuperEntity){
-@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}Entity extends TenantEntity {
-
- @Serial
- private static final long serialVersionUID = 1L;
-#}else{
-public class ${entityKey!}Entity implements Serializable {
-
- @Serial
- private static final long serialVersionUID = 1L;
-
- /**
- * 主键
- */
- @JsonSerialize(using = ToStringSerializer.class)
- @Schema(description = "主键")
- @TableId(value = "id", type = IdType.ASSIGN_ID)
- private Long id;
-#}
-
-#for(x in table.fields) {
- #if(hasSuperEntity){
- #if(x.propertyName!="id"&&x.propertyName!="createUser"&&x.propertyName!="createDept"&&x.propertyName!="createTime"&&x.propertyName!="updateUser"&&x.propertyName!="updateTime"&&x.propertyName!="status"&&x.propertyName!="isDeleted"&&x.propertyName!="tenantId"){
- /**
- * ${x.comment!}
- */
- @Schema(description = "${x.comment!}")
- private ${x.propertyType!} ${x.propertyName!};
- #}
- #}else{
- #if(x.propertyName!="id"){
- /**
- * ${x.comment!}
- */
- @Schema(description = "${x.comment!}")
- private ${x.propertyType!} ${x.propertyName!};
- #}
- #}
-#}
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityDTO.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityDTO.java.btl
deleted file mode 100644
index 5a56c0dc8..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityDTO.java.btl
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${strutil.replace(package.Entity,"entity","dto")};
-
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import java.io.Serial;
-
-/**
- * ${table.comment!} 数据传输对象实体类
- *
- * @author ${author!}
- * @since ${date!}
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}DTO extends ${entityKey!}Entity {
- @Serial
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityExcel.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityExcel.java.btl
deleted file mode 100644
index db8f1ccfa..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityExcel.java.btl
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${strutil.replace(package.Entity,"pojo.entity","excel")};
-
-
-import lombok.Data;
-
-#for(x in table.importPackages){
-#if(isNotEmpty(x)&&!strutil.contain(x,"TableName")&&!strutil.contain(x,"TenantEntity")){
-import ${x!};
-#}
-#}
-import com.alibaba.excel.annotation.ExcelProperty;
-import com.alibaba.excel.annotation.write.style.ColumnWidth;
-import com.alibaba.excel.annotation.write.style.ContentRowHeight;
-import com.alibaba.excel.annotation.write.style.HeadRowHeight;
-import java.io.Serial;
-
-
-/**
- * ${table.comment!} Excel实体类
- *
- * @author ${author!}
- * @since ${date!}
- */
-@Data
-@ColumnWidth(25)
-@HeadRowHeight(20)
-@ContentRowHeight(18)
-public class ${entityKey!}Excel implements Serializable {
-
- @Serial
- private static final long serialVersionUID = 1L;
-
-#for(x in table.fields) {
- #if(x.propertyName!="createUser"&&x.propertyName!="createDept"&&x.propertyName!="createTime"&&x.propertyName!="updateUser"&&x.propertyName!="updateTime"){
- /**
- * ${x.comment!}
- */
- @ColumnWidth(20)
- @ExcelProperty("${x.comment!}")
- private ${x.propertyType!} ${x.propertyName!};
- #}
-#}
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityVO.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityVO.java.btl
deleted file mode 100644
index b9b598166..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/entityVO.java.btl
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${strutil.replace(package.Entity,"entity","vo")};
-
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import java.io.Serial;
-
-/**
- * ${table.comment!} 视图实体类
- *
- * @author ${author!}
- * @since ${date!}
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-public class ${entityKey!}VO extends ${entityKey!}Entity {
- @Serial
- private static final long serialVersionUID = 1L;
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.java.btl
deleted file mode 100644
index d49c3d4a7..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.java.btl
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${package.Mapper!};
-
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
-import ${superMapperClassPackage!};
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import org.apache.ibatis.annotations.Param;
-import java.util.List;
-
-/**
- * ${table.comment!} Mapper 接口
- *
- * @author ${author!}
- * @since ${date!}
- */
-public interface ${table.mapperName!} extends ${superMapperClass!}<${entityKey!}Entity> {
-
- /**
- * 自定义分页
- *
- * @param page 分页参数
- * @param ${entityKeyPath!} 查询参数
- * @return List<${entityKey!}VO>
- */
- List<${entityKey!}VO> select${entityKey!}Page(IPage page, ${entityKey!}VO ${entityKeyPath!});
-
- /**
- * 获取导出数据
- *
- * @param queryWrapper 查询条件
- * @return List<${entityKey!}Excel>
- */
- List<${entityKey!}Excel> export${entityKey!}(@Param("ew") Wrapper<${entityKey!}Entity> queryWrapper);
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.xml.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.xml.btl
deleted file mode 100644
index ea15f4971..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/mapper.xml.btl
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-#if(enableCache){
-
-
-#}
-
-
- #for(x in table.fields) {
-
- #}
-
-
-
- select * from ${table.name} where is_deleted = 0
-
-
-
- SELECT * FROM ${table.name!} \${ew.customSqlSegment}
-
-
-
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/service.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/service.java.btl
deleted file mode 100644
index 738d086f0..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/service.java.btl
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${package.Service!};
-
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-#if(hasSuperEntity){
-import ${superServiceClassPackage!};
-#}else{
-import com.baomidou.mybatisplus.extension.service.IService;
-#}
-import java.util.List;
-
-/**
- * ${table.comment!} 服务类
- *
- * @author ${author!}
- * @since ${date!}
- */
-#if(hasSuperEntity){
-public interface ${table.serviceName!} extends ${superServiceClass!}<${entity!}> {
-#}else{
-public interface ${table.serviceName!} extends IService<${entity!}> {
-#}
- /**
- * 自定义分页
- *
- * @param page 分页参数
- * @param ${entityKeyPath!} 查询参数
- * @return IPage<${entityKey!}VO>
- */
- IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!});
-
- /**
- * 导出数据
- *
- * @param queryWrapper 查询条件
- * @return List<${entityKey!}Excel>
- */
- List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper);
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/serviceImpl.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/serviceImpl.java.btl
deleted file mode 100644
index a5636091a..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/serviceImpl.java.btl
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${package.ServiceImpl!};
-
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import ${packageName!}.excel.${entityKey!}Excel;
-import ${packageName!}.mapper.${table.mapperName!};
-import ${packageName!}.service.${table.serviceName!};
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-#if(hasSuperEntity){
-import ${superServiceImplClassPackage!};
-#}else{
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-#}
-import java.util.List;
-
-/**
- * ${table.comment!} 服务实现类
- *
- * @author ${author!}
- * @since ${date!}
- */
-@Service
-#if(hasSuperEntity){
-public class ${table.serviceImplName!} extends ${superServiceImplClass!}<${table.mapperName!}, ${entity!}> implements ${table.serviceName!} {
-#}else{
-public class ${table.serviceImplName!} extends ServiceImpl<${table.mapperName!}, ${entity!}> implements ${table.serviceName!} {
-#}
-
- @Override
- public IPage<${entityKey!}VO> select${entityKey!}Page(IPage<${entityKey!}VO> page, ${entityKey!}VO ${entityKeyPath!}) {
- return page.setRecords(baseMapper.select${entityKey!}Page(page, ${entityKeyPath!}));
- }
-
- @Override
- public List<${entityKey!}Excel> export${entityKey!}(Wrapper<${entityKey!}Entity> queryWrapper) {
- List<${entityKey!}Excel> ${entityKeyPath!}List = baseMapper.export${entityKey!}(queryWrapper);
- //${entityKeyPath!}List.forEach(${entityKeyPath!} -> {
- // ${entityKeyPath!}.setTypeName(DictCache.getValue(DictEnum.YES_NO, ${entity!}.getType()));
- //});
- return ${entityKeyPath!}List;
- }
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/api-fast/wrapper.java.btl b/blade-ops/blade-develop/target/test-classes/templates/api-fast/wrapper.java.btl
deleted file mode 100644
index 83d3171c2..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/api-fast/wrapper.java.btl
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * BladeX Commercial License Agreement
- * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
- *
- * Use of this software is governed by the Commercial License Agreement
- * obtained after purchasing a license from BladeX.
- *
- * 1. This software is for development use only under a valid license
- * from BladeX.
- *
- * 2. Redistribution of this software's source code to any third party
- * without a commercial license is strictly prohibited.
- *
- * 3. Licensees may copyright their own code but cannot use segments
- * from this software for such purposes. Copyright of this software
- * remains with BladeX.
- *
- * Using this software signifies agreement to this License, and the software
- * must not be used for illegal purposes.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
- * not liable for any claims arising from secondary or illegal development.
- *
- * Author: Chill Zhuang (bladejava@qq.com)
- */
-package ${strutil.replace(package.Entity,"pojo.entity","wrapper")};
-
-import org.springblade.core.mp.support.BaseEntityWrapper;
-import org.springblade.core.tool.utils.BeanUtil;
-import ${packageName!}.pojo.entity.${entityKey!}Entity;
-import ${packageName!}.pojo.vo.${entityKey!}VO;
-import java.util.Objects;
-
-/**
- * ${table.comment!} 包装类,返回视图层所需的字段
- *
- * @author ${author!}
- * @since ${date!}
- */
-public class ${entityKey!}Wrapper extends BaseEntityWrapper<${entityKey!}Entity, ${entityKey!}VO> {
-
- public static ${entityKey!}Wrapper build() {
- return new ${entityKey!}Wrapper();
- }
-
- @Override
- public ${entityKey!}VO entityVO(${entityKey!}Entity ${entityKeyPath!}) {
- ${entityKey!}VO ${entityKeyPath!}VO = Objects.requireNonNull(BeanUtil.copyProperties(${entityKeyPath!}, ${entityKey!}VO.class));
-
- //User createUser = UserCache.getUser(${entityKeyPath!}.getCreateUser());
- //User updateUser = UserCache.getUser(${entityKeyPath!}.getUpdateUser());
- //${entityKeyPath!}VO.setCreateUserName(createUser.getName());
- //${entityKeyPath!}VO.setUpdateUserName(updateUser.getName());
-
- return ${entityKeyPath!}VO;
- }
-
-}
diff --git a/blade-ops/blade-develop/target/test-classes/templates/code.properties b/blade-ops/blade-develop/target/test-classes/templates/code.properties
deleted file mode 100644
index 50420cb68..000000000
--- a/blade-ops/blade-develop/target/test-classes/templates/code.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-spring.datasource.url=jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
-spring.datasource.username=root
-spring.datasource.password=root
-author=BladeX
diff --git a/blade-ops/blade-job/.flattened-pom.xml b/blade-ops/blade-job/.flattened-pom.xml
deleted file mode 100644
index b241fb673..000000000
--- a/blade-ops/blade-job/.flattened-pom.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
- 4.0.0
- org.springblade
- blade-job
- 4.6.0.RELEASE
- blade-job
-
-
- org.springblade
- blade-common
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-core-boot
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-http
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-swagger
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-powerjob
- 4.6.0.RELEASE
- compile
-
-
- org.springblade
- blade-starter-metrics
- 4.6.0.RELEASE
- compile
-
-
- com.oracle.database.jdbc
- ojdbc8
- 21.5.0.0
- compile
-
-
- com.oracle.database.nls
- orai18n
- 19.15.0.0
- compile
-
-
- org.projectlombok
- lombok
- 1.18.36
- provided
-
-
-
diff --git a/blade-ops/blade-job/.gitignore b/blade-ops/blade-job/.gitignore
index f364341cd..a70db8f70 100644
--- a/blade-ops/blade-job/.gitignore
+++ b/blade-ops/blade-job/.gitignore
@@ -1,9 +1,39 @@
-######################################################################
-# Build Tools
+# maven #
+target
+logs
+!.mvn/wrapper/maven-wrapper.jar
+# gradle
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
-target/
-!.mvn/wrapper/maven-wrapper.jar
\ No newline at end of file
+# windows #
+Thumbs.db
+
+# Mac #
+.DS_Store
+
+# eclipse #
+.settings
+.project
+.classpath
+.log
+*.class
+
+# vscode #
+.vscode
+
+# idea #
+.idea
+*.iml
+
+# Package Files #
+*.jar
+*.war
+*.ear
+/target
+
+# Flattened pom
+.flattened-pom.xml
+/**/.flattened-pom.xml
diff --git a/blade-ops/blade-job/blade-job.iml b/blade-ops/blade-job/blade-job.iml
deleted file mode 100644
index a65602a23..000000000
--- a/blade-ops/blade-job/blade-job.iml
+++ /dev/null
@@ -1,293 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blade-ops/blade-job/pom.xml b/blade-ops/blade-job/pom.xml
index bfae16cf4..444800ac0 100644
--- a/blade-ops/blade-job/pom.xml
+++ b/blade-ops/blade-job/pom.xml
@@ -7,6 +7,7 @@
org.springblade
${revision}
+
4.0.0
blade-job
@@ -35,6 +36,16 @@
org.springblade
blade-starter-powerjob
+
+ org.springblade
+ blade-desk-api
+
+
+ org.springblade
+ blade-job-api
+ 4.6.0.RELEASE
+ compile
+