Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
c9877d18
Commit
c9877d18
authored
5 years ago
by
lal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
ffc0409a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
src/main/java/cn/timer/api/controller/kqgl/ClockInTool.java
+33
-0
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
+0
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInTool.java
View file @
c9877d18
...
@@ -23,6 +23,39 @@ public class ClockInTool {
...
@@ -23,6 +23,39 @@ public class ClockInTool {
static
SimpleDateFormat
famt
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
static
SimpleDateFormat
famt
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
/**
* 判断某个字符串是否存在于数组中
* @param stringArray 原数组
* @param source 查找的字符串
* @return 是否找到
*/
public
static
boolean
contains
(
String
[]
stringArray
,
String
source
)
{
// 转换为list
List
<
String
>
tempList
=
Arrays
.
asList
(
stringArray
);
// 利用list的包含方法,进行判断
if
(
tempList
.
contains
(
source
))
{
return
true
;
}
else
{
return
false
;
}
}
/**
* @param ss
* @return 去除重复
*/
public
static
String
[]
duplicate_removal
(
String
[]
ss
)
{
List
<
String
>
list
=
new
ArrayList
<
String
>();
for
(
String
s:
ss
){
if
(!
list
.
contains
(
s
))
//或者list.indexOf(s)!=-1
list
.
add
(
s
);
}
return
list
.
toArray
(
new
String
[
list
.
size
()]);
}
/**
/**
* 将String时间转换为时间戳
* 将String时间转换为时间戳
*
*
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
View file @
c9877d18
This diff is collapsed.
Click to expand it.
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