From 247dfb3cbff4537cee7cb7f0acd7f16f5204ca71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sat, 17 Oct 2020 00:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B3=E5=8F=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/jsh_erp.sql | 18 + docs/数据库更新记录-方便升级.txt | 20 +- erp_web/pages/manage/plugin.html | 82 ++- .../java/com/jsh/erp/config/TenantConfig.java | 2 +- .../erp/controller/DepotItemController.java | 4 +- .../controller/MaterialExtendController.java | 7 +- .../controller/PlatformConfigController.java | 86 ++++ .../datasource/entities/PlatformConfig.java | 43 ++ .../entities/PlatformConfigExample.java | 469 ++++++++++++++++++ .../mappers/PlatformConfigMapper.java | 30 ++ .../mappers/PlatformConfigMapperEx.java | 19 + .../MaterialExtendComponent.java | 2 +- .../MaterialExtendResource.java | 2 +- .../MaterialExtend/MaterialExtendService.java | 3 +- .../service/depotItem/DepotItemService.java | 4 +- .../erp/service/material/MaterialService.java | 3 +- .../PlatformConfigComponent.java | 69 +++ .../PlatformConfigResource.java | 15 + .../platformConfig/PlatformConfigService.java | 149 ++++++ .../mapper_xml/PlatformConfigMapper.xml | 196 ++++++++ src/test/resources/generatorConfig.xml | 1 + 21 files changed, 1200 insertions(+), 24 deletions(-) create mode 100644 src/main/java/com/jsh/erp/controller/PlatformConfigController.java create mode 100644 src/main/java/com/jsh/erp/datasource/entities/PlatformConfig.java create mode 100644 src/main/java/com/jsh/erp/datasource/entities/PlatformConfigExample.java create mode 100644 src/main/java/com/jsh/erp/datasource/mappers/PlatformConfigMapper.java create mode 100644 src/main/java/com/jsh/erp/datasource/mappers/PlatformConfigMapperEx.java create mode 100644 src/main/java/com/jsh/erp/service/platformConfig/PlatformConfigComponent.java create mode 100644 src/main/java/com/jsh/erp/service/platformConfig/PlatformConfigResource.java create mode 100644 src/main/java/com/jsh/erp/service/platformConfig/PlatformConfigService.java create mode 100644 src/main/resources/mapper_xml/PlatformConfigMapper.xml diff --git a/docs/jsh_erp.sql b/docs/jsh_erp.sql index 3156794d..7ffe3e9c 100644 --- a/docs/jsh_erp.sql +++ b/docs/jsh_erp.sql @@ -972,3 +972,21 @@ INSERT INTO `jsh_user_business` VALUES ('66', 'UserRole', '130', '[10]', null, ' INSERT INTO `jsh_user_business` VALUES ('67', 'UserRole', '131', '[17]', null, '0'); INSERT INTO `jsh_user_business` VALUES ('68', 'RoleFunctions', '16', '[210]', null, '0'); INSERT INTO `jsh_user_business` VALUES ('69', 'RoleFunctions', '17', '[210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]', '[{\"funId\":\"241\",\"btnStr\":\"1,2\"},{\"funId\":\"33\",\"btnStr\":\"1,2\"},{\"funId\":\"199\",\"btnStr\":\"1,2\"},{\"funId\":\"242\",\"btnStr\":\"1,2\"},{\"funId\":\"41\",\"btnStr\":\"1,2\"},{\"funId\":\"200\",\"btnStr\":\"1,2\"},{\"funId\":\"210\",\"btnStr\":\"1,2\"},{\"funId\":\"211\",\"btnStr\":\"1,2\"},{\"funId\":\"197\",\"btnStr\":\"1\"},{\"funId\":\"203\",\"btnStr\":\"1\"},{\"funId\":\"204\",\"btnStr\":\"1\"},{\"funId\":\"205\",\"btnStr\":\"1\"},{\"funId\":\"206\",\"btnStr\":\"1\"},{\"funId\":\"212\",\"btnStr\":\"1\"},{\"funId\":\"201\",\"btnStr\":\"1,2\"},{\"funId\":\"202\",\"btnStr\":\"1,2\"},{\"funId\":\"40\",\"btnStr\":\"1,2\"},{\"funId\":\"232\",\"btnStr\":\"1,2\"},{\"funId\":\"233\",\"btnStr\":\"1,2\"}]', '0'); + +-- ---------------------------- +-- Table structure for jsh_platform_config +-- ---------------------------- +DROP TABLE IF EXISTS `jsh_platform_config`; +CREATE TABLE `jsh_platform_config` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `platform_key` varchar(100) DEFAULT NULL COMMENT '关键词', + `platform_key_info` varchar(100) DEFAULT NULL COMMENT '关键词名称', + `platform_value` varchar(200) DEFAULT NULL COMMENT '值', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='平台参数'; + +-- ---------------------------- +-- Records of jsh_platform_config +-- ---------------------------- +INSERT INTO `jsh_platform_config` VALUES ('1', 'platform_name', '平台名称', '华夏ERP'); +INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null); diff --git a/docs/数据库更新记录-方便升级.txt b/docs/数据库更新记录-方便升级.txt index dd7e2ef8..71160de2 100644 --- a/docs/数据库更新记录-方便升级.txt +++ b/docs/数据库更新记录-方便升级.txt @@ -1020,4 +1020,22 @@ alter table jsh_depot_item change delete_Flag delete_flag varchar(1) DEFAULT '0' alter table jsh_depot_head add creator bigint(20) DEFAULT NULL COMMENT '操作员' after hands_person_id; alter table jsh_account_head add creator bigint(20) DEFAULT NULL COMMENT '操作员' after hands_person_id; alter table jsh_depot_head drop column oper_person_name; -update jsh_depot_head set creator=hands_person_id; \ No newline at end of file +update jsh_depot_head set creator=hands_person_id; + + +-- -------------------------------------------------------- +-- 时间 2020年10月17日 +-- by jishenghua +-- 增加平台表 +-- -------------------------------------------------------- +DROP TABLE IF EXISTS `jsh_platform_config`; +CREATE TABLE `jsh_platform_config` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `platform_key` varchar(100) DEFAULT NULL COMMENT '关键词', + `platform_key_info` varchar(100) DEFAULT NULL COMMENT '关键词名称', + `platform_value` varchar(200) DEFAULT NULL COMMENT '值', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='平台参数'; + +INSERT INTO `jsh_platform_config` VALUES ('1', 'platform_name', '平台名称', '华夏ERP'); +INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null); \ No newline at end of file diff --git a/erp_web/pages/manage/plugin.html b/erp_web/pages/manage/plugin.html index 84f41118..201d6a43 100644 --- a/erp_web/pages/manage/plugin.html +++ b/erp_web/pages/manage/plugin.html @@ -33,7 +33,7 @@ 重置