Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
fa7f2734
Commit
fa7f2734
authored
Aug 02, 2024
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/wanghao/zh-baseversion-project
parents
1efb38d1
cee87591
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
CaptchaController.java
...a/com/zehong/web/controller/common/CaptchaController.java
+7
-0
SysLoginController.java
.../com/zehong/web/controller/system/SysLoginController.java
+10
-0
ISysSettingService.java
...in/java/com/zehong/system/service/ISysSettingService.java
+7
-0
SysSettingServiceImpl.java
...com/zehong/system/service/impl/SysSettingServiceImpl.java
+5
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/common/CaptchaController.java
View file @
fa7f2734
...
...
@@ -6,6 +6,9 @@ import java.util.concurrent.TimeUnit;
import
javax.annotation.Resource
;
import
javax.imageio.ImageIO
;
import
javax.servlet.http.HttpServletResponse
;
import
com.zehong.system.domain.SysSetting
;
import
com.zehong.system.service.ISysSettingService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.util.FastByteArrayOutputStream
;
...
...
@@ -39,6 +42,8 @@ public class CaptchaController
@Value
(
"${zehong.captchaType}"
)
private
String
captchaType
;
@Resource
private
ISysSettingService
iSysSettingService
;
/**
* 生成验证码
*/
...
...
@@ -77,10 +82,12 @@ public class CaptchaController
{
return
AjaxResult
.
error
(
e
.
getMessage
());
}
SysSetting
largeScreenHeaderCityName
=
iSysSettingService
.
selectSysSettingBySystemKey
(
"large_screen_header_city_name"
);
AjaxResult
ajax
=
AjaxResult
.
success
();
ajax
.
put
(
"uuid"
,
uuid
);
ajax
.
put
(
"img"
,
Base64
.
encode
(
os
.
toByteArray
()));
ajax
.
put
(
"cityName"
,
largeScreenHeaderCityName
.
getSystemValue
());
return
ajax
;
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/system/SysLoginController.java
View file @
fa7f2734
...
...
@@ -5,7 +5,9 @@ import java.util.Map;
import
java.util.Set
;
import
com.zehong.framework.systemsetting.SystemSetting
;
import
com.zehong.system.domain.SysSetting
;
import
com.zehong.system.service.ISysPostService
;
import
com.zehong.system.service.ISysSettingService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -23,6 +25,8 @@ import com.zehong.framework.web.service.SysPermissionService;
import
com.zehong.framework.web.service.TokenService
;
import
com.zehong.system.service.ISysMenuService
;
import
javax.annotation.Resource
;
/**
* 登录验证
*
...
...
@@ -49,6 +53,9 @@ public class SysLoginController
@Autowired
private
ISysPostService
iSysPostService
;
@Resource
private
ISysSettingService
iSysSettingService
;
/**
* 登录方法
*
...
...
@@ -82,6 +89,9 @@ public class SysLoginController
Set
<
String
>
permissions
=
permissionService
.
getMenuPermission
(
user
);
//参数集合
Map
<
String
,
String
>
systemWebSetting
=
systemSetting
.
getSystemWebSetting
();
//这个数据实时拿 20240802 wh 调整
SysSetting
largeScreenHeaderCityName
=
iSysSettingService
.
selectSysSettingBySystemKey
(
"large_screen_header_city_name"
);
systemWebSetting
.
put
(
largeScreenHeaderCityName
.
getSystemKey
(),
largeScreenHeaderCityName
.
getSystemValue
());
/* HashMap hashMap=new HashMap();
hashMap.put("map_center","[114.684979,38.038292]");//经开区
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/ISysSettingService.java
View file @
fa7f2734
...
...
@@ -19,6 +19,13 @@ public interface ISysSettingService
*/
public
SysSetting
selectSysSettingById
(
Integer
systemId
);
/**
* 查询系统参数配置
*
* @param systemKey 系统参数配置systemKey
* @return 系统参数配置
*/
public
SysSetting
selectSysSettingBySystemKey
(
String
systemKey
);
/**
* 查询系统参数配置列表
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/SysSettingServiceImpl.java
View file @
fa7f2734
...
...
@@ -32,6 +32,11 @@ public class SysSettingServiceImpl implements ISysSettingService
return
sysSettingMapper
.
selectSysSettingById
(
systemId
);
}
@Override
public
SysSetting
selectSysSettingBySystemKey
(
String
systemKey
)
{
return
sysSettingMapper
.
getSystemValueByKey
(
systemKey
);
}
/**
* 查询系统参数配置列表
*
...
...
Write
Preview
Markdown
is supported
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