Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
979beb12
Commit
979beb12
authored
Jan 14, 2025
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
笔记查询3
parent
e7101cf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
.../wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
+7
-3
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/qiandao/QdUserSignInNoteServiceImpl.java
View file @
979beb12
...
@@ -18,6 +18,8 @@ import org.slf4j.Logger;
...
@@ -18,6 +18,8 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -74,7 +76,8 @@ public class QdUserSignInNoteServiceImpl implements QdUserSignInNoteService {
...
@@ -74,7 +76,8 @@ public class QdUserSignInNoteServiceImpl implements QdUserSignInNoteService {
uploadTime
=
diffInHours
+
"小时前发布"
;
uploadTime
=
diffInHours
+
"小时前发布"
;
}
else
if
(
diffInHours
>
24
)
{
}
else
if
(
diffInHours
>
24
)
{
// long diffInDays = diffInMillies / (60 * 1000 * 60 * 24);
// long diffInDays = diffInMillies / (60 * 1000 * 60 * 24);
uploadTime
=
DateUtils
.
toString
(
qdUserSignInNote
.
getCreateTime
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
uploadTime
=
sdf
.
format
(
qdUserSignInNote
.
getCreateTime
())
+
"发布"
;
}
else
{
}
else
{
uploadTime
=
"1小时内发布"
;
uploadTime
=
"1小时内发布"
;
}
}
...
@@ -117,8 +120,9 @@ public class QdUserSignInNoteServiceImpl implements QdUserSignInNoteService {
...
@@ -117,8 +120,9 @@ public class QdUserSignInNoteServiceImpl implements QdUserSignInNoteService {
if
(
diffInHours
>=
1
&&
diffInHours
<
24
)
{
if
(
diffInHours
>=
1
&&
diffInHours
<
24
)
{
uploadTime
=
diffInHours
+
"小时前发布"
;
uploadTime
=
diffInHours
+
"小时前发布"
;
}
else
if
(
diffInHours
>
24
)
{
}
else
if
(
diffInHours
>
24
)
{
long
diffInDays
=
diffInMillies
/
(
60
*
1000
*
60
*
24
);
// long diffInDays = diffInMillies / (60 * 1000 * 60 * 24);
uploadTime
=
diffInDays
+
"天前发布"
;
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
uploadTime
=
sdf
.
format
(
qdUserSignInNote
.
getCreateTime
())
+
"发布"
;
}
else
{
}
else
{
uploadTime
=
"1小时内发布"
;
uploadTime
=
"1小时内发布"
;
}
}
...
...
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