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
40d1479a
Commit
40d1479a
authored
Jun 13, 2023
by
陶湘宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化配置
parent
96b22efd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+5
-0
src/main/resources/application-pro.yml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
40d1479a
...
@@ -158,6 +158,11 @@ public class ClockInController {
...
@@ -158,6 +158,11 @@ public class ClockInController {
//putime: 根据日期 得到打卡所需的详细信息
//putime: 根据日期 得到打卡所需的详细信息
AttendanceCardListDto
attdate
=
MethodCall
(
qyid
,
userid
,
ClockInTool
.
paraseStringToDate
(
sStdIoTime
,
"yyyy-MM-dd HH:mm:SS"
));
AttendanceCardListDto
attdate
=
MethodCall
(
qyid
,
userid
,
ClockInTool
.
paraseStringToDate
(
sStdIoTime
,
"yyyy-MM-dd HH:mm:SS"
));
// = new SimpleDateFormat("yyyy-MM-dd").format(sStdIoTime);//转换打卡时间格式 年月日
// = new SimpleDateFormat("yyyy-MM-dd").format(sStdIoTime);//转换打卡时间格式 年月日
Long
puttimeTmp
=
0L
;
if
(
attdate
!=
null
&&
attdate
.
getAttsch
()!=
null
&&
attdate
.
getAttsch
().
get
(
0
)!=
null
)
puttimeTmp
=
attdate
.
getAttsch
().
get
(
0
).
getTime
();
else
puttimeTmp
=
System
.
currentTimeMillis
();
String
putime
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putime
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putimehhmm
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putimehhmm
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
...
...
src/main/resources/application-pro.yml
View file @
40d1479a
...
@@ -116,7 +116,7 @@ spring:
...
@@ -116,7 +116,7 @@ spring:
port
:
465
port
:
465
class
:
javax.net.ssl.SSLSocketFactory
class
:
javax.net.ssl.SSLSocketFactory
redis
:
redis
:
database
:
5
# Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中
database
:
3
5
# Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中
host
:
r-wz9p8pve7uem63b10upd.redis.rds.aliyuncs.com
host
:
r-wz9p8pve7uem63b10upd.redis.rds.aliyuncs.com
port
:
6379
port
:
6379
password
:
(!0YouLingRcRedis0!)
password
:
(!0YouLingRcRedis0!)
...
...
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