Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
dee5824f
Commit
dee5824f
authored
Jan 18, 2022
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息展示最近30天
parent
29ecbe81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
NoticeMessageMapper.xml
...service/src/main/resources/mapper/NoticeMessageMapper.xml
+4
-0
test.java
haoban-manage3-service/src/test/java/test.java
+7
-2
No files found.
haoban-manage3-service/src/main/resources/mapper/NoticeMessageMapper.xml
View file @
dee5824f
...
...
@@ -223,6 +223,7 @@
<if
test=
"categoryType != -1"
>
and category_type =#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc
</select>
...
...
@@ -239,6 +240,7 @@
<if
test=
"categoryType != -1"
>
and category_type =#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc
</select>
...
...
@@ -251,5 +253,6 @@
<if
test=
"categoryType!=-1"
>
and category_type=#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
</update>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/test/java/test.java
View file @
dee5824f
...
...
@@ -36,12 +36,17 @@ public class test {
TestQo
test
=
cache
.
get
(
"test"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
Thread
.
sleep
(
4000L
);
Thread
.
sleep
(
2000L
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
Thread
.
sleep
(
2000L
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
test
=
cache
.
get
(
"test"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
int
i
=
20
;
while
(
i
-->
0
)
{
Thread
.
sleep
(
2000L
);
}
// String key = "3.2.1";
// String[] split = key.split(".");
//
...
...
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