Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.HumanResources.DingTalk
Project
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
陶然
Kivii.HumanResources.DingTalk
Commits
325a2a65
Commit
325a2a65
authored
May 21, 2021
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
7784cd27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AttendanceJob.cs
Src/Jobs/AttendanceJob.cs
+3
-3
No files found.
Src/Jobs/AttendanceJob.cs
View file @
325a2a65
...
@@ -39,8 +39,8 @@ namespace Kivii.HumanResources.DingTalk
...
@@ -39,8 +39,8 @@ namespace Kivii.HumanResources.DingTalk
var
beginTime
=
DateTime
.
Now
;
var
beginTime
=
DateTime
.
Now
;
var
endTime
=
DateTime
.
Now
;
var
endTime
=
DateTime
.
Now
;
DateTime
.
TryParse
(
begin
,
out
beginTime
);
if
(!
begin
.
IsNullOrEmpty
())
DateTime
.
TryParse
(
begin
,
out
beginTime
);
DateTime
.
TryParse
(
end
,
out
endTime
);
if
(!
end
.
IsNullOrEmpty
())
DateTime
.
TryParse
(
end
,
out
endTime
);
var
accessToken
=
DingTalkExtension
.
GetAccessToken
(
internalCode
);
var
accessToken
=
DingTalkExtension
.
GetAccessToken
(
internalCode
);
...
@@ -102,7 +102,7 @@ namespace Kivii.HumanResources.DingTalk
...
@@ -102,7 +102,7 @@ namespace Kivii.HumanResources.DingTalk
conn
.
Insert
(
attendance
);
conn
.
Insert
(
attendance
);
success
++;
success
++;
}
}
TaskContext
.
Message
=
$"New:
{
DateTime
.
Now
:
yyyy
-
MM
-
dd
HH
:
mm
:
ss
}
成功查询
{
attendances
.
Count
}
条考勤记录
,插入
{
success
}
条,跳过重复
{
skip
}
条!"
;
TaskContext
.
Message
=
$"New:
{
DateTime
.
Now
:
yyyy
-
MM
-
dd
HH
:
mm
:
ss
}
成功查询
时间段:[
{
beginTime
:
yyyy
-
MM
-
dd
}
-
{
endTime
:
yyyy
-
MM
-
dd
}
],考勤人员:
{
userIds
.
Count
}
名,考勤记录:
{
attendances
.
Count
}
条
,插入
{
success
}
条,跳过重复
{
skip
}
条!"
;
return
true
;
return
true
;
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
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