Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
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
赵啸非
attendance-performance-platform
Commits
91cfa102
Commit
91cfa102
authored
Feb 06, 2025
by
周亚武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日期格式化新增 AM PM 格式转换
parent
de915bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
...dingding/personal/service/impl/DingPersonServiceImpl.java
+14
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
View file @
91cfa102
...
@@ -959,6 +959,20 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
...
@@ -959,6 +959,20 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
}
}
}
}
if
(
dateString
.
contains
(
"AM"
))
{
if
(
tag
)
{
dateString
=
dateString
.
replace
(
"AM"
,
"09:00"
);
}
else
{
dateString
=
dateString
.
replace
(
"AM"
,
"12:00"
);
}
}
else
{
if
(
tag
)
{
dateString
=
dateString
.
replace
(
"PM"
,
"13:00"
);
}
else
{
dateString
=
dateString
.
replace
(
"PM"
,
"18:00"
);
}
}
//只有日期的字符串要处理加上时间 否则会转换出错
//只有日期的字符串要处理加上时间 否则会转换出错
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
try
{
try
{
...
...
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