Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
b3510488
Commit
b3510488
authored
Jun 19, 2021
by
季圣华
Browse files
网址改为配置
parent
dd901683
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/docs/jsh_erp.sql
View file @
b3510488
...
...
@@ -667,6 +667,7 @@ CREATE TABLE `jsh_platform_config` (
-- ----------------------------
INSERT
INTO
`jsh_platform_config`
VALUES
(
'1'
,
'platform_name'
,
'平台名称'
,
'华夏ERP'
);
INSERT
INTO
`jsh_platform_config`
VALUES
(
'2'
,
'activation_code'
,
'激活码'
,
'b687998cc991278832e0ebcb7a6e7d0f6870c29d21679e58fa91e388985b9df5c2cd553a8d2f91de'
);
INSERT
INTO
`jsh_platform_config`
VALUES
(
'3'
,
'platform_url'
,
'官方网站'
,
'http://www.huaxiaerp.com/'
);
-- ----------------------------
-- Table structure for jsh_role
...
...
jshERP-boot/docs/数据库更新记录-首次安装请勿使用.txt
View file @
b3510488
...
...
@@ -1076,4 +1076,11 @@ update jsh_material_category set delete_flag='0';
-- by jishenghua
-- 增加租户管理菜单
-- --------------------------------------------------------
INSERT INTO `jsh_erp`.`jsh_function` (`id`, `number`, `name`, `parent_number`, `url`, `component`, `state`, `sort`, `enabled`, `type`, `push_btn`, `icon`, `delete_flag`) VALUES ('18', '000109', '租户管理', '0001', '/system/tenant', '/system/TenantList', b'0', '0167', b'1', '电脑版', '1', 'profile', '0');
INSERT INTO `jsh_function` (`id`, `number`, `name`, `parent_number`, `url`, `component`, `state`, `sort`, `enabled`, `type`, `push_btn`, `icon`, `delete_flag`) VALUES ('18', '000109', '租户管理', '0001', '/system/tenant', '/system/TenantList', b'0', '0167', b'1', '电脑版', '1', 'profile', '0');
-- --------------------------------------------------------
-- 时间 2021年6月19日
-- by jishenghua
-- 更新jsh_platform_config数据
-- --------------------------------------------------------
INSERT INTO `jsh_platform_config` (`id`, `platform_key`, `platform_key_info`, `platform_value`) VALUES ('3', 'platform_url', '官方网站', 'http://www.huaxiaerp.com/');
jshERP-boot/src/main/java/com/jsh/erp/controller/PlatformConfigController.java
View file @
b3510488
...
...
@@ -32,7 +32,7 @@ public class PlatformConfigController {
* @param request
* @return
*/
@GetMapping
(
value
=
"/getPlatform
N
ame"
)
@GetMapping
(
value
=
"/getPlatform
/n
ame"
)
public
String
getPlatformName
(
HttpServletRequest
request
)
throws
Exception
{
String
res
;
try
{
...
...
@@ -46,6 +46,25 @@ public class PlatformConfigController {
return
res
;
}
/**
* 获取官方网站地址
* @param request
* @return
*/
@GetMapping
(
value
=
"/getPlatform/url"
)
public
String
getPlatformUrl
(
HttpServletRequest
request
)
throws
Exception
{
String
res
;
try
{
String
platformKey
=
"platform_url"
;
PlatformConfig
platformConfig
=
platformConfigService
.
getPlatformConfigByKey
(
platformKey
);
res
=
platformConfig
.
getPlatformValue
();
}
catch
(
Exception
e
){
e
.
printStackTrace
();
res
=
"#"
;
}
return
res
;
}
/**
* 根据platformKey更新platformValue
* @param object
...
...
jshERP-boot/src/main/java/com/jsh/erp/filter/LogCostFilter.java
View file @
b3510488
...
...
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
initParams
=
{
@WebInitParam
(
name
=
"ignoredUrl"
,
value
=
".ico"
),
@WebInitParam
(
name
=
"filterPath"
,
value
=
"/jshERP-boot/user/login#/jshERP-boot/user/registerUser#/jshERP-boot/user/randomImage"
+
"#/jshERP-boot/platformConfig/getPlatform
Name
#/jshERP-boot/v2/api-docs#/jshERP-boot/webjars"
)})
"#/jshERP-boot/platformConfig/getPlatform#/jshERP-boot/v2/api-docs#/jshERP-boot/webjars"
)})
public
class
LogCostFilter
implements
Filter
{
private
static
final
String
FILTER_PATH
=
"filterPath"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment