Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
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 df764430
authored
Jul 19, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活跃度检测bug修复
1 parent
6be77ec7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java
src/main/resources/application.properties
src/main/resources/mapper/ActivityDetectionMapper.xml
src/main/resources/mapper/AdministerMapper.xml
src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java
View file @
df76443
...
...
@@ -69,6 +69,14 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
Method
method
=
handlerMethod
.
getMethod
();
TimeRequired
timeRequired
=
method
.
getAnnotation
(
TimeRequired
.
class
);
if
(
timeRequired
!=
null
)
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
hour
=
calendar
.
get
(
Calendar
.
HOUR_OF_DAY
);
if
(
hour
<
6
||
hour
>=
23
)
{
throw
new
HttpException
(
17001
);
}
}
LoginRequired
methodAnnotation
=
method
.
getAnnotation
(
LoginRequired
.
class
);
if
(
methodAnnotation
!=
null
)
{
...
...
@@ -100,7 +108,7 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
int
hour
=
calendar
.
get
(
Calendar
.
HOUR_OF_DAY
);
int
minute
=
calendar
.
get
(
Calendar
.
MINUTE
);
if
(
hour
<
6
||
(
hour
>=
23
&&
minute
>=
30
)
)
{
if
(
hour
<
6
||
hour
>=
23
)
{
throw
new
HttpException
(
17001
);
}
}
...
...
src/main/resources/application.properties
View file @
df76443
# 环境配置
spring.profiles.active
=
dev
spring.profiles.active
=
prod
#和CPU数
spring.server.acceptorThreadCount
=
600
spring.server.minSpareThreads
=
100
...
...
src/main/resources/mapper/ActivityDetectionMapper.xml
View file @
df76443
...
...
@@ -40,7 +40,8 @@
FROM
activity_detection t
WHERE
t.class_id = #{classId}
t.delete_date IS NULL
and t.class_id = #{classId}
AND t.member_id = #{memberId}
AND t.check_type = #{checkType}
AND t.`status` = #{status}
...
...
src/main/resources/mapper/AdministerMapper.xml
View file @
df76443
...
...
@@ -142,11 +142,10 @@
class_member_mapping t
LEFT JOIN member t2 ON t.member_id = t2.id
LEFT JOIN activity_detection t3 ON t.class_id = t3.class_id
AND t.member_id = t3.member_id
AND t.member_id = t3.member_id
and t3.delete_date IS NULL
left join company_dict t4 on t2.company_id = t4.id
where t.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date IS NULL
AND t.class_id = #{classId}
<if
test=
"userName != null and userName !=''"
>
and t2.user_name like concat('%',#{userName} ,'%')
...
...
@@ -180,12 +179,11 @@
class_member_mapping t
LEFT JOIN member t2 ON t.member_id = t2.id
LEFT JOIN image_check_record t3 ON t.class_id = t3.class_id
AND t.member_id = t3.member_id
AND t.member_id = t3.member_id
and t3.delete_date IS NULL
left join company_dict t4 on t2.company_id = t4.id
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t3.delete_date IS NULL
<if
test=
"userName != null and userName !=''"
>
and t2.user_name like concat('%',#{userName} ,'%')
</if>
...
...
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