Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
wangming
/
kzy-wx
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ec34c5e0
authored
Mar 13, 2020
by
魏文甫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
d0d24e35
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
5 deletions
pom.xml
src/main/java/com/server/web/common/service/Impl/IndexServiceImpl.java
src/main/java/com/server/web/controller/UserController.java
src/main/resources/servers/local/application.properties
src/main/resources/servers/local/log4j.properties
pom.xml
View file @
ec34c5e
...
@@ -216,6 +216,12 @@
...
@@ -216,6 +216,12 @@
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
<id>
local
</id>
<properties>
<package.environment>
local
</package.environment>
</properties>
</profile>
<profile>
<id>
online
</id>
<id>
online
</id>
<properties>
<properties>
<package.environment>
online
</package.environment>
<package.environment>
online
</package.environment>
...
...
src/main/java/com/server/web/common/service/Impl/IndexServiceImpl.java
View file @
ec34c5e
...
@@ -72,6 +72,7 @@ public class IndexServiceImpl implements IndexService {
...
@@ -72,6 +72,7 @@ public class IndexServiceImpl implements IndexService {
for
(
TBaseFirstClass
tBaseFirstClass
:
list
)
{
for
(
TBaseFirstClass
tBaseFirstClass
:
list
)
{
flagMap
=
new
HashMap
<
String
,
Object
>();
flagMap
=
new
HashMap
<
String
,
Object
>();
flagMap
.
put
(
"className"
,
tBaseFirstClass
.
getClassName
());
flagMap
.
put
(
"className"
,
tBaseFirstClass
.
getClassName
());
flagMap
.
put
(
"id"
,
tBaseFirstClass
.
getId
());
List
<
Map
<
String
,
Object
>>
list2
=
informationMapper
.
categoryDetail
(
tBaseFirstClass
.
getId
());
List
<
Map
<
String
,
Object
>>
list2
=
informationMapper
.
categoryDetail
(
tBaseFirstClass
.
getId
());
flagMap
.
put
(
"informationList"
,
list2
);
flagMap
.
put
(
"informationList"
,
list2
);
...
@@ -84,7 +85,7 @@ public class IndexServiceImpl implements IndexService {
...
@@ -84,7 +85,7 @@ public class IndexServiceImpl implements IndexService {
public
Map
<
String
,
Object
>
livingCourseToday
()
{
public
Map
<
String
,
Object
>
livingCourseToday
()
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"today"
,
simpleDateFormat
.
format
(
new
Date
()));
param
.
put
(
"today"
,
simpleDateFormat
.
format
(
new
Date
()));
List
<
Map
<
String
,
Object
>>
list
=
courseMapper
.
livingCourseToday
(
param
);
List
<
Map
<
String
,
Object
>>
list
=
courseMapper
.
livingCourseToday
(
param
);
return
returnMap
(
"1"
,
""
,
list
);
return
returnMap
(
"1"
,
""
,
list
);
}
}
...
...
src/main/java/com/server/web/controller/UserController.java
View file @
ec34c5e
...
@@ -45,7 +45,7 @@ public class UserController extends BaseController {
...
@@ -45,7 +45,7 @@ public class UserController extends BaseController {
}
}
if
(
user
==
null
)
{
if
(
user
==
null
)
{
return
returnError
(
"0"
,
"
未登录
"
,
null
);
return
returnError
(
"0"
,
"
请先授权!
"
,
null
);
}
}
ValueOperations
operations
=
redisTemplate
.
opsForValue
();
ValueOperations
operations
=
redisTemplate
.
opsForValue
();
...
@@ -73,7 +73,8 @@ public class UserController extends BaseController {
...
@@ -73,7 +73,8 @@ public class UserController extends BaseController {
user
.
setFullName
(
fullName
);
user
.
setFullName
(
fullName
);
user
.
setPhone
(
phone
);
user
.
setPhone
(
phone
);
user
.
setStatus
(
1
);
user
.
setStatus
(
1
);
user
.
setIntegral
(
0
);
user
.
setLastLoginDt
(
new
Date
());
userMapper
.
insertSelective
(
user
);
userMapper
.
insertSelective
(
user
);
request
.
getSession
().
setAttribute
(
WX_USER_SESSION_KEY
,
user
);
request
.
getSession
().
setAttribute
(
WX_USER_SESSION_KEY
,
user
);
...
...
src/main/resources/servers/local/application.properties
View file @
ec34c5e
...
@@ -16,7 +16,7 @@ mybatis.config-location=classpath:mybatis/mybatis-config.xml
...
@@ -16,7 +16,7 @@ mybatis.config-location=classpath:mybatis/mybatis-config.xml
# Redis数据库索引(默认为0)
# Redis数据库索引(默认为0)
spring.redis.database
=
0
spring.redis.database
=
0
# Redis服务器地址
# Redis服务器地址
spring.redis.host
=
192.168.0.105
spring.redis.host
=
39.97.246.118
# Redis服务器连接端口
# Redis服务器连接端口
spring.redis.port
=
6379
spring.redis.port
=
6379
# Redis服务器连接密码(默认为空)
# Redis服务器连接密码(默认为空)
...
...
src/main/resources/servers/local/log4j.properties
View file @
ec34c5e
log4j.rootLogger
=
ERROR,stdout,E
log4j.rootLogger
=
ERROR,stdout,E
log4j.logger.com.server.web.common.mapper
=
ERROR
log4j.logger.com.server.web.common.mapper
=
debug
log4j.logger.com.server.web.common.mapping
=
debug
##########控制台#############
##########控制台#############
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target
=
System.out
log4j.appender.stdout.Target
=
System.out
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment