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
JeeSpringCloudV3.0
Commits
bcbcd70b
Commit
bcbcd70b
authored
Jan 08, 2019
by
Sun
Browse files
no commit message
parent
bfe531df
Changes
1
Hide whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/java/com/jeespring/modules/sys/web/LoginController.java
View file @
bcbcd70b
...
...
@@ -367,27 +367,27 @@ public class LoginController extends AbstractBaseController {
@RequestMapping
(
value
=
"${adminPath}/home"
)
public
String
home
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
,
RedirectAttributes
redirectAttributes
)
throws
IOException
{
SysConfig
sysConfig
=
new
SysConfig
();
//new一个新的xxx对象
sysConfig
.
setType
(
"homePageAboveInfomation"
);
//传值
List
<
SysConfig
>
indexSysConfig
=
sysConfigService
.
findList
(
sysConfig
);
//查询系统配置项
sysConfig
.
setType
(
"homePageTechnical"
);
//传值
SysConfig
homePageTechnicalSysConfig
=
sysConfigService
.
findListFirstCache
(
sysConfig
);
//查询系统配置项
sysConfig
.
setType
(
"homePageAuthorization"
);
//传值
SysConfig
homePageAuthorizationSysConfig
=
sysConfigService
.
findListFirstCache
(
sysConfig
);
//查询系统配置项
sysConfig
.
setType
(
"homePageContactInfo"
);
//传值
SysConfig
homePageContactInfoSysConfig
=
sysConfigService
.
findListFirstCache
(
sysConfig
);
//查询系统配置项
sysConfig
.
setType
(
"homePageInfomation"
);
//传值
SysConfig
homePageInfomationSysConfig
=
sysConfigService
.
findListFirstCache
(
sysConfig
);
//查询系统配置项
//
sysConfig.setType("homePageAboveInfomation");//传值
//
List<SysConfig> indexSysConfig= sysConfigService.findList(sysConfig);//查询系统配置项
//
sysConfig.setType("homePageTechnical");//传值
//
SysConfig homePageTechnicalSysConfig= sysConfigService.findListFirstCache(sysConfig);//查询系统配置项
//
sysConfig.setType("homePageAuthorization");//传值
//
SysConfig homePageAuthorizationSysConfig= sysConfigService.findListFirstCache(sysConfig);//查询系统配置项
//
sysConfig.setType("homePageContactInfo");//传值
//
SysConfig homePageContactInfoSysConfig= sysConfigService.findListFirstCache(sysConfig);//查询系统配置项
//
sysConfig.setType("homePageInfomation");//传值
//
SysConfig homePageInfomationSysConfig= sysConfigService.findListFirstCache(sysConfig);//查询系统配置项
sysConfig
.
setType
(
"version"
);
//传值
SysConfig
versionSysConfig
=
sysConfigService
.
findListFirstCache
(
sysConfig
);
//查询系统配置项
model
.
addAttribute
(
"homePageTechnical"
,
homePageTechnicalSysConfig
.
getDescription
().
toString
());
model
.
addAttribute
(
"homePageAuthorization"
,
homePageAuthorizationSysConfig
.
getDescription
().
toString
());
model
.
addAttribute
(
"homePageContactInfo"
,
homePageContactInfoSysConfig
.
getDescription
().
toString
());
model
.
addAttribute
(
"homePageInfomation"
,
homePageInfomationSysConfig
.
getDescription
().
toString
());
//
model.addAttribute("homePageTechnical",homePageTechnicalSysConfig.getDescription().toString());
//
model.addAttribute("homePageAuthorization",homePageAuthorizationSysConfig.getDescription().toString());
//
model.addAttribute("homePageContactInfo",homePageContactInfoSysConfig.getDescription().toString());
//
model.addAttribute("homePageInfomation",homePageInfomationSysConfig.getDescription().toString());
model
.
addAttribute
(
"version"
,
versionSysConfig
.
getValue
());
if
(
indexSysConfig
.
size
()
==
0
)
{
indexSysConfig
.
add
(
new
SysConfig
());
}
//
if(indexSysConfig.size() == 0 ) {
//
indexSysConfig.add(new SysConfig());
//
}
OaNotify
oaNotify
=
new
OaNotify
();
Dict
dict
=
new
Dict
();
...
...
@@ -428,7 +428,7 @@ public class LoginController extends AbstractBaseController {
Page
<
OaNotify
>
pageOaNotifyTechnology
=
oaNotifyService
.
find
(
new
Page
<
OaNotify
>(
request
,
response
),
oaNotify
);
model
.
addAttribute
(
"pageOaNotifyTechnology"
,
pageOaNotifyTechnology
);
model
.
addAttribute
(
"indexSysConfig"
,
indexSysConfig
.
get
(
0
));
//
model.addAttribute("indexSysConfig",indexSysConfig.get(0));
//return "modules/sys/sysHome";
return
"base/home"
;
}
...
...
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