From d57dad9774aaf288e8be1886d1e2f66659962206 Mon Sep 17 00:00:00 2001
From: lvleigang <957075182@qq.com>
Date: Tue, 26 Mar 2024 13:34:31 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
buildpackage/pom.xml | 43 +
.../com/hzya/frame/WarStartApplication.java | 19 +
.../com/hzya/frame/WebappApplication.java | 35 +
.../entity/SysESBMessageManageLogEntity.java | 12 +
.../SysMessageManageLogPluginInitializer.java | 57 ++
.../ISysESBMessageManageLogService.java | 13 +
.../SysESBMessageManageLogServiceImpl.java | 15 +
.../src/main/resources/application.properties | 25 +
.../sysMessageManageLogBack/pluginCfg.xml | 6 +
.../spring/spring-buildpackage-dao.xml | 4 +
.../spring/spring-buildpackage-plugin.xml | 5 +
.../spring/spring-buildpackage-service.xml | 5 +
.../src/main/resources/log/logback-spring.xml | 124 +++
.../src/main/resources/mybatis/common.xml | 7 +
.../main/resources/mybatis/mybatis-config.xml | 43 +
.../src/main/resources/templates/index.html | 10 +
.../SpringTransactionalApplicationTests.java | 25 +
.../src/main/test/com/hzya/frame/Test01.java | 26 +
.../webapp/WEB-INF/lib/openapi-sdk-1.0.0.jar | 0
.../WEB-INF/lib/taobao-sdk-java-auto-1.1.jar | 0
buildpackage/src/main/webapp/WEB-INF/web.xml | 6 +
.../test/java/com/hzya/frame/temButtom.java | 19 +
common/pom.xml | 32 +
.../com/hzya/frame/basedao/dao/IBaseDao.java | 202 ++++
.../frame/basedao/dao/MybatisGenericDao.java | 343 +++++++
.../dao/RequestDisposeEntityMapper.java | 33 +
.../frame/basedao/entity/ConditionType.java | 67 ++
.../basedao/entity/ConditionTypeBack.java | 92 ++
.../frame/basedao/entity/ConnectType.java | 53 +
.../frame/basedao/entity/DataSourceType.java | 50 +
.../hzya/frame/basedao/entity/HttpEntity.java | 32 +
.../frame/basedao/entity/ModifyCriterion.java | 121 +++
.../frame/basedao/entity/OrderCriterion.java | 20 +
.../basedao/entity/RequestDisposeEntity.java | 639 +++++++++++++
.../entity/RequestDisposeEntityMapper.xml | 208 ++++
.../frame/basedao/entity/ReturnCriterion.java | 22 +
.../frame/basedao/entity/SortOrderType.java | 56 ++
.../frame/basedao/entity/WhereCriterion.java | 207 ++++
.../frame/basedao/service/BaseDaoUtil.java | 374 ++++++++
.../frame/basedao/service/GeneralService.java | 138 +++
.../frame/basedao/service/IBaseService.java | 54 ++
.../frame/basedao/service/JdbcService.java | 100 ++
.../basedao/service/impl/BaseDaoUtilImpl.java | 881 +++++++++++++++++
.../basedao/service/impl/BaseService.java | 277 ++++++
.../service/impl/GeneralServiceImpl.java | 905 ++++++++++++++++++
.../basedao/service/impl/JdbcServiceImpl.java | 223 +++++
.../com/hzya/frame/beanutil/BeanUtil.java | 14 +
.../frame/datasource/DataSourceConfig.java | 197 ++++
.../hzya/frame/datasource/DataSourceUtil.java | 152 +++
.../datasource/DataSourceUtilProperties.java | 22 +
.../com/hzya/frame/dateutil/DateUtil.java | 732 ++++++++++++++
.../execsql/controller/ExecSqlController.java | 39 +
.../frame/execsql/entity/ExecSqlEntity.java | 29 +
.../frame/execsql/entity/ExecSqlEntity.xml | 25 +
.../execsql/service/ExecSqlServiceImpl.java | 150 +++
.../execsql/service/IExecSqlService.java | 53 +
.../java/com/hzya/frame/iputil/IPUtil.java | 49 +
.../SqlExecuteTimeCountInterceptor.java | 138 +++
.../jdbcUtil/service/SqlLogInterceptor.java | 175 ++++
.../main/java/com/hzya/frame/page/Page.java | 117 +++
.../com/hzya/frame/page/PageAttribute.java | 227 +++++
.../java/com/hzya/frame/page/PageHelper.java | 285 ++++++
.../frame/servlet/ServletContextUtil.java | 173 ++++
.../hzya/frame/servlet/SpringContextUtil.java | 44 +
.../com/hzya/frame/stringutil/StringUtil.java | 62 ++
.../frame/threadPool/TaskExecutorConfig.java | 39 +
.../java/com/hzya/frame/util/AESUtil.java | 80 ++
.../java/com/hzya/frame/util/HttpUtil.java | 155 +++
.../java/com/hzya/frame/util/IPHelper.java | 59 ++
.../java/com/hzya/frame/util/ServiceUtil.java | 43 +
.../com/hzya/frame/util/bipV3/Base64Util.java | 31 +
.../hzya/frame/util/bipV3/CipherConstant.java | 12 +
.../com/hzya/frame/util/bipV3/Encryption.java | 98 ++
.../com/hzya/frame/util/bipV3/KeyPairs.java | 28 +
.../hzya/frame/util/bipV3/KeysFactory.java | 103 ++
.../com/hzya/frame/util/bipV3/SHA256Util.java | 51 +
.../frame/util/bipV3/SecureRandomProxy.java | 27 +
.../hzya/frame/util/oldNcc/Base64Util.java | 31 +
.../frame/util/oldNcc/CipherConstant.java | 8 +
.../hzya/frame/util/oldNcc/CompressUtil.java | 173 ++++
.../hzya/frame/util/oldNcc/Decryption.java | 105 ++
.../hzya/frame/util/oldNcc/Encryption.java | 103 ++
.../com/hzya/frame/util/oldNcc/KeyPairs.java | 27 +
.../hzya/frame/util/oldNcc/KeysFactory.java | 106 ++
.../frame/util/oldNcc/ResultMessageUtil.java | 45 +
.../hzya/frame/util/oldNcc/SHA256Util.java | 36 +
.../java/com/hzya/frame/uuid/UUIDLong.java | 27 +
.../java/com/hzya/frame/uuid/UUIDUtils.java | 50 +
.../web/action/ApplicationContextUtil.java | 54 ++
.../frame/web/action/DefaultController.java | 97 ++
.../hzya/frame/web/action/SessionContext.java | 50 +
.../com/hzya/frame/web/action/WebContext.java | 167 ++++
.../frame/web/cache/ServiceMethodCache.java | 47 +
.../com/hzya/frame/web/entity/BaseEntity.java | 285 ++++++
.../com/hzya/frame/web/entity/BaseResult.java | 117 +++
.../frame/web/entity/JsonResultEntity.java | 91 ++
.../web/exception/BaseSystemException.java | 29 +
.../frame/web/request/RequestBodyUtils.java | 85 ++
.../DataSourceTransactionManagerUtil.java | 50 +
.../transactiontemplate/TransactionUtils.java | 24 +
common/src/test/java/Test.java | 8 +
core/pom.xml | 40 +
.../com/hzya/frame/base/PluginBaseEntity.java | 11 +
.../hzya/frame/base/PluginBaseEntityVo.java | 47 +
.../frame/base/SystemPluginInitializer.java | 74 ++
.../frame/fileutil/ConstantClassField.java | 14 +
.../com/hzya/frame/fileutil/FileUtils.java | 130 +++
.../com/hzya/frame/fileutil/ZipUtils.java | 93 ++
.../java/com/hzya/frame/util/PluginUtils.java | 58 ++
pom.xml | 404 ++++++++
service/pom.xml | 44 +
.../frame/serviceUtil/DsDataSourceUtil.java | 143 +++
.../hzya/frame/serviceUtil/ServiceUtil.java | 76 ++
.../sys/dataSource/dao/ISysDataSourceDao.java | 23 +
.../dao/impl/SysDataSourceDaoImpl.java | 41 +
.../entity/SysDataSourceEntity.java | 177 ++++
.../dataSource/entity/SysDataSourceEntity.xml | 431 +++++++++
.../dataSource/entity/SysDataSourceVo.java | 183 ++++
.../service/ISysDataSourceService.java | 69 ++
.../impl/SysDataSourceServiceImpl.java | 222 +++++
.../hzya/frame/sys/login/ILoginService.java | 18 +
.../sys/login/impl/LoginServiceImpl.java | 38 +
.../src/test/java/com/hzya/frame/Tetst01.java | 19 +
webapp/pom.xml | 39 +
.../init/ApplicationContextInitialized.java | 56 ++
.../frame/web/init/MyApplicationListener.java | 266 +++++
.../controler/EntranceController.java | 39 +
.../entrance/service/IEntranceService.java | 18 +
.../service/impl/EntranceServiceImpl.java | 108 +++
.../aop/AopDynamicRoutingDataSourceInit.java | 170 ++++
.../webapp/web/exception/CommonConstant.java | 12 +
.../web/exception/ExceptionController.java | 157 +++
.../web/exception/MyBasicErrorController.java | 114 +++
.../frame/webapp/web/filter/BaseFilter.java | 105 ++
.../web/filter/ExceptionOptionFilter.java | 37 +
.../web/filter/FilterConfiguration.java | 39 +
.../webapp/web/filter/SaTokenConfigure.java | 30 +
.../init/ApplicationContextInitialized.java | 26 +
.../web/listener/InitCommandLineRunner.java | 100 ++
139 files changed, 14523 insertions(+)
create mode 100644 buildpackage/pom.xml
create mode 100644 buildpackage/src/main/java/com/hzya/frame/WarStartApplication.java
create mode 100644 buildpackage/src/main/java/com/hzya/frame/WebappApplication.java
create mode 100644 buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/entity/SysESBMessageManageLogEntity.java
create mode 100644 buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/plugin/SysMessageManageLogPluginInitializer.java
create mode 100644 buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/ISysESBMessageManageLogService.java
create mode 100644 buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/impl/SysESBMessageManageLogServiceImpl.java
create mode 100644 buildpackage/src/main/resources/application.properties
create mode 100644 buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/pluginCfg.xml
create mode 100644 buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-dao.xml
create mode 100644 buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-plugin.xml
create mode 100644 buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-service.xml
create mode 100644 buildpackage/src/main/resources/log/logback-spring.xml
create mode 100644 buildpackage/src/main/resources/mybatis/common.xml
create mode 100644 buildpackage/src/main/resources/mybatis/mybatis-config.xml
create mode 100644 buildpackage/src/main/resources/templates/index.html
create mode 100644 buildpackage/src/main/test/com/hzya/frame/SpringTransactionalApplicationTests.java
create mode 100644 buildpackage/src/main/test/com/hzya/frame/Test01.java
create mode 100644 buildpackage/src/main/webapp/WEB-INF/lib/openapi-sdk-1.0.0.jar
create mode 100644 buildpackage/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto-1.1.jar
create mode 100644 buildpackage/src/main/webapp/WEB-INF/web.xml
create mode 100644 buildpackage/src/test/java/com/hzya/frame/temButtom.java
create mode 100644 common/pom.xml
create mode 100644 common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/dao/RequestDisposeEntityMapper.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/ConditionType.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/ConditionTypeBack.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/ConnectType.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/DataSourceType.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/HttpEntity.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/ModifyCriterion.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/OrderCriterion.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntity.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntityMapper.xml
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/ReturnCriterion.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/SortOrderType.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/entity/WhereCriterion.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/BaseDaoUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/GeneralService.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/IBaseService.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/JdbcService.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/impl/BaseDaoUtilImpl.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/impl/BaseService.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/impl/GeneralServiceImpl.java
create mode 100644 common/src/main/java/com/hzya/frame/basedao/service/impl/JdbcServiceImpl.java
create mode 100644 common/src/main/java/com/hzya/frame/beanutil/BeanUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/datasource/DataSourceConfig.java
create mode 100644 common/src/main/java/com/hzya/frame/datasource/DataSourceUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/datasource/DataSourceUtilProperties.java
create mode 100644 common/src/main/java/com/hzya/frame/dateutil/DateUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/execsql/controller/ExecSqlController.java
create mode 100644 common/src/main/java/com/hzya/frame/execsql/entity/ExecSqlEntity.java
create mode 100644 common/src/main/java/com/hzya/frame/execsql/entity/ExecSqlEntity.xml
create mode 100644 common/src/main/java/com/hzya/frame/execsql/service/ExecSqlServiceImpl.java
create mode 100644 common/src/main/java/com/hzya/frame/execsql/service/IExecSqlService.java
create mode 100644 common/src/main/java/com/hzya/frame/iputil/IPUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/jdbcUtil/service/SqlExecuteTimeCountInterceptor.java
create mode 100644 common/src/main/java/com/hzya/frame/jdbcUtil/service/SqlLogInterceptor.java
create mode 100644 common/src/main/java/com/hzya/frame/page/Page.java
create mode 100644 common/src/main/java/com/hzya/frame/page/PageAttribute.java
create mode 100644 common/src/main/java/com/hzya/frame/page/PageHelper.java
create mode 100644 common/src/main/java/com/hzya/frame/servlet/ServletContextUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/servlet/SpringContextUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/stringutil/StringUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/threadPool/TaskExecutorConfig.java
create mode 100644 common/src/main/java/com/hzya/frame/util/AESUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/util/HttpUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/util/IPHelper.java
create mode 100644 common/src/main/java/com/hzya/frame/util/ServiceUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/Base64Util.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/CipherConstant.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/Encryption.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/KeyPairs.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/KeysFactory.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/SHA256Util.java
create mode 100644 common/src/main/java/com/hzya/frame/util/bipV3/SecureRandomProxy.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/Base64Util.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/CipherConstant.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/CompressUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/Decryption.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/Encryption.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/KeyPairs.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/KeysFactory.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/ResultMessageUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/util/oldNcc/SHA256Util.java
create mode 100644 common/src/main/java/com/hzya/frame/uuid/UUIDLong.java
create mode 100644 common/src/main/java/com/hzya/frame/uuid/UUIDUtils.java
create mode 100644 common/src/main/java/com/hzya/frame/web/action/ApplicationContextUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/web/action/DefaultController.java
create mode 100644 common/src/main/java/com/hzya/frame/web/action/SessionContext.java
create mode 100644 common/src/main/java/com/hzya/frame/web/action/WebContext.java
create mode 100644 common/src/main/java/com/hzya/frame/web/cache/ServiceMethodCache.java
create mode 100644 common/src/main/java/com/hzya/frame/web/entity/BaseEntity.java
create mode 100644 common/src/main/java/com/hzya/frame/web/entity/BaseResult.java
create mode 100644 common/src/main/java/com/hzya/frame/web/entity/JsonResultEntity.java
create mode 100644 common/src/main/java/com/hzya/frame/web/exception/BaseSystemException.java
create mode 100644 common/src/main/java/com/hzya/frame/web/request/RequestBodyUtils.java
create mode 100644 common/src/main/java/com/hzya/frame/web/transactiontemplate/DataSourceTransactionManagerUtil.java
create mode 100644 common/src/main/java/com/hzya/frame/web/transactiontemplate/TransactionUtils.java
create mode 100644 common/src/test/java/Test.java
create mode 100644 core/pom.xml
create mode 100644 core/src/main/java/com/hzya/frame/base/PluginBaseEntity.java
create mode 100644 core/src/main/java/com/hzya/frame/base/PluginBaseEntityVo.java
create mode 100644 core/src/main/java/com/hzya/frame/base/SystemPluginInitializer.java
create mode 100644 core/src/main/java/com/hzya/frame/fileutil/ConstantClassField.java
create mode 100644 core/src/main/java/com/hzya/frame/fileutil/FileUtils.java
create mode 100644 core/src/main/java/com/hzya/frame/fileutil/ZipUtils.java
create mode 100644 core/src/main/java/com/hzya/frame/util/PluginUtils.java
create mode 100644 pom.xml
create mode 100644 service/pom.xml
create mode 100644 service/src/main/java/com/hzya/frame/serviceUtil/DsDataSourceUtil.java
create mode 100644 service/src/main/java/com/hzya/frame/serviceUtil/ServiceUtil.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/dao/ISysDataSourceDao.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/dao/impl/SysDataSourceDaoImpl.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceEntity.xml
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/entity/SysDataSourceVo.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/service/ISysDataSourceService.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/dataSource/service/impl/SysDataSourceServiceImpl.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/login/ILoginService.java
create mode 100644 service/src/main/java/com/hzya/frame/sys/login/impl/LoginServiceImpl.java
create mode 100644 service/src/test/java/com/hzya/frame/Tetst01.java
create mode 100644 webapp/pom.xml
create mode 100644 webapp/src/main/java/com/hzya/frame/web/init/ApplicationContextInitialized.java
create mode 100644 webapp/src/main/java/com/hzya/frame/web/init/MyApplicationListener.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/entrance/controler/EntranceController.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/entrance/service/IEntranceService.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/entrance/service/impl/EntranceServiceImpl.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/aop/AopDynamicRoutingDataSourceInit.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/exception/CommonConstant.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/exception/ExceptionController.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/exception/MyBasicErrorController.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/filter/BaseFilter.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/filter/ExceptionOptionFilter.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/filter/FilterConfiguration.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/filter/SaTokenConfigure.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/init/ApplicationContextInitialized.java
create mode 100644 webapp/src/main/java/com/hzya/frame/webapp/web/listener/InitCommandLineRunner.java
diff --git a/buildpackage/pom.xml b/buildpackage/pom.xml
new file mode 100644
index 00000000..8feb8f73
--- /dev/null
+++ b/buildpackage/pom.xml
@@ -0,0 +1,43 @@
+
+
+
+ kangarooDataCenterV3
+ com.hzya.frame
+ ${revision}
+
+ 4.0.0
+ buildpackage
+ war
+
+
+
+ com.hzya.frame
+ webapp
+ ${revision}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ kangarooDataCenterV3
+
+
+
diff --git a/buildpackage/src/main/java/com/hzya/frame/WarStartApplication.java b/buildpackage/src/main/java/com/hzya/frame/WarStartApplication.java
new file mode 100644
index 00000000..fc8205ec
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/WarStartApplication.java
@@ -0,0 +1,19 @@
+package com.hzya.frame;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/***
+ * @Content:War启动类 继承SpringBootServletInitializer 初始化servlet 环境
+ * @Author 👻👻👻👻👻👻👻👻 gjh
+ * @Date 2022-11-29 14:27
+ * @Param
+ * @return
+ **/
+public class WarStartApplication extends SpringBootServletInitializer {
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
+ // 指向Application 这个启动类
+ return builder.sources(WebappApplication.class);
+ }
+}
diff --git a/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java b/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java
new file mode 100644
index 00000000..a1bedb90
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/WebappApplication.java
@@ -0,0 +1,35 @@
+package com.hzya.frame;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
+import org.springframework.boot.web.servlet.ServletComponentScan;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.context.annotation.ImportResource;
+
+@EnableCaching
+@ServletComponentScan(basePackages = {"com.hzya.frame"})
+@ImportResource(locations = {"classpath:cfgHome/**/spring/spring-*.xml"})
+@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
+//@SpringBootApplication(scanBasePackages = {"com.hzya.frame"})
+public class WebappApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(WebappApplication.class, args);
+ System.out.println(" (♥◠‿◠)ノ゙ 启动成功 ლ(´ڡ`ლ)゙ \n" +
+ " .----------------. .----------------. .-----------------. .----------------. .-----------------.\n" +
+ "| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |\n" +
+ "| | ____ ____ | || | ____ | || | ____ _____ | || | __ | || | ____ _____ | |\n" +
+ "| | |_ _||_ _| | || | .' `. | || ||_ \\|_ _| | || | / \\ | || ||_ \\|_ _| | |\n" +
+ "| | \\ \\ / / | || | / .--. \\ | || | | \\ | | | || | / /\\ \\ | || | | \\ | | | |\n" +
+ "| | \\ \\/ / | || | | | | | | || | | |\\ \\| | | || | / ____ \\ | || | | |\\ \\| | | |\n" +
+ "| | _| |_ | || | \\ `--' / | || | _| |_\\ |_ | || | _/ / \\ \\_ | || | _| |_\\ |_ | |\n" +
+ "| | |______| | || | `.____.' | || ||_____|\\____| | || ||____| |____|| || ||_____|\\____| | |\n" +
+ "| | | || | | || | | || | | || | | |\n" +
+ "| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |\n" +
+ " '----------------' '----------------' '----------------' '----------------' '----------------' ");
+ }
+
+
+}
diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/entity/SysESBMessageManageLogEntity.java b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/entity/SysESBMessageManageLogEntity.java
new file mode 100644
index 00000000..1d39e5c6
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/entity/SysESBMessageManageLogEntity.java
@@ -0,0 +1,12 @@
+package com.hzya.frame.plugin.sysMessageManageLogBack.entity;
+
+import com.hzya.frame.web.entity.BaseEntity;
+
+public class SysESBMessageManageLogEntity extends BaseEntity {
+
+ private String name;
+
+
+
+}
+
diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/plugin/SysMessageManageLogPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/plugin/SysMessageManageLogPluginInitializer.java
new file mode 100644
index 00000000..f2d8ed97
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/plugin/SysMessageManageLogPluginInitializer.java
@@ -0,0 +1,57 @@
+package com.hzya.frame.plugin.sysMessageManageLogBack.plugin;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.base.PluginBaseEntity;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 消息管理日志(SysMessageManageLog)表服务接口
+ *
+ * @author makejava
+ * @since 2024-03-08 10:22:00
+ */
+public class SysMessageManageLogPluginInitializer extends PluginBaseEntity {
+ Logger logger = LoggerFactory.getLogger(SysMessageManageLogPluginInitializer.class);
+
+ @Override
+ public void initialize() {
+ logger.info(getPluginLabel() + "執行初始化方法initialize()");
+ }
+
+ @Override
+ public void destroy() {
+ logger.info(getPluginLabel() + "執行銷毀方法destroy()");
+ }
+
+ @Override
+ public String getPluginId() {
+ return "SysMessageManageLogPlugin";
+ }
+
+ @Override
+ public String getPluginName() {
+ return "ESB消息日志备份";
+ }
+
+ @Override
+ public String getPluginLabel() {
+ return "ESB消息日志备份";
+ }
+
+ @Override
+ public String getPluginType() {
+ return "1";
+ }
+
+ @Override
+ public String executeBusiness(JSONObject requestJson) throws Exception {
+ try {
+ return "备份成功";
+ }catch (Exception e){
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+}
diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/ISysESBMessageManageLogService.java b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/ISysESBMessageManageLogService.java
new file mode 100644
index 00000000..b30d5da9
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/ISysESBMessageManageLogService.java
@@ -0,0 +1,13 @@
+package com.hzya.frame.plugin.sysMessageManageLogBack.service;
+
+import com.hzya.frame.basedao.service.IBaseService;
+import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
+
+/**
+ * 消息管理日志(SysMessageManageLog)表服务接口
+ *
+ * @author makejava
+ * @since 2024-03-08 10:22:00
+ */
+public interface ISysESBMessageManageLogService extends IBaseService {
+}
diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/impl/SysESBMessageManageLogServiceImpl.java b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/impl/SysESBMessageManageLogServiceImpl.java
new file mode 100644
index 00000000..a1494624
--- /dev/null
+++ b/buildpackage/src/main/java/com/hzya/frame/plugin/sysMessageManageLogBack/service/impl/SysESBMessageManageLogServiceImpl.java
@@ -0,0 +1,15 @@
+package com.hzya.frame.plugin.sysMessageManageLogBack.service.impl;
+
+import com.hzya.frame.basedao.service.impl.BaseService;
+import com.hzya.frame.plugin.sysMessageManageLogBack.entity.SysESBMessageManageLogEntity;
+import com.hzya.frame.plugin.sysMessageManageLogBack.service.ISysESBMessageManageLogService;
+
+/**
+ * 消息管理日志(SysMessageManageLog)表服务实现类
+ *
+ * @author makejava
+ * @since 2024-03-08 10:22:00
+ */
+public class SysESBMessageManageLogServiceImpl extends BaseService implements ISysESBMessageManageLogService {
+
+}
diff --git a/buildpackage/src/main/resources/application.properties b/buildpackage/src/main/resources/application.properties
new file mode 100644
index 00000000..0e2cc4b2
--- /dev/null
+++ b/buildpackage/src/main/resources/application.properties
@@ -0,0 +1,25 @@
+#应用名
+spring.application.name=kangarooDataCenterV3
+#端口
+server.port=9999
+#编码集
+server.tomcat.uri-encoding=utf-8
+#工程访问名称
+server.servlet.context-path=/kangarooDataCenterV3
+#json日期格式化
+spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
+spring.jackson.time-zone=GMT+8
+context.initializer.classes= com.hzya.frame.web.init.ApplicationContextInitialized
+spring.batch.job.enabled = false
+mybatis.mapper-locations = classpath*:com/hzya/**/*.xml
+mybatis.config-location= classpath:mybatis/mybatis-config.xml
+#mybatis.configuration.call-setters-on-nulls=true
+
+#日志配置
+logging.config= classpath:log/logback-spring.xml
+logging.file.path = /Users/xiangerlin/work/app/logs/zhongtai
+
+#文件最大大小
+spring.servlet.multipart.enabled=true
+spring.servlet.multipart.max-file-size=100MB
+spring.servlet.multipart.max-request-size=100MB
\ No newline at end of file
diff --git a/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/pluginCfg.xml b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/pluginCfg.xml
new file mode 100644
index 00000000..00d5dc0b
--- /dev/null
+++ b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/pluginCfg.xml
@@ -0,0 +1,6 @@
+
+
+SysMessageManageLogPlugin
+SysMessageManageLogPlugin插件
+202403080010
+
diff --git a/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-dao.xml b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-dao.xml
new file mode 100644
index 00000000..f857d7fc
--- /dev/null
+++ b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-dao.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-plugin.xml b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-plugin.xml
new file mode 100644
index 00000000..2ca55124
--- /dev/null
+++ b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-plugin.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-service.xml b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-service.xml
new file mode 100644
index 00000000..4f0c39ab
--- /dev/null
+++ b/buildpackage/src/main/resources/cfgHome/plugin/sysMessageManageLogBack/spring/spring-buildpackage-service.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/buildpackage/src/main/resources/log/logback-spring.xml b/buildpackage/src/main/resources/log/logback-spring.xml
new file mode 100644
index 00000000..3dd69b42
--- /dev/null
+++ b/buildpackage/src/main/resources/log/logback-spring.xml
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+ logback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INFO
+
+
+ ${CONSOLE_LOG_PATTERN}
+
+ UTF-8
+
+
+
+
+
+ ${LOG_PATH}/info/info.log
+
+ ${LOG_PATH}/info/%d{yyyy-MM-dd,aux}/info.%d{HH}.log
+
+
+ INFO
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+ ${LOG_PATH}/debug/debug.log
+
+ ${LOG_PATH}/debug/%d{yyyy-MM-dd,aux}/debug.%d{HH}.log
+ ${MAX_HISTORY}
+
+
+ DEBUG
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+ ${MAX_FILE_SIZE}
+
+
+
+
+
+ ${LOG_PATH}/error/error.log
+
+ ${LOG_PATH}/error/%d{yyyy-MM-dd,aux}/error.%d{HH}.log
+ ${MAX_HISTORY}
+
+
+
+ ERROR
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+ ${LOG_PATH}/warn/warn.log
+
+ ${LOG_PATH}/warn/%d{yyyy-MM-dd,aux}/warn.%d{HH:mm}.log
+ ${MAX_HISTORY}
+
+
+ WARN
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/buildpackage/src/main/resources/mybatis/common.xml b/buildpackage/src/main/resources/mybatis/common.xml
new file mode 100644
index 00000000..6c555dee
--- /dev/null
+++ b/buildpackage/src/main/resources/mybatis/common.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/buildpackage/src/main/resources/mybatis/mybatis-config.xml b/buildpackage/src/main/resources/mybatis/mybatis-config.xml
new file mode 100644
index 00000000..2993693c
--- /dev/null
+++ b/buildpackage/src/main/resources/mybatis/mybatis-config.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/buildpackage/src/main/resources/templates/index.html b/buildpackage/src/main/resources/templates/index.html
new file mode 100644
index 00000000..566549bd
--- /dev/null
+++ b/buildpackage/src/main/resources/templates/index.html
@@ -0,0 +1,10 @@
+
+
+
+
+ Title
+
+
+
+
+
\ No newline at end of file
diff --git a/buildpackage/src/main/test/com/hzya/frame/SpringTransactionalApplicationTests.java b/buildpackage/src/main/test/com/hzya/frame/SpringTransactionalApplicationTests.java
new file mode 100644
index 00000000..0dbc877d
--- /dev/null
+++ b/buildpackage/src/main/test/com/hzya/frame/SpringTransactionalApplicationTests.java
@@ -0,0 +1,25 @@
+package com.hzya.frame;
+
+import com.hzya.frame.demo.service.TestService;
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+import java.sql.SQLException;
+
+@SpringBootTest
+class SpringTransactionalApplicationTests {
+
+
+ @Resource
+ private TestService testService;
+
+ @Test
+ void contextLoads() {
+ }
+
+ @Test
+ void testS() throws SQLException {
+ }
+
+}
diff --git a/buildpackage/src/main/test/com/hzya/frame/Test01.java b/buildpackage/src/main/test/com/hzya/frame/Test01.java
new file mode 100644
index 00000000..cc57b5e6
--- /dev/null
+++ b/buildpackage/src/main/test/com/hzya/frame/Test01.java
@@ -0,0 +1,26 @@
+package com.hzya.frame;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.nc.service.impl.NcInterfaceServiceImpl;
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import javax.annotation.Resource;
+
+/**
+ * @Content
+ * @Author 👻👻👻👻👻👻👻👻👻👻 gjh
+ * @Date 2023-07-19 10:54
+ * @Version 1.0
+ */
+@SpringBootTest
+public class Test01 {
+ @Resource
+ private NcInterfaceServiceImpl ncInterfaceService;
+
+ @Test
+ public void test01() {
+ JSONObject jsonObject = new JSONObject();
+ ncInterfaceService.updateUser(jsonObject);
+ }
+}
diff --git a/buildpackage/src/main/webapp/WEB-INF/lib/openapi-sdk-1.0.0.jar b/buildpackage/src/main/webapp/WEB-INF/lib/openapi-sdk-1.0.0.jar
new file mode 100644
index 00000000..e69de29b
diff --git a/buildpackage/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto-1.1.jar b/buildpackage/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto-1.1.jar
new file mode 100644
index 00000000..e69de29b
diff --git a/buildpackage/src/main/webapp/WEB-INF/web.xml b/buildpackage/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 00000000..d80081d1
--- /dev/null
+++ b/buildpackage/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/buildpackage/src/test/java/com/hzya/frame/temButtom.java b/buildpackage/src/test/java/com/hzya/frame/temButtom.java
new file mode 100644
index 00000000..998d393e
--- /dev/null
+++ b/buildpackage/src/test/java/com/hzya/frame/temButtom.java
@@ -0,0 +1,19 @@
+package com.hzya.frame;
+
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+/**
+ * @ClassName dsasas
+ * @Description
+ * @Author llg
+ * Date 2023/7/16 8:18 上午
+ */
+@RunWith(SpringRunner.class)
+@SpringBootTest(classes = {WebappApplication.class})
+public class temButtom {
+
+
+
+}
diff --git a/common/pom.xml b/common/pom.xml
new file mode 100644
index 00000000..b2ea702f
--- /dev/null
+++ b/common/pom.xml
@@ -0,0 +1,32 @@
+
+
+
+ kangarooDataCenterV3
+ com.hzya.frame
+ ${revision}
+
+ 4.0.0
+ common
+ jar
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ none
+ execute
+
+
+
+
+ repackage
+
+
+
+
+
+
+
diff --git a/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java b/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java
new file mode 100644
index 00000000..e69bb46c
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/dao/IBaseDao.java
@@ -0,0 +1,202 @@
+package com.hzya.frame.basedao.dao;
+
+
+import com.hzya.frame.page.PageAttribute;
+
+import java.io.Serializable;
+import java.util.List;
+
+
+public interface IBaseDao {
+
+ /**
+ * 查询一个对象
+ * @param paramPK 主键ID
+ * @return
+ */
+ E get(PK paramPK);
+
+ /**
+ * 获取所有的结果集
+ * @return
+ */
+ List getAll();
+
+ /**
+ * 查询一个对象
+ * @param paramString mapper ID
+ * @param paramObject 查询条件
+ * @return
+ */
+ Object selectOne(String paramString, Object paramObject);
+
+ /**
+ * 查询一个List
+ * @param paramString mapper ID
+ * @param paramObject 查询条件
+ * @return
+ */
+ List> selectList(String paramString, Object paramObject);
+
+ /**
+ * 逻辑删除 ,sts置为 N
+ * @param o
+ * @return
+ */
+ int logicRemove(E o);
+
+ /**
+ * 逻辑删除 ,sts置为 N
+ * @param o 多个条件
+ * @return
+ */
+ int logicRemoveMultiCondition(E o);
+ /****
+ * @Content:多条件删除数据,设置数据状态STS为N
+ * @Author 👻👻👻👻👻👻👻👻 gjh
+ * @Date 2023-07-24 11:26
+ * @Param [id, o]
+ * @return int
+ **/
+ int logicRemoveMultiCondition(String id,E o);
+ /**
+ * 物理删除
+ * @param paramPK 主键ID
+ * @return
+ */
+ int delete(PK paramPK);
+
+ /**
+ * 物理删除
+ * @param paramString sqlMapperID
+ * @param paramObject 条件参数
+ * @return
+ */
+ int delete(String paramString, Object paramObject);
+
+ /**
+ * 修改
+ * @param paramString sqlMapperID
+ * @param paramObject 条件参数
+ * @return
+ */
+ int update(String paramString, Object paramObject);
+
+ /**
+ * 条件查询一个对象
+ * @param paramE 条件参数
+ * @return
+ */
+ E queryOne(E paramE);
+
+ /**
+ * 插入数据或者修改数据(ID为空是插入,ID不为空是修改)
+ * @param paramE
+ * @return
+ */
+ E saveOrUpdate(E paramE);
+
+ /**
+ * 保存方法
+ * @param paramE
+ * @return
+ */
+ E save(E paramE);
+ /**
+ * 保存方法
+ * @param paramString id
+ * @param paramE entitty
+ * @return
+ */
+ E save(String paramString, E paramE);
+
+
+ /****
+ * @Content:保存方法
+ * @Author 👻👻👻👻👻👻👻👻 gjh
+ * @Date 2023-07-24 11:41
+ * @Param [paramString, paramE]
+ * @return java.lang.Integer
+ **/
+ Integer insert(String paramString, Object paramE);
+
+ /**
+ * 修改方法
+ * @param paramE
+ * @return
+ */
+ E update(E paramE);
+
+ /**
+ * 查询单个对象
+ * @param paramE 条件参数
+ * @param paramString mapperID
+ * @return
+ */
+ E query(E paramE, String paramString);
+
+ /**
+ * 查询一个List
+ * @param paramE 条件参数
+ * @param paramString msqpperID
+ * @return
+ */
+ List queryList(E paramE, String paramString);
+ /**
+ * 查询一个List
+ * @param paramE 条件参数
+ * @return
+ */
+ List queryBase(E paramE);
+
+ /**
+ * 查询结果集
+ * @param paramE 条件参数
+ * @return
+ */
+ List query(E paramE);
+
+
+ /**
+ * wehere条件为 like
+ * @param paramE 条件参数
+ * @return
+ */
+ List queryByLike(E paramE);
+
+ /**
+ * where条件为or
+ * @param paramE
+ * @return
+ */
+ List queryByOr(E paramE);
+
+ /**
+ * 获取数据条数
+ * @param paramObject 条件参数
+ * @return
+ */
+ Integer getCount(Object paramObject);
+
+ /**
+ * 分页查询
+ * @param paramString mapperID
+ * @param paramObject 条件参数
+ * @return
+ */
+ PageAttribute queryPaged(String paramString, Object paramObject);
+
+ /**
+ * 分页查询
+ * @param paramObject 条件参数
+ * @return
+ */
+ PageAttribute queryPaged(Object paramObject);
+
+ /**
+ * 判断是否重复
+ * @param paramE 参数条件
+ * @return
+ */
+ boolean checkRepeated(E paramE);
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java b/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java
new file mode 100644
index 00000000..178e24e2
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/dao/MybatisGenericDao.java
@@ -0,0 +1,343 @@
+package com.hzya.frame.basedao.dao;
+
+import cn.hutool.core.util.StrUtil;
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.page.PageAttribute;
+import com.hzya.frame.page.PageHelper;
+import com.hzya.frame.web.entity.BaseEntity;
+import org.apache.commons.beanutils.BeanUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ibatis.session.SqlSession;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.util.Assert;
+
+import javax.annotation.Resource;
+import java.io.Serializable;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.ParameterizedType;
+import java.lang.reflect.Type;
+import java.util.List;
+
+/**
+ * @author Administrator
+ */
+@Component
+public abstract class MybatisGenericDao implements IBaseDao {
+ public static final String POSTFIX_INSERT = "_insert";
+ public static final String POSTFIX_UPDATE = "_update";
+ public static final String POSTFIX_UPDATE_SELECTIVE = "_updateSelective";
+ public static final String POSTFIX_LOGIC_DELETE = "_logicDelete";
+ public static final String POSTFIX_LOGIC_DELETE_LOGICDELETE_MULTI_CONDITION = "_logicDelete_Multi_Condition";
+ public static final String POSTFIX_DELETE = "_delete";
+ public static final String POSTFIX_DELETE_MULTI_CONDITION = "_delete_Multi_Condition";
+ public static final String POSTFIX_DELETE_BYKEY = "_deleteByPrimaryKey";
+ public static final String POSTFIX_GET = "_get";
+ public static final String POSTFIX_SELECT = "_list";
+ public static final String POSTFIX_COUNT = "_count";
+ public static final String POSTFIX_CUSTOM1 = "_custom1";
+ public static final String POSTFIX_CUSTOM2 = "_custom2";
+ public static final String POSTFIX_CUSTOM3 = "_custom3";
+ private static final Log LOG = LogFactory.getLog(MybatisGenericDao.class);
+
+ @Resource
+ private SqlSession sqlSession;
+ private Class> entityClass;
+
+ public MybatisGenericDao() {
+ Class> c = super.getClass();
+ Type t = c.getGenericSuperclass();
+ if (t instanceof ParameterizedType) {
+ this.entityClass = ((Class>) ((ParameterizedType) t).getActualTypeArguments()[0]);
+ //LOG.info("enityClass : " + this.entityClass.toString());
+ }
+ }
+
+ public String getSqlIdPrifx() {
+ String path = this.getClass().getName() + ".";
+ return path;
+ }
+
+
+ @Override
+ public Object selectOne(String id, Object param) {
+ return this.sqlSession.selectOne(id, param);
+ }
+
+// @DS("#param.dataSourceCode")
+ @Override
+ public List> selectList(String id, Object param) {
+ return this.sqlSession.selectList(id, param);
+ }
+
+ @Override
+ public List queryByLike(E o) {
+ List tempList = this.sqlSession.selectList(getSqlIdPrifx() + "entity_list_like", o);
+ return tempList;
+ }
+
+ @Override
+ public List queryByOr(E o) {
+ List tempList = this.sqlSession.selectList(getSqlIdPrifx() + "entity_list_or", o);
+ return tempList;
+ }
+
+ @Override
+ public E get(PK id) {
+ Assert.notNull(id, "get: ID不能为null");
+ Object o = this.sqlSession.selectOne(getSqlIdPrifx() + "entity_get", id);
+ return (E) o;
+ }
+
+ @DS("#o.dataSourceCode")
+ @Override
+ public E query(E o, String stamentID) {
+ return (E) this.sqlSession.selectOne(stamentID, o);
+ }
+
+ @Override
+ public List queryList(E o, String stamentID) {
+ List tempList = this.sqlSession.selectList(stamentID, o);
+ return tempList;
+ }
+
+ @Override
+ public List queryBase(E o) {
+ List tempList = this.sqlSession.selectList(getSqlIdPrifx() + "entity_list_base", o);
+ return tempList;
+ }
+
+ @Override
+ public List getAll() {
+ List tempList = this.sqlSession.selectList(getSqlIdPrifx() + "entity_list_base");
+ return tempList;
+ }
+
+ @Override
+ @DS("#param.dataSourceCode")
+ public List query(Serializable param) {
+ String str = getSqlIdPrifx() + "entity_list_base";
+ List tempList = this.sqlSession.selectList(str, param);
+ return tempList;
+ }
+
+ public E selectOne(Serializable param) {
+ String str = getSqlIdPrifx() + "entity_list_base";
+ E e = this.sqlSession.selectOne(str, param);
+ return e;
+ }
+
+ @Override
+ public E saveOrUpdate(E o) {
+ Assert.notNull(o, "saveOrUpdate : 参数列表不能为NULL");
+ Object id = null;
+ try {
+ id = BeanUtils.getProperty(o, "id");
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ } catch (NoSuchMethodException e) {
+ e.printStackTrace();
+ }
+
+ if ((id == null) || ("".equals(String.valueOf(id)))) {
+ this.sqlSession.insert(getSqlIdPrifx() + "entity_insert", o);
+ } else {
+ this.sqlSession.update(getSqlIdPrifx() + "entity_update", o);
+ }
+
+ return o;
+ }
+
+ @Override
+ public E queryOne(E o) {
+ E e = selectOne(o);
+ return e;
+ }
+
+ @Override
+ public E update(E o) {
+ Assert.notNull(o, "update : 参数列表不能为NULL");
+ this.sqlSession.update(getSqlIdPrifx() + "entity_update", o);
+ return o;
+ }
+
+ @Override
+ public E save(E o) {
+ Assert.notNull(o, "save : 参数列表不能为NULL");
+ this.sqlSession.insert(getSqlIdPrifx() + "entity_insert", o);
+ return o;
+ }
+
+ @Override
+ public Integer insert(String paramString, Object paramE) {
+ return this.sqlSession.insert(paramString, paramE);
+ }
+
+ @Override
+ public E save(String id, E param) {
+ this.sqlSession.insert(id, param);
+ return param;
+ }
+
+ @Override
+ public int logicRemove(E o) {
+ Assert.notNull(o, "logicRemove : 参数列表不能为NULL");
+ return this.sqlSession.update(getSqlIdPrifx() + "entity_logicDelete", o);
+ }
+
+ @Override
+ public int logicRemoveMultiCondition(E o) {
+ Assert.notNull(o, "logicRemoveMultiCondition : 参数列表不能为NULL");
+ return this.sqlSession.update(getSqlIdPrifx() + "entity_logicDelete_Multi_Condition", o);
+ }
+
+ @Override
+ public int logicRemoveMultiCondition(String id, E o) {
+ return this.sqlSession.update(id, o);
+ }
+
+ public int removeById(PK id) {
+ Assert.notNull(id, "removeById : 参数列表不能为NULL");
+ int result = this.sqlSession.delete(getSqlIdPrifx() + "entity_delete", id);
+
+ return result;
+ }
+
+ public int remove(String id, Object param) {
+ return this.sqlSession.update(id, param);
+ }
+
+ @Override
+ public int delete(String id, Object param) {
+ return this.sqlSession.delete(id, param);
+ }
+
+ @Override
+ public int update(String id, Object param) {
+ return this.sqlSession.update(id, param);
+ }
+
+ @Override
+ public PageAttribute queryPaged(Object baseEntity) {
+ String sqlId = getSqlIdPrifx() + "entity_list_like";
+ return queryPaged(sqlId, baseEntity);
+ }
+
+ /**
+ * 分页查询
+ */
+ @Override
+ public PageAttribute queryPaged(String statement, Object baseEntity) {
+ Assert.notNull(statement, "queryPaged ID 不能为NULL");
+ Assert.notNull(baseEntity, "queryPaged baseEntity :参数列表不能为NULL");
+ BaseEntity realEntity = (BaseEntity) baseEntity;
+ Long rowsParam = realEntity.getRows();
+ Long pageParam = realEntity.getPage();
+ Long limitParam = realEntity.getLimit();
+ Long offsetParam = realEntity.getOffset();
+ int page = 1;
+ int rows = 10;
+
+ try {
+ if (rowsParam != null) {
+ rows = rowsParam.intValue();
+ } else if (limitParam != null) {
+ rows = limitParam.intValue();
+ }
+
+ if (pageParam != null) {
+ page = pageParam.intValue();
+ } else if (offsetParam != null) {
+ page = offsetParam.intValue() / rows + 1;
+ }
+ } catch (Exception var12) {
+ var12.printStackTrace();
+ }
+ PageHelper.startPage(page, rows);
+ if (StrUtil.isEmpty(realEntity.getDialect_type())) {
+ PageHelper.dialect_type.set(PageHelper.MYSQL);
+ } else {
+ PageHelper.dialect_type.set(realEntity.getDialect_type());
+ }
+ PageHelper.startPage(page, rows);
+ List list = this.query(statement, baseEntity);
+ PageAttribute pageInfo = new PageAttribute(list);
+ return pageInfo;
+ }
+
+ public List query(String statement, Object baseEntity) {
+ Assert.notNull(statement, "query :ID 不能为NULL");
+ Assert.notNull(baseEntity, "query baseEntity :不能为NULL");
+ List list = this.sqlSession.selectList(statement, baseEntity);
+ return list;
+ }
+
+ public List query(Object baseEntity) {
+
+ Assert.notNull(baseEntity, "query baseEntity :不能为NULL");
+ List list = this.sqlSession.selectList(getSqlIdPrifx() + "entity_list_like", baseEntity);
+ return list;
+ }
+
+ @Override
+ public Integer getCount(Object parameterObject) {
+
+ Integer totalCount = this.sqlSession.selectOne(getSqlIdPrifx() + "entity_count", parameterObject);
+
+ return totalCount;
+ }
+
+ @Override
+ public int delete(PK id) {
+ return this.sqlSession.delete(getSqlIdPrifx() + "entity_delete", id);
+ }
+
+ @Override
+ public boolean checkRepeated(E o) {
+// Class TargetClass;
+// try {
+// TargetClass = o.getClass();
+// List fieldList = UtilHelper.getPrimaryNameList(TargetClass);
+// String id = BeanUtils.getProperty(o, "id");
+// boolean flag = true;
+// if (fieldList == null)
+// return false;
+//
+// Object param = org.springframework.beans.BeanUtils.instantiate(TargetClass);
+// for (int i = 0; i < fieldList.size(); ++i) {
+// Field field = (Field) fieldList.get(i);
+// String name = field.getName();
+// Object tempVal = BeanUtils.getProperty(o, name);
+// if ((tempVal != null) && (!("".equals(tempVal)))) {
+// flag = false;
+// BeanUtils.setProperty(param, name, BeanUtils.getProperty(o, name));
+// }
+//
+// }
+//
+// if (flag)
+// return false;
+//
+// List resultList = query((Serializable) param);
+// if ((resultList != null) && (resultList.size() > 0)) {
+// if ((id == null) || ("".equals(id)))
+// return true;
+//
+// Object tempResult = resultList.get(0);
+// String tempId = BeanUtils.getProperty(tempResult, "id");
+//
+// return (!(tempId.equals(id)));
+// }
+//
+// return false;
+// } catch (Exception e) {
+// e.printStackTrace();
+// }
+ return false;
+ }
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/dao/RequestDisposeEntityMapper.java b/common/src/main/java/com/hzya/frame/basedao/dao/RequestDisposeEntityMapper.java
new file mode 100644
index 00000000..d4ee2bf2
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/dao/RequestDisposeEntityMapper.java
@@ -0,0 +1,33 @@
+package com.hzya.frame.basedao.dao;
+
+
+import com.hzya.frame.basedao.entity.RequestDisposeEntity;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.HashMap;
+import java.util.List;
+
+public interface RequestDisposeEntityMapper {
+
+ //根据sql语句查询
+ List> selectBySql(@Param("sql") String sql);
+
+ //条件查询
+ List> selectByExample(RequestDisposeEntity example);
+
+ //查询数量
+ Integer countByExample(RequestDisposeEntity example);
+
+ //单个条件
+ Integer insert(RequestDisposeEntity example);
+
+ //批量添加
+ Integer insertSelective(RequestDisposeEntity example);
+
+ //修改
+ Integer updateByExample(RequestDisposeEntity example);
+
+ //删除
+ Integer deleteByExample(RequestDisposeEntity example);
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/ConditionType.java b/common/src/main/java/com/hzya/frame/basedao/entity/ConditionType.java
new file mode 100644
index 00000000..4f5cf71b
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/ConditionType.java
@@ -0,0 +1,67 @@
+package com.hzya.frame.basedao.entity;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+
+/**
+ * @Author lvleigang
+ * @Description 连接条件
+ * @Date 10:40 上午 2022/12/9
+ * @return
+ **/
+public enum ConditionType {
+ //数据库类型
+ 等于( "="),
+ 不等于( "!="),
+ 小于( "<"),
+ 小于等于( "<="),
+ 大于( ">"),
+ 大于等于( ">="),
+ 包含( "like"),
+ 不包含( "not like"),
+ 开始以( "like"),
+ 开始不是以( "not like"),
+ 结束以( "like"),
+ 结束不是以( "not like"),
+ 是null( "is null"),
+ 不是null( "is not null"),
+ 是空的( "is ''"),
+ 不是空的( "is not ''"),
+ 介于( "between"),
+ 不介于( "not between"),
+ 在列表( "in"),
+ 不在列表( "not in");
+
+ private String value;
+
+ private ConditionType(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return "ConditionType{" +
+ "value='" + value + '\'' +
+ '}';
+ }
+
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static ConditionType getDataSourceTypeFromCodeName(String value) {
+ for (ConditionType dep : ConditionType.values()) {
+ if (dep.getValue().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/ConditionTypeBack.java b/common/src/main/java/com/hzya/frame/basedao/entity/ConditionTypeBack.java
new file mode 100644
index 00000000..1114ad98
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/ConditionTypeBack.java
@@ -0,0 +1,92 @@
+package com.hzya.frame.basedao.entity;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * @Author lvleigang
+ * @Description 连接条件
+ * @Date 10:40 上午 2022/12/9
+ * @return
+ **/
+public enum ConditionTypeBack {
+ //数据库类型
+ 等于("等于", "="),
+ 不等于("不等于", "!="),
+ 小于("小于", "<"),
+ 小于等于("小于等于", "<="),
+ 大于("大于", ">"),
+ 大于等于("大于等于", ">="),
+ 包含("包含", "like"),
+ 不包含("不包含", "not like"),
+ 开始以("开始以", "like"),
+ 开始不是以("开始不是以", "not like"),
+ 结束以("结束以", "like"),
+ 结束不是以("结束不是以", "not like"),
+ 是null("是null", "is null"),
+ 不是null("不是null", "is not null"),
+ 是空的("是空的", "is ''"),
+ 不是空的("不是空的", "is not ''"),
+ 介于("介于", "between"),
+ 不介于("不介于", "not between"),
+ 在列表("在列表", "in"),
+ 不在列表("不在列表", "not in");
+
+ @JsonValue
+ private String name;
+ private String value;
+
+ private ConditionTypeBack(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static ConditionTypeBack getConditionTypeFromCodeValue(String value) {
+ for (ConditionTypeBack dep : ConditionTypeBack.values()) {
+ if (dep.getValue().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static ConditionTypeBack getConditionTypeFromCodeName(String value) {
+ for (ConditionTypeBack dep : ConditionTypeBack.values()) {
+ if (dep.getName().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+ @Override
+ public String toString() {
+ return "ConditionType{" +
+ "name='" + name + '\'' +
+ ", value='" + value + '\'' +
+ '}';
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/ConnectType.java b/common/src/main/java/com/hzya/frame/basedao/entity/ConnectType.java
new file mode 100644
index 00000000..b3c32cb2
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/ConnectType.java
@@ -0,0 +1,53 @@
+package com.hzya.frame.basedao.entity;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+
+/**
+ * @Author lvleigang
+ * @Description 连接类型对象
+ * @Date 11:30 上午 2022/12/9
+ * @param
+ * @return
+ **/
+public enum ConnectType {
+ AND("AND", "AND"),
+ OR("OR", "OR");
+ //类型
+ private String type;
+ //值
+ private String values;
+
+ private ConnectType(String type, String values) {
+ this.type = type;
+ this.values = values;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getValues() {
+ return values;
+ }
+
+ public void setValues(String values) {
+ this.values = values;
+ }
+
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static ConnectType getConnectTypeFromCodeName(String value) {
+ for (ConnectType dep : ConnectType.values()) {
+ if (dep.getType().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/DataSourceType.java b/common/src/main/java/com/hzya/frame/basedao/entity/DataSourceType.java
new file mode 100644
index 00000000..daaae90c
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/DataSourceType.java
@@ -0,0 +1,50 @@
+package com.hzya.frame.basedao.entity;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+
+public enum DataSourceType {
+
+ //数据库类型
+ MYSQL("MYSQL", "MYSQL"),
+ ORACLE("ORACLE", "ORACLE");
+
+
+ //类型
+ private String type;
+ //描述
+ private String desc;
+
+ private DataSourceType(String type, String desc) {
+ this.type = type;
+ this.desc = desc;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDesc() {
+ return desc;
+ }
+
+ public void setDesc(String desc) {
+ this.desc = desc;
+ }
+
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static DataSourceType getDataSourceTypeFromCodeName(String value) {
+ for (DataSourceType dep : DataSourceType.values()) {
+ if (dep.getType().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/HttpEntity.java b/common/src/main/java/com/hzya/frame/basedao/entity/HttpEntity.java
new file mode 100644
index 00000000..8d756736
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/HttpEntity.java
@@ -0,0 +1,32 @@
+package com.hzya.frame.basedao.entity;
+
+import java.util.Map;
+
+/**
+ * @Author lvleigang
+ * @Description http请求实体类
+ * @Date 11:29 上午 2022/12/9
+ * @return
+ **/
+public class HttpEntity {
+ //head参数
+ private Map headers;
+ //bodys参数
+ private Map bodys;
+
+ public Map getHeaders() {
+ return headers;
+ }
+
+ public void setHeaders(Map headers) {
+ this.headers = headers;
+ }
+
+ public Map getBodys() {
+ return bodys;
+ }
+
+ public void setBodys(Map bodys) {
+ this.bodys = bodys;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/ModifyCriterion.java b/common/src/main/java/com/hzya/frame/basedao/entity/ModifyCriterion.java
new file mode 100644
index 00000000..e4e95819
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/ModifyCriterion.java
@@ -0,0 +1,121 @@
+package com.hzya.frame.basedao.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * @ClassName ModifyCriterion
+ * @Description 修改对象
+ * @Author llg
+ * Date 2022/12/3 1:55 下午
+ */
+public class ModifyCriterion {
+ //字段名称
+ private String filedName;
+ //字段值
+ private Object filedValue;
+ //数字类型
+ private boolean intValue;
+ //金额类型
+ private boolean decimalValue;
+ //字符串类型
+ private boolean stringValue;
+ //日期类型
+ private boolean dateValue;
+
+ public ModifyCriterion() {
+ }
+
+ public ModifyCriterion(String filedName, String filedValue) {
+ this.filedName = filedName;
+ this.filedValue = filedValue;
+ this.stringValue = true;
+ }
+ public ModifyCriterion(String filedName, int filedValue) {
+ this.filedName = filedName;
+ this.filedValue = filedValue;
+ this.intValue = true;
+ }
+
+ public ModifyCriterion(String filedName, BigDecimal filedValue) {
+ this.filedName = filedName;
+ this.filedValue = filedValue;
+ this.decimalValue = true;
+ }
+
+
+
+ public ModifyCriterion(String filedName, Date filedValue) {
+ this.filedName = filedName;
+ this.filedValue = filedValue;
+ this.dateValue = true;
+ }
+
+ public ModifyCriterion(int filedValue) {
+ this.filedValue = filedValue;
+ this.intValue = true;
+ }
+
+ public ModifyCriterion(BigDecimal filedValue) {
+ this.filedValue = filedValue;
+ this.decimalValue = true;
+ }
+
+ public ModifyCriterion(String filedValue) {
+ this.filedValue = filedValue;
+ this.stringValue = true;
+ }
+
+ public ModifyCriterion(Date filedValue) {
+ this.filedValue = filedValue;
+ this.dateValue = true;
+ }
+
+ public String getFiledName() {
+ return filedName;
+ }
+
+ public void setFiledName(String filedName) {
+ this.filedName = filedName;
+ }
+
+ public Object getFiledValue() {
+ return filedValue;
+ }
+
+ public void setFiledValue(Object filedValue) {
+ this.filedValue = filedValue;
+ }
+
+ public boolean isIntValue() {
+ return intValue;
+ }
+
+ public void setIntValue(boolean intValue) {
+ this.intValue = intValue;
+ }
+
+ public boolean isDecimalValue() {
+ return decimalValue;
+ }
+
+ public void setDecimalValue(boolean decimalValue) {
+ this.decimalValue = decimalValue;
+ }
+
+ public boolean isStringValue() {
+ return stringValue;
+ }
+
+ public void setStringValue(boolean stringValue) {
+ this.stringValue = stringValue;
+ }
+
+ public boolean isDateValue() {
+ return dateValue;
+ }
+
+ public void setDateValue(boolean dateValue) {
+ this.dateValue = dateValue;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/OrderCriterion.java b/common/src/main/java/com/hzya/frame/basedao/entity/OrderCriterion.java
new file mode 100644
index 00000000..dcdc5807
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/OrderCriterion.java
@@ -0,0 +1,20 @@
+package com.hzya.frame.basedao.entity;
+
+/**
+ * @Author lvleigang
+ * @Description 排序
+ * @Date 11:29 上午 2022/12/9
+ * @return
+ **/
+public class OrderCriterion {
+ private String filed;
+ private String sortOrder;
+
+ public OrderCriterion(String filed, String sortOrder) {
+ this.filed = filed;
+ this.sortOrder = sortOrder;
+ }
+ public String getOrderCriterionString() {
+ return this.filed +" "+this.sortOrder;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntity.java b/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntity.java
new file mode 100644
index 00000000..8599444e
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntity.java
@@ -0,0 +1,639 @@
+package com.hzya.frame.basedao.entity;
+
+import java.util.List;
+
+/**
+ * @ClassName RequestEntity
+ * @Description 请求对象
+ * @Author llg
+ * Date 2022/12/3 1:55 下午
+ */
+public class RequestDisposeEntity {
+
+ //查询返回字段
+ private List returnCriterions;
+ //表名
+ private String tablename;
+ //查询条件
+ private List wheres;
+
+ //添加/修改 对象
+ private List modifys;
+ //批量修改的字段
+ private List batchFileds;
+ //批量添加/修改 字段
+ private List> batchModifys;
+
+
+ //排序 利用pageHelper
+ private List order;
+ //页数 利用pageHelper
+ private Integer pageNum;
+ //数量 利用pageHelper
+ private Integer pageSize;
+
+
+ //数据源类型--暂时没用
+ private DataSourceType dataBaseType;
+ //数据源标识--暂时没用
+ private String dataSourceCode;
+
+
+ //判断是否有返回字段
+ public boolean isReturnValid() {
+ return this.returnCriterions != null && this.returnCriterions.size() > 0;
+ }
+ //判断是否有判断条件
+ public boolean isOpinionWheres() {
+ return this.wheres != null && this.wheres.size() > 0;
+ }
+ //判断是否有排序
+ public boolean isHavenOrder() {
+ return this.order != null && this.order.size() > 0;
+ }
+ //返回排序string
+ public String getOrderString() {
+ StringBuffer stringBuffer = new StringBuffer();
+ if (this.order != null && this.order.size() > 0) {
+ for (int i = 0; i < this.order.size(); i++) {
+ if (i == 0) {
+ stringBuffer.append(this.order.get(i).getOrderCriterionString());
+ } else {
+ stringBuffer.append(" , ").append(this.order.get(i).getOrderCriterionString());
+ }
+ }
+ }
+ return stringBuffer.toString();
+ }
+
+ //判断是否有修改
+ public boolean isHaveModifys() {
+ return this.modifys != null && this.modifys.size() > 0;
+ }
+ //判断是否有批量修改字段
+ public boolean isHaveBatchFileds() {
+ return this.batchFileds != null && this.batchFileds.size() > 0;
+ }
+ //判断是否有批量修改字段
+ public boolean isHaveBatchModifys() {
+ return this.batchModifys != null && this.batchModifys.size() > 0
+ && this.batchModifys.get(0) != null && this.batchModifys.get(0).size() > 0;
+ }
+ //public class WheresCriteria {
+ // //左括号
+ // private String leftBracket;
+ // //字段
+ // private String field;
+ // //条件
+ // private String condition;
+ // //值
+ // private Object value;
+ // //第二个值
+ // private Object secondValue;
+ // //右括号
+ // private String rightBracket;
+ // //类型
+ // private String type;
+ // //连接
+ // private String connect;
+ //
+ // public String getField() {
+ // return field;
+ // }
+ //
+ // public void setField(String field) {
+ // this.field = field;
+ // }
+ //
+ // public String getCondition() {
+ // return condition;
+ // }
+ //
+ // public void setCondition(String condition) {
+ // this.condition = condition;
+ // }
+ //
+ //
+ // public String getType() {
+ // return type;
+ // }
+ //
+ // public void setType(String type) {
+ // this.type = type;
+ // }
+ //
+ // public Object getValue() {
+ // return value;
+ // }
+ //
+ // public void setValue(Object value) {
+ // this.value = value;
+ // }
+ //
+ // public Object getSecondValue() {
+ // return secondValue;
+ // }
+ //
+ // public void setSecondValue(Object secondValue) {
+ // this.secondValue = secondValue;
+ // }
+ //
+ // public String getLeftBracket() {
+ // return leftBracket;
+ // }
+ //
+ // public void setLeftBracket(String leftBracket) {
+ // this.leftBracket = leftBracket;
+ // }
+ //
+ // public String getRightBracket() {
+ // return rightBracket;
+ // }
+ //
+ // public void setRightBracket(String rightBracket) {
+ // this.rightBracket = rightBracket;
+ // }
+ //
+ // public String getConnect() {
+ // return connect;
+ // }
+ //
+ // public void setConnect(String connect) {
+ // this.connect = connect;
+ // }
+ //}
+ //
+ //public class ModifyCriteria {
+ // //字段
+ // private String field;
+ // //值
+ // private Object value;
+ // //类型
+ // private String type;
+ //
+ // public String getField() {
+ // return field;
+ // }
+ //
+ // public void setField(String field) {
+ // this.field = field;
+ // }
+ //
+ // public String getType() {
+ // return type;
+ // }
+ //
+ // public void setType(String type) {
+ // this.type = type;
+ // }
+ //
+ // public Object getValue() {
+ // return value;
+ // }
+ //
+ // public void setValue(Object value) {
+ // this.value = value;
+ // }
+ //
+ //}
+ //
+ //public List> getBatchModify() {
+ // return batchModify;
+ //}
+ //
+ //public void setBatchModify(List> batchModify) {
+ // this.batchModify = batchModify;
+ //}
+ //
+ //public List getBatchFiled() {
+ // return batchFiled;
+ //}
+ //
+ //public void setBatchFiled(List batchFiled) {
+ // this.batchFiled = batchFiled;
+ //}
+ //
+ //public List getOrder() {
+ // return order;
+ //}
+ //
+ //public void setOrder(List order) {
+ // this.order = order;
+ //}
+ //
+ //public Integer getPageNum() {
+ // return pageNum;
+ //}
+ //
+ //public void setPageNum(Integer pageNum) {
+ // this.pageNum = pageNum;
+ //}
+ //
+ //public Integer getPageSize() {
+ // return pageSize;
+ //}
+ //
+ //public void setPageSize(Integer pageSize) {
+ // this.pageSize = pageSize;
+ //}
+ //
+ //public List getFileds() {
+ // return this.fileds;
+ //}
+ //
+ //public void setFileds(List fileds) {
+ // this.fileds = fileds;
+ //}
+ //
+ //public List getWheres() {
+ // return this.wheres;
+ //}
+ //
+ //public void setWheres(List wheres) {
+ // this.wheres = wheres;
+ //}
+ //
+ //public List getModify() {
+ // return this.modify;
+ //}
+ //
+ //public void setModify(List modify) {
+ // this.modify = modify;
+ //}
+ //
+ //
+ ///**
+ // * @return java.lang.String
+ // * @Author lvleigang
+ // * @Description
+ // * @Date 3:41 下午 2022/12/7
+ // **/
+ //public String getOrderString() {
+ // StringBuffer stringBuffer = new StringBuffer();
+ // if (this.order != null && this.order.size() > 0) {
+ // for (int i = 0; i < this.order.size(); i++) {
+ // if (i == 0) {
+ // stringBuffer.append(this.order.get(i).getOrderSort());
+ // } else {
+ // stringBuffer.append(" , ").append(this.order.get(i).getOrderSort());
+ // }
+ // }
+ // }
+ // return stringBuffer.toString();
+ //}
+ //
+ ///**
+ // * @return java.lang.String
+ // * @Author lvleigang
+ // * @Description
+ // * @Date 3:41 下午 2022/12/7
+ // **/
+ //public List getInsterModify() throws ParseException {
+ // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ // List modifyExamples = new ArrayList<>();
+ // if (this.modify != null && this.modify.size() > 0) {
+ // for (int i = 0; i < this.modify.size(); i++) {
+ // switch (this.modify.get(i).getType()) {
+ // case "int":
+ // modifyExamples.add(new ModifyExample(this.modify.get(i).getField(),(Integer) this.modify.get(i).getValue()));
+ // break;
+ // case "decimal":
+ // modifyExamples.add(new ModifyExample(this.modify.get(i).getField(),new BigDecimal(this.modify.get(i).getValue().toString())));
+ // break;
+ // case "string":
+ // modifyExamples.add(new ModifyExample(this.modify.get(i).getField(),this.modify.get(i).getValue().toString()));
+ // break;
+ // case "date":
+ // modifyExamples.add(new ModifyExample(this.modify.get(i).getField(),simpleDateFormat.parse(this.modify.get(i).getValue().toString())));
+ // break;
+ // default:
+ // throw new BaseSystemException("type:undefined");
+ // }
+ // }
+ // }
+ // return modifyExamples;
+ //}
+ //public List> getBatchInsterModify() throws ParseException {
+ // List> modifyExamples = new ArrayList<>();
+ // if (this.batchModify != null && this.batchModify.size() > 0) {
+ // for (int i = 0; i < this.batchModify.size(); i++) {
+ // modifyExamples.add(getInsterModifyS(this.batchModify.get(i)));
+ // }
+ // }
+ // return modifyExamples;
+ //}
+ //private List getInsterModifyS(List modify) throws ParseException {
+ // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ // List modifyExamples = new ArrayList<>();
+ // if (modify != null && modify.size() > 0) {
+ // for (int i = 0; i < modify.size(); i++) {
+ // switch (modify.get(i).getType()) {
+ // case "int":
+ // modifyExamples.add(new ModifyExample(modify.get(i).getField(),(Integer) modify.get(i).getValue()));
+ // break;
+ // case "decimal":
+ // modifyExamples.add(new ModifyExample(modify.get(i).getField(),new BigDecimal(modify.get(i).getValue().toString())));
+ // break;
+ // case "string":
+ // modifyExamples.add(new ModifyExample(modify.get(i).getField(),modify.get(i).getValue().toString()));
+ // break;
+ // case "date":
+ // modifyExamples.add(new ModifyExample(this.modify.get(i).getField(),simpleDateFormat.parse(modify.get(i).getValue().toString())));
+ // break;
+ // default:
+ // throw new BaseSystemException("type:undefined");
+ // }
+ // }
+ // }
+ // return modifyExamples;
+ //}
+ ///**
+ // * @param
+ // * @return java.util.List
+ // * @Author lvleigang
+ // * @Description 设置where条件
+ // * @Date 3:58 下午 2022/12/7
+ // **/
+ //public List getWhereListds() {
+ // List criterionList = new ArrayList<>();
+ // if (this.wheres != null && this.wheres.size() > 0) {
+ // for (int i = 0; i < this.wheres.size(); i++) {
+ // switch (this.wheres.get(i).getCondition()) {
+ // case "=":
+ // criterionList.add(andFieldEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "!=":
+ // criterionList.add(andFieldNotEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "<":
+ // criterionList.add(andFieldLessThan(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "<=":
+ // criterionList.add(andFieldLessThanOrEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case ">":
+ // criterionList.add(andFieldGreaterThan(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case ">=":
+ // criterionList.add(andFieldGreaterThanOrEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "包含":
+ // criterionList.add(andFieldLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "%" + this.wheres.get(i).getValue() + "%", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "不包含":
+ // criterionList.add(andFieldNotLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "%" + this.wheres.get(i).getValue() + "%", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "开始以":
+ // criterionList.add( andFieldLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue() + "%", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "开始不是以":
+ // criterionList.add(andFieldNotLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue() + "%", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "结束以":
+ // criterionList.add(andFieldLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "%" + this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "结束不是以":
+ // criterionList.add(andFieldNotLike(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "%" + this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "是null":
+ // criterionList.add(andFieldIsNull(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "不是 null":
+ // criterionList.add(andFieldIsNotNull(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "是空的":
+ // criterionList.add(andFieldEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "''", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "不是空的":
+ // criterionList.add(andFieldNotEqualTo(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), "''", this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "介于":
+ // criterionList.add(andFieldBetween(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).getSecondValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "不介于":
+ // criterionList.add(andFieldNotBetween(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).getSecondValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "在列表":
+ // criterionList.add(andFieldIn(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // case "不在列表":
+ // criterionList.add(andFieldNotIn(this.wheres.get(i).getLeftBracket(), this.wheres.get(i).getField(), this.wheres.get(i).getValue(), this.wheres.get(i).rightBracket, i < (this.wheres.size()-1)? this.wheres.get(i).getConnect():""));
+ // break;
+ // default:
+ // throw new BaseSystemException("condition:undefined");
+ // }
+ // }
+ // }
+ // return criterionList;
+ //}
+ //
+ //public void checkNull(String field) {
+ // if (field == null || "".equals(field)) {
+ // throw new RuntimeException("field cannot be null");
+ // }
+ //}
+ //
+ ////拼接sql
+ //
+ //public Criterion andFieldIsNull(String leftBracket, String field, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " is null", rightBracket, connect);
+ //}
+ //
+ //public Criterion andFieldIsNotNull(String leftBracket, String field, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " is not null", rightBracket, connect);
+ //
+ //}
+ //
+ //public Criterion andFieldEqualTo(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " =", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldNotEqualTo(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " <>", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldGreaterThan(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " >", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldGreaterThanOrEqualTo(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " >=", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldLessThan(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " <", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldLessThanOrEqualTo(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " <=", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldLike(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " like", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldNotLike(String leftBracket, String field, Object value, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " not like", value, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldIn(String leftBracket, String field, Object values, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " in", values, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldOr(String leftBracket, String field, List values, String rightBracket, String connect) {
+ // checkNull(field);
+ // if (values == null || values.size() == 0) {
+ // throw new RuntimeException("Value for " + field + " cannot be null");
+ // }
+ // StringBuffer stringBuffer = new StringBuffer();
+ // stringBuffer.append("( ");
+ // for (int i = 0; i < values.size(); i++) {
+ // if (i != 0) {
+ // stringBuffer.append(" or ");
+ // }
+ // stringBuffer.append(field + " = '" + values.get(i) + "' ");
+ // }
+ // stringBuffer.append(" )");
+ // return new Criterion(leftBracket, stringBuffer.toString(), rightBracket, connect);
+ //}
+ //
+ //public Criterion andFieldNotIn(String leftBracket, String field, Object values, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " not in", values, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldBetween(String leftBracket, String field, Object value1, Object value2, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " between", value1, value2, rightBracket, connect, field);
+ //}
+ //
+ //public Criterion andFieldNotBetween(String leftBracket, String field, Object value1, Object value2, String rightBracket, String connect) {
+ // checkNull(field);
+ // return new Criterion(leftBracket, field + " not between", value1, value2, rightBracket, connect, field);
+ //}
+
+
+ private RequestDisposeEntity() {
+ }
+
+ public RequestDisposeEntity(String tablename) {
+ this.tablename = tablename;
+ }
+
+ public List getReturnCriterions() {
+ return returnCriterions;
+ }
+
+ public void setReturnCriterions(List returnCriterions) {
+ this.returnCriterions = returnCriterions;
+ }
+
+ public String getTablename() {
+ return tablename;
+ }
+
+ public void setTablename(String tablename) {
+ this.tablename = tablename;
+ }
+
+ public List getWheres() {
+ return wheres;
+ }
+
+ public void setWheres(List wheres) {
+ this.wheres = wheres;
+ }
+
+ public List getModifys() {
+ return modifys;
+ }
+
+ public void setModifys(List modifys) {
+ this.modifys = modifys;
+ }
+
+ public List getBatchFileds() {
+ return batchFileds;
+ }
+
+ public void setBatchFileds(List batchFileds) {
+ this.batchFileds = batchFileds;
+ }
+
+ public List> getBatchModifys() {
+ return batchModifys;
+ }
+
+ public void setBatchModifys(List> batchModifys) {
+ this.batchModifys = batchModifys;
+ }
+
+ public List getOrder() {
+ return order;
+ }
+
+ public void setOrder(List order) {
+ this.order = order;
+ }
+
+ public Integer getPageNum() {
+ return pageNum;
+ }
+
+ public void setPageNum(Integer pageNum) {
+ this.pageNum = pageNum;
+ }
+
+ public Integer getPageSize() {
+ return pageSize;
+ }
+
+ public void setPageSize(Integer pageSize) {
+ this.pageSize = pageSize;
+ }
+
+ public DataSourceType getDataBaseType() {
+ return dataBaseType;
+ }
+
+ public void setDataBaseType(DataSourceType dataBaseType) {
+ this.dataBaseType = dataBaseType;
+ }
+
+ public String getDataSourceCode() {
+ return dataSourceCode;
+ }
+
+ public void setDataSourceCode(String dataSourceCode) {
+ this.dataSourceCode = dataSourceCode;
+ }
+
+
+ @Override
+ public String toString() {
+ return "RequestDisposeEntity{" +
+ "returnCriterions=" + returnCriterions +
+ ", tablename='" + tablename + '\'' +
+ ", wheres=" + wheres +
+ ", modifys=" + modifys +
+ ", batchFileds=" + batchFileds +
+ ", batchModifys=" + batchModifys +
+ ", order=" + order +
+ ", pageNum=" + pageNum +
+ ", pageSize=" + pageSize +
+ ", dataBaseType=" + dataBaseType +
+ ", dataSourceCode='" + dataSourceCode + '\'' +
+ '}';
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntityMapper.xml b/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntityMapper.xml
new file mode 100644
index 00000000..2e1db2ee
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/RequestDisposeEntityMapper.xml
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+ ${returnCriterions.sqlFiled} as ${returnCriterions.returnField} ,
+
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+ ${wheresCriterion.leftBracket} ${wheresCriterion.filed} ${wheresCriterion.condition} ${wheresCriterion.rightBracket}
+ ${wheresCriterion.connect}
+
+
+ ${wheresCriterion.leftBracket} ${wheresCriterion.filed} ${wheresCriterion.condition}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #{wheresCriterion.value}
+
+
+ ${wheresCriterion.rightBracket} ${wheresCriterion.connect}
+
+
+ ${wheresCriterion.leftBracket} ${wheresCriterion.filed} ${wheresCriterion.condition} #{wheresCriterion.value} and
+ #{wheresCriterion.secondValue} ${wheresCriterion.rightBracket} ${wheresCriterion.connect}
+
+
+ ${wheresCriterion.leftBracket} ${wheresCriterion.filed} ${wheresCriterion.condition}
+
+ #{listItem}
+
+ ${wheresCriterion.rightBracket} ${wheresCriterion.connect}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ insert into ${tablename} (
+
+
+ ${items.filedName} ,
+
+
+ )
+ values (
+
+
+
+
+ #{items.filedValue,jdbcType=INTEGER} ,
+
+
+ #{items.filedValue,jdbcType=DECIMAL} ,
+
+
+ #{items.filedValue,jdbcType=VARCHAR} ,
+
+
+ #{items.filedValue,jdbcType=TIMESTAMP} ,
+
+
+
+
+ )
+
+
+
+
+ insert into ${tablename}
+
+
+ ${items} ,
+
+
+
+
+
+
+
+
+ #{filedValue.filedValue,jdbcType=INTEGER} ,
+
+
+ #{filedValue.filedValue,jdbcType=DECIMAL} ,
+
+
+ #{filedValue.filedValue,jdbcType=VARCHAR} ,
+
+
+ #{filedValue.filedValue,jdbcType=TIMESTAMP} ,
+
+
+
+
+
+
+
+
+ update ${tablename}
+
+
+
+
+
+ ${items.filedName} = #{items.filedValue,jdbcType=INTEGER} ,
+
+
+ ${items.filedName} = #{items.filedValue,jdbcType=DECIMAL} ,
+
+
+ ${items.filedName} = #{items.filedValue,jdbcType=VARCHAR} ,
+
+
+ ${items.filedName} = #{items.filedValue,jdbcType=TIMESTAMP} ,
+
+
+
+
+
+
+
+
+
+
+
+ delete from ${tablename}
+
+
+
+
+
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/ReturnCriterion.java b/common/src/main/java/com/hzya/frame/basedao/entity/ReturnCriterion.java
new file mode 100644
index 00000000..b9044edf
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/ReturnCriterion.java
@@ -0,0 +1,22 @@
+package com.hzya.frame.basedao.entity;
+
+/**
+ * @ClassName ReturnCriterion
+ * @Description 返回对象
+ * @Author llg
+ * Date 2022/12/3 1:55 下午
+ */
+public class ReturnCriterion {
+ private String sqlFiled;
+ private String returnField;
+
+ public ReturnCriterion(String sqlFiled) {
+ this.sqlFiled = sqlFiled;
+ this.returnField = sqlFiled;
+ }
+
+ public ReturnCriterion(String sqlFiled, String returnField) {
+ this.sqlFiled = sqlFiled;
+ this.returnField = returnField;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/SortOrderType.java b/common/src/main/java/com/hzya/frame/basedao/entity/SortOrderType.java
new file mode 100644
index 00000000..66011195
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/SortOrderType.java
@@ -0,0 +1,56 @@
+package com.hzya.frame.basedao.entity;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+
+/**
+ * @Author lvleigang
+ * @Description 排序对象
+ * @Date 11:30 上午 2022/12/9
+ * @param null
+ * @return
+ **/
+public enum SortOrderType {
+ DESC("DESC", "DESC"),
+ ASC("ASC", "ASC");
+ //类型
+ private String type;
+ //值
+ private String values;
+
+ SortOrderType() {
+ }
+
+ SortOrderType(String type, String values) {
+ this.type = type;
+ this.values = values;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getValues() {
+ return values;
+ }
+
+ public void setValues(String values) {
+ this.values = values;
+ }
+
+ /**
+ * 增加映射方法,并为方法添加@JsonCreator
+ */
+ @JsonCreator
+ public static SortOrderType getSortOrderTypeFromCodeName(String value) {
+ for (SortOrderType dep : SortOrderType.values()) {
+ if (dep.getType().equals(value)) {
+ return dep;
+ }
+ }
+ return null;
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/entity/WhereCriterion.java b/common/src/main/java/com/hzya/frame/basedao/entity/WhereCriterion.java
new file mode 100644
index 00000000..3ec52ec0
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/entity/WhereCriterion.java
@@ -0,0 +1,207 @@
+package com.hzya.frame.basedao.entity;
+
+import java.util.List;
+
+/**
+ * @ClassName WhereCriterion
+ * @Description 条件对象
+ * @Author llg
+ * Date 2022/12/3 1:55 下午
+ */
+public class WhereCriterion {
+ //左括号
+ private String leftBracket;
+ //字段
+ private String filed;
+ //条件
+ private String condition;
+ private ConditionType conditions;
+ //值
+ private Object value;
+ //第二个值
+ private Object secondValue;
+ //右括号
+ private String rightBracket;
+ //连接
+ private ConnectType connect;
+ //没有值
+ private boolean noValue;
+ //单值
+ private boolean singleValue;
+ //之间值
+ private boolean betweenValue;
+ //list值
+ private boolean listValue;
+ //类型的处理程序
+ private String typeHandler;
+
+ private WhereCriterion() {
+ }
+
+ public WhereCriterion(String leftBracket, String filed, String condition, String rightBracket, ConnectType connect) {
+ super();
+ this.leftBracket = leftBracket;
+ this.filed = filed;
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ this.rightBracket = rightBracket;
+ this.connect = connect;
+ }
+ public WhereCriterion(String leftBracket,String filed, String condition, Object value, String rightBracket, ConnectType connect, String typeHandler) {
+ super();
+ this.leftBracket = leftBracket;
+ this.filed = filed;
+ this.condition = condition;
+ this.value = value;
+ this.rightBracket = rightBracket;
+ this.connect = connect;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+ public WhereCriterion(String leftBracket,String filed, String condition, Object value, String rightBracket, ConnectType connect) {
+ this(leftBracket, filed, condition, value,rightBracket,connect, null);
+ }
+ public WhereCriterion(String leftBracket,String filed, String condition, Object value, Object secondValue, String rightBracket, ConnectType connect, String typeHandler) {
+ super();
+ this.leftBracket = leftBracket;
+ this.filed = filed;
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.rightBracket = rightBracket;
+ this.connect = connect;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+ public WhereCriterion(String leftBracket, String filed, String condition, Object value, Object secondValue, String rightBracket, ConnectType connect) {
+ this(leftBracket,filed,condition, value, secondValue,rightBracket,connect, null);
+ }
+
+ public String getLeftBracket() {
+ return leftBracket;
+ }
+
+ public void setLeftBracket(String leftBracket) {
+ this.leftBracket = leftBracket;
+ }
+
+ public String getFiled() {
+ return filed;
+ }
+
+ public void setFiled(String filed) {
+ this.filed = filed;
+ }
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public void setCondition(String condition) {
+ this.condition = condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public void setValue(Object value) {
+ this.value = value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public void setSecondValue(Object secondValue) {
+ this.secondValue = secondValue;
+ }
+
+ public String getRightBracket() {
+ return rightBracket;
+ }
+
+ public void setRightBracket(String rightBracket) {
+ this.rightBracket = rightBracket;
+ }
+
+ public ConnectType getConnect() {
+ return connect;
+ }
+
+ public void setConnect(ConnectType connect) {
+ this.connect = connect;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public void setNoValue(boolean noValue) {
+ this.noValue = noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public void setSingleValue(boolean singleValue) {
+ this.singleValue = singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public void setBetweenValue(boolean betweenValue) {
+ this.betweenValue = betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public void setListValue(boolean listValue) {
+ this.listValue = listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ public void setTypeHandler(String typeHandler) {
+ this.typeHandler = typeHandler;
+ }
+
+ public ConditionType getConditions() {
+ return conditions;
+ }
+
+ public void setConditions(ConditionType conditions) {
+ this.conditions = conditions;
+ }
+
+ @Override
+ public String toString() {
+ return "WhereCriterion{" +
+ "leftBracket='" + leftBracket + '\'' +
+ ", filed='" + filed + '\'' +
+ ", condition='" + condition + '\'' +
+ ", conditions=" + conditions +
+ ", value=" + value +
+ ", secondValue=" + secondValue +
+ ", rightBracket='" + rightBracket + '\'' +
+ ", connect=" + connect +
+ ", noValue=" + noValue +
+ ", singleValue=" + singleValue +
+ ", betweenValue=" + betweenValue +
+ ", listValue=" + listValue +
+ ", typeHandler='" + typeHandler + '\'' +
+ '}';
+ }
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/service/BaseDaoUtil.java b/common/src/main/java/com/hzya/frame/basedao/service/BaseDaoUtil.java
new file mode 100644
index 00000000..b1aa8cf1
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/service/BaseDaoUtil.java
@@ -0,0 +1,374 @@
+package com.hzya.frame.basedao.service;
+
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.basedao.entity.ModifyCriterion;
+import com.hzya.frame.basedao.entity.OrderCriterion;
+import com.hzya.frame.basedao.entity.RequestDisposeEntity;
+import com.hzya.frame.basedao.entity.ReturnCriterion;
+import com.hzya.frame.basedao.entity.WhereCriterion;
+
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * @Author lvleigang
+ * @Description 连接对外提供的查询类
+ * @Date 1:45 下午 2022/12/3
+ **/
+public interface BaseDaoUtil {
+
+ /**
+ * @param tablename 表名称
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 查询数量
+ * @Date 8:46 上午 2022/12/7
+ **/
+ Integer selectCount(String tablename);
+
+ /**
+ * @param tablename 表名称
+ * @param list 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 根据条件查询数量
+ * @Date 9:06 上午 2022/12/7
+ **/
+ Integer selectCount(String tablename, List list);
+
+ /**
+ * 查询一个对象
+ * @param tablename 表名
+ * @param whereList 条件列表
+ * @return
+ */
+ HashMap selectOne(String tablename, List whereList);
+
+ /**
+ * 查询一个对象
+ * @param tablename 表名
+ * @param returnCriterionList 返回字段列表
+ * @param whereList 查询条件列表
+ * @return
+ */
+ HashMap selectOne(String tablename, List returnCriterionList,List whereList);
+ /**
+ * 根据id查询
+ * @param tablename
+ * @param id
+ * @return
+ */
+ HashMap selectById(String tablename,String id);
+
+ /**
+ * 根据id查询
+ * @param tablename 表名
+ * @param id
+ * @param returnCriterionList 返回字段列表
+ * @return
+ */
+ HashMap selectById(String tablename,String id,List returnCriterionList);
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名查询数据
+ * @Date 9:08 上午 2022/12/7
+ **/
+ List> selectList(String tablename);
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名查询数据
+ * @Date 9:08 上午 2022/12/7
+ **/
+ List> selectList(String tablename,List returnCriterionList, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ List> selectWhereList(String tablename, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ List> selectReturnList(String tablename, List returnCriterionList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ List> selectList(String tablename, List order);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ List> selectWhereList(String tablename, List order, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ List> selectReturnList(String tablename, List order, List returnCriterionList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ List> selectList(String tablename, List order, List returnCriterionListList, List whereList);
+
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,使用默认分页
+ * @Date 9:08 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename);
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据
+ * @Date 9:08 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件分页查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ PageInfo selectWherePage(String tablename, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件分页查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ PageInfo selectWherePage(String tablename, List whereList, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ PageInfo selectReturnPage(String tablename, List returnCriterionListList);
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ PageInfo selectReturnPage(String tablename, List returnCriterionListList, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename, List order);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename,List order, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ PageInfo selectWherePage(String tablename,List order, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ PageInfo selectWherePage(String tablename, List order, List whereList, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ PageInfo selectReturnPage(String tablename,List order, List returnCriterionListList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ PageInfo selectReturnPage(String tablename,List order, List returnCriterionListList, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename,List order, List returnCriterionListList, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ PageInfo selectPage(String tablename, List order, List returnCriterionListList, List whereList, Integer pageNum, Integer pageSize);
+
+ /**
+ * @param tablename 表名称
+ * @param modifyExamples 单个对象值
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 添加单条记录
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer insterOne(String tablename, List modifyExamples);
+
+ /**
+ * @param tablename 表名称
+ * @param filedExamples 字段名称
+ * @param selectiveModifyExamples 多个对象值
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 添加多条记录
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer insterList(String tablename, List filedExamples, List> selectiveModifyExamples);
+
+ /**
+ * @param tablename 表名称
+ * @param modifyExamples 需要修改后的数据
+ * @param whereList 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 修改数据
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer update(String tablename, List modifyExamples, List whereList);
+
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 逻辑删除数据
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer deleteLogic(String tablename, List modifyExamples, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param id id
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 删除数据
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer deleteLogic(String tablename, String id);
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 删除数据
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer delete(String tablename, List whereList);
+
+ /**
+ * @param tablename 表名称
+ * @param id 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 删除数据
+ * @Date 9:27 上午 2022/12/7
+ **/
+ Integer delete(String tablename, String id);
+ RequestDisposeEntity setJdbcExample(String tablename, List order, List returnCriterionListList, List whereList, Integer pageNum, Integer pageSize);
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/service/GeneralService.java b/common/src/main/java/com/hzya/frame/basedao/service/GeneralService.java
new file mode 100644
index 00000000..c71597ef
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/service/GeneralService.java
@@ -0,0 +1,138 @@
+package com.hzya.frame.basedao.service;
+
+import com.alibaba.fastjson.JSONObject;
+import com.hzya.frame.web.entity.JsonResultEntity;
+
+/**
+ * @Author lvleigang
+ * @Description 通用service
+ * @Date 9:34 上午 2022/12/7
+ * @return
+ **/
+public interface GeneralService {
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询list
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity selectList(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询list
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity selectListSimple(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询page
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity selectPage(JSONObject jsonObject);
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询page
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity selectPageSimple(JSONObject jsonObject);
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 添加
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity inster(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 添加list
+ * @Date 9:41 上午 2022/12/7
+ **/
+ JsonResultEntity insterList(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 修改
+ * @Date 9:41 上午 2022/12/7
+ **/
+ JsonResultEntity update(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 删除
+ * @Date 9:41 上午 2022/12/7
+ **/
+ JsonResultEntity delete(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询字段 // todo 暂时不对
+ * @Date 9:41 上午 2022/12/7
+ **/
+ JsonResultEntity defaultField(JSONObject jsonObject);
+
+ //*******************************
+
+ /**
+ * @Author lvleigang
+ * @Description 查询树-配置通用接口 ok
+ * @Date 3:21 下午 2023/2/14
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ **/
+ JsonResultEntity queryTree(JSONObject jsonObject);
+
+ /**
+ * @Author lvleigang
+ * @Description 删除树-配置通用接口 ok
+ * @Date 3:21 下午 2023/2/14
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ **/
+ JsonResultEntity delectTree(JSONObject jsonObject);
+
+ /**
+ * @Author lvleigang
+ * @Description 查询树节点下级的节点数据 ok
+ * @Date 3:21 下午 2023/2/14
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ **/
+ JsonResultEntity selectTreeSubordinateList(JSONObject jsonObject);
+ /**
+ * @Author lvleigang
+ * @Description 查询树节点下面所有的递归节点数据 ok
+ * @Date 3:21 下午 2023/2/14
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ **/
+ JsonResultEntity selectTreeAllList(JSONObject jsonObject);
+
+ /**
+ * @param jsonObject
+ * @return com.hzya.frame.web.entity.JsonResultEntity
+ * @Author lvleigang
+ * @Description 查询数据字典
+ * @Date 9:40 上午 2022/12/7
+ **/
+ JsonResultEntity selectDictionaryshop(JSONObject jsonObject);
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/service/IBaseService.java b/common/src/main/java/com/hzya/frame/basedao/service/IBaseService.java
new file mode 100644
index 00000000..83cf34c1
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/service/IBaseService.java
@@ -0,0 +1,54 @@
+package com.hzya.frame.basedao.service;
+
+
+import com.alibaba.fastjson.JSONObject;
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.page.PageAttribute;
+import com.hzya.frame.web.entity.JsonResultEntity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public interface IBaseService {
+ E get(PK paramPK);
+
+ int removeById(PK paramPK) throws Exception;
+
+ int logicRemove(E e) throws Exception;
+
+ int logicRemoveMultiCondition(E paramE) throws Exception;
+
+ E saveOrUpdate(E paramE) throws Exception;
+
+ E save(E paramE) throws Exception;
+
+ E update(E paramE) throws Exception;
+
+ E queryOne(E paramE);
+
+ List getAll();
+
+ List query(E paramE);
+
+ List queryByLike(E paramE);
+
+ List queryByOr(E paramE);
+
+ PageAttribute queryPaged(String paramString, E paramE);
+
+ PageAttribute queryPaged(E paramE);
+
+ boolean checkRepeated(E paramE);
+
+ //***************前端分页*************
+ JsonResultEntity queryPagedJson(JSONObject jsonObject);
+ //***************前端list*************
+ JsonResultEntity queryListJson(JSONObject jsonObject);
+ //***************前端保存*************
+ JsonResultEntity saveJson(JSONObject jsonObject);
+ //***************前端修改*************
+ JsonResultEntity updateJson(JSONObject jsonObject);
+ //***************前端删除*************
+ JsonResultEntity deleteJson(JSONObject jsonObject);
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/service/JdbcService.java b/common/src/main/java/com/hzya/frame/basedao/service/JdbcService.java
new file mode 100644
index 00000000..26498056
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/service/JdbcService.java
@@ -0,0 +1,100 @@
+package com.hzya.frame.basedao.service;
+
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.basedao.entity.RequestDisposeEntity;
+
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * @Author lvleigang
+ * @Description jdbd 连接对外提供的类
+ * @Date 1:45 下午 2022/12/3
+ **/
+public interface JdbcService {
+
+ /**
+ * @param example
+ * @return int
+ * @Author lvleigang
+ * @Description 查询总数
+ * @Date 2:51 下午 2022/12/3
+ **/
+ int countByExample(RequestDisposeEntity example);
+
+ /**
+ * @param example
+ * @return java.util.List
+ * @Author lvleigang
+ * @Description 查询数据
+ * @Date 2:53 下午 2022/12/3
+ **/
+ List> selectByExample(RequestDisposeEntity example);
+
+ /**
+ * @param sql
+ * @return java.util.List
+ * @Author lvleigang
+ * @Description 自定义sql查询查询
+ * @Date 2:53 下午 2022/12/3
+ **/
+ List> selectByExample(String sql);
+
+ /**
+ * @param example
+ * @return PageInfo
+ * @Author lvleigang
+ * @Description 分页查询数据
+ * @Date 2:53 下午 2022/12/3
+ **/
+ PageInfo queryPageByExample(RequestDisposeEntity example);
+
+ /**
+ * @param sql
+ * @return PageInfo
+ * @Author lvleigang
+ * @Description 分页查询数据
+ * @Date 2:53 下午 2022/12/3
+ **/
+ PageInfo queryPageByExample(String sql);
+
+ /**
+ * @param example
+ * @return int
+ * @Author lvleigang
+ * @Description 添加数据
+ * @Date 2:52 下午 2022/12/3
+ **/
+ Integer insert(RequestDisposeEntity example);
+
+
+ /**
+ * @param example
+ * @return int
+ * @Author lvleigang
+ * @Description 批量添加数据
+ * @Date 2:53 下午 2022/12/3
+ **/
+ int insertSelective(RequestDisposeEntity example);
+
+ /**
+ * @param example
+ * @return int
+ * @Author lvleigang
+ * @Description 删除
+ * @Date 2:52 下午 2022/12/3
+ **/
+ int deleteByExample(RequestDisposeEntity example);
+
+
+ /**
+ * @param example
+ * @return int
+ * @Author lvleigang
+ * @Description 根据条件修改
+ * @Date 2:54 下午 2022/12/3
+ **/
+ int updateByExample(RequestDisposeEntity example);
+
+
+}
diff --git a/common/src/main/java/com/hzya/frame/basedao/service/impl/BaseDaoUtilImpl.java b/common/src/main/java/com/hzya/frame/basedao/service/impl/BaseDaoUtilImpl.java
new file mode 100644
index 00000000..2744d558
--- /dev/null
+++ b/common/src/main/java/com/hzya/frame/basedao/service/impl/BaseDaoUtilImpl.java
@@ -0,0 +1,881 @@
+package com.hzya.frame.basedao.service.impl;
+
+import com.github.pagehelper.PageInfo;
+import com.hzya.frame.basedao.entity.ConditionType;
+import com.hzya.frame.basedao.entity.ConnectType;
+import com.hzya.frame.basedao.entity.ModifyCriterion;
+import com.hzya.frame.basedao.entity.OrderCriterion;
+import com.hzya.frame.basedao.entity.RequestDisposeEntity;
+import com.hzya.frame.basedao.entity.ReturnCriterion;
+import com.hzya.frame.basedao.entity.WhereCriterion;
+import com.hzya.frame.basedao.service.BaseDaoUtil;
+import com.hzya.frame.basedao.service.JdbcService;
+import org.apache.commons.collections.CollectionUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * @Author lvleigang
+ * @Description 连接对外提供的类
+ * @Date 1:45 下午 2022/12/3
+ **/
+@Service
+public class BaseDaoUtilImpl implements BaseDaoUtil {
+
+ private final Logger logger = LoggerFactory.getLogger(this.getClass());
+ private static HashMap> filedMap;
+ private static List orderCriterionList;
+ static {
+ filedMap = new HashMap<>();
+ List returnCriteria = new ArrayList<>();
+ ReturnCriterion id = new ReturnCriterion("id");
+ returnCriteria.add(id);
+ ReturnCriterion age = new ReturnCriterion("age");
+ returnCriteria.add(age);
+ ReturnCriterion name = new ReturnCriterion("name");
+ returnCriteria.add(name);
+ ReturnCriterion updateDate = new ReturnCriterion("update_date", "updateDate");
+ returnCriteria.add(updateDate);
+ ReturnCriterion hireDate = new ReturnCriterion("hire_date", "hireDate");
+ returnCriteria.add(hireDate);
+ ReturnCriterion price = new ReturnCriterion("price");
+ returnCriteria.add(price);
+ filedMap.put("sys_testjdbc", returnCriteria);
+ }
+ static {
+ orderCriterionList = new ArrayList<>();
+ orderCriterionList.add(new OrderCriterion("id", "ASC"));
+ }
+
+ @Resource
+ JdbcService jdbcService;
+
+ /**
+ * @param tablename 表名称
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 查询数量
+ * @Date 8:46 上午 2022/12/7
+ **/
+ @Override
+ public Integer selectCount(String tablename) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, null, null, null);
+ //调用方法
+ Integer counts = jdbcService.countByExample(example);
+ return counts;
+ }
+
+
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 条件
+ * @return java.lang.Integer
+ * @Author lvleigang
+ * @Description 根据条件查询数量
+ * @Date 9:06 上午 2022/12/7
+ **/
+ @Override
+ public Integer selectCount(String tablename, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, null, null);
+ //调用方法
+ Integer counts = jdbcService.countByExample(example);
+ return counts;
+ }
+
+ /**
+ * 查询一个对象
+ *
+ * @param tablename 表名
+ * @param whereList 条件列表
+ * @return
+ */
+ @Override
+ public HashMap selectOne(String tablename, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ if (CollectionUtils.isNotEmpty(list)) {
+ if (list.size() == 1){
+ return list.get(0);
+ }else {
+ throw new RuntimeException("select one but found"+list.size());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * 查询一个对象
+ *
+ * @param tablename 表名
+ * @param returnCriterionList 返回字段列表
+ * @param whereList 查询条件列表
+ * @return
+ */
+ @Override
+ public HashMap selectOne(String tablename, List returnCriterionList, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionList, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ if (CollectionUtils.isNotEmpty(list)) {
+ if (list.size() == 1){
+ return list.get(0);
+ }else {
+ throw new RuntimeException("select one but found"+list.size());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * 根据id查询
+ *
+ * @param tablename
+ * @param id
+ * @return
+ */
+ @Override
+ public HashMap selectById(String tablename, String id) {
+ List whereList = new ArrayList<>();
+ WhereCriterion whereCriterion = new WhereCriterion("","id", ConditionType.等于.getValue(), id,"", ConnectType.AND);
+ whereList.add(whereCriterion);
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ if (CollectionUtils.isNotEmpty(list)) {
+ if (list.size() == 1){
+ return list.get(0);
+ }else {
+ throw new RuntimeException("select one but found"+list.size());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * 根据id查询
+ *
+ * @param tablename 表名
+ * @param id
+ * @param returnCriterionList 返回字段列表
+ * @return
+ */
+ @Override
+ public HashMap selectById(String tablename, String id, List returnCriterionList) {
+ List whereList = new ArrayList<>();
+ WhereCriterion whereCriterion = new WhereCriterion("","id", ConditionType.等于.getValue(), id,"", ConnectType.AND);
+ whereList.add(whereCriterion);
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionList, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ if (CollectionUtils.isNotEmpty(list)) {
+ if (list.size() == 1){
+ return list.get(0);
+ }else {
+ throw new RuntimeException("select one but found"+list.size());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名查询数据
+ * @Date 9:08 上午 2022/12/7
+ **/
+ @Override
+ public List> selectList(String tablename) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, null, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public List> selectWhereList(String tablename, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public List> selectReturnList(String tablename, List returnCriterionListList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionListList, null, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ @Override
+ public List> selectList(String tablename, List order) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, null, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public List> selectWhereList(String tablename, List order, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public List> selectReturnList(String tablename, List order, List returnCriterionListList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, returnCriterionListList, null, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ @Override
+ public List> selectList(String tablename, List order, List returnCriterionListList, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, returnCriterionListList, whereList, null, null);
+ //调用方法
+ logger.info("getWheres:"+example.toString());
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ @Override
+ public List> selectList(String tablename, List returnCriterionListList, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionListList, whereList, null, null);
+ //调用方法
+ List> list = jdbcService.selectByExample(example);
+ return list;
+ }
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,使用默认分页
+ * @Date 9:08 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectPage(String tablename) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, null, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据
+ * @Date 9:08 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectPage(String tablename, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, null, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件分页查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectWherePage(String tablename, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param whereList 查询条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件分页查询数据
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectWherePage(String tablename, List whereList, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, null, whereList, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectReturnPage(String tablename, List returnCriterionListList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionListList, null, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名分页查询数据,且设置返回字段
+ * @Date 9:15 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectReturnPage(String tablename, List returnCriterionListList, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, null, returnCriterionListList, null, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectPage(String tablename, List order) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, null, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名排序查询数据
+ * @Date 9:16 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectPage(String tablename, List order, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, null, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectWherePage(String tablename, List order, List whereList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, whereList, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和条件,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectWherePage(String tablename, List order, List whereList, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, null, whereList, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectReturnPage(String tablename, List order, List returnCriterionListList) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, returnCriterionListList, null, null, null);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回字段
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名和返回字段,排序查询数据
+ * @Date 9:17 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectReturnPage(String tablename, List order, List returnCriterionListList, Integer pageNum, Integer pageSize) {
+ //设置对象
+ RequestDisposeEntity example = setJdbcExample(tablename, order, returnCriterionListList, null, pageNum, pageSize);
+ //调用方法
+ PageInfo pageInfo = jdbcService.queryPageByExample(example);
+ return pageInfo;
+ }
+
+ /**
+ * @param tablename 表名称
+ * @param order 排序
+ * @param returnCriterionListList 返回
+ * @param whereList 条件
+ * @return java.util.List>
+ * @Author lvleigang
+ * @Description 根据表名称和条件,设置返回字段排序查询时间
+ * @Date 9:18 上午 2022/12/7
+ **/
+ @Override
+ public PageInfo selectPage(String tablename, List