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
16766615
Commit
16766615
authored
Jul 15, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志打印
parent
3b2867e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/staff/service/impl/HikStaffServiceImpl.java
...hx/module/hik/staff/service/impl/HikStaffServiceImpl.java
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+4
-1
db/add.sql
db/add.sql
+3
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/hik/staff/service/impl/HikStaffServiceImpl.java
View file @
16766615
...
...
@@ -68,7 +68,7 @@ public class HikStaffServiceImpl extends AbstractHikService implements IHikStaff
while
(
true
)
{
int
dwState
=
hCNetSDK
.
NET_DVR_SendWithRecvRemoteConfig
(
lHandler
,
ptrInbuff
.
getPointer
(),
strInbuff
.
length
(),
ptrOutuff
.
getPointer
(),
1024
*
1024
,
pInt
);
log
.
info
(
"dwState
<==
{}"
,
dwState
);
log
.
info
(
"dwState
==>
{}"
,
dwState
);
if
(
dwState
==
-
1
)
{
log
.
info
(
"NET_DVR_SendWithRecvRemoteConfig接口调用失败,错误码:{}"
,
hCNetSDK
.
NET_DVR_GetLastError
());
throw
new
AppException
(
String
.
format
(
"NET_DVR_SendWithRecvRemoteConfig接口调用失败,错误码:%s"
,
hCNetSDK
.
NET_DVR_GetLastError
()));
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
16766615
...
...
@@ -581,6 +581,8 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
searchReq
.
setPageNo
(
i
);
searchReq
.
setPageSize
(
size
);
Rest
<
UserSearchInfo
>
rest
=
hikStaffService
.
getPersonList
(
searchReq
,
doorEntity
);
log
.
info
(
"page:{}, 获取人员列表:{}"
,
i
,
JSON
.
toJSONString
(
rest
));
if
(
rest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
//做差集 更新本地用户为离职员工
UserInfoSearch
userInfoSearch
=
rest
.
getData
().
getUserInfoSearch
();
...
...
@@ -639,7 +641,8 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"同步人员信息失败:{}"
,
e
.
getMessage
());
//log.error("同步人员信息失败:{}", e.getMessage());
log
.
error
(
"同步人员信息失败"
,
e
);
staffCollect
=
new
HashMap
<>();
}
if
(
staffCollect
.
size
()
>
0
)
{
...
...
db/add.sql
View file @
16766615
...
...
@@ -1328,6 +1328,8 @@ ADD COLUMN `processTime` datetime COMMENT '处理时间' AFTER `processStat
ADD
COLUMN
`processPerson`
varchar
(
128
)
COMMENT
'处理人员'
AFTER
`processTime`
,
ADD
KEY
`appealPerson`
(
`appealPerson`
)
USING
BTREE
;
--2024-07-08
-- ----------------------------
2024
-
07
-
08
-- ----------------------------
INSERT
INTO
`mortals_xhx_perform_rules`
(
`ruleCode`
,
`categoryId`
,
`categoryName`
,
`name`
,
`content`
,
`subAddType`
,
`score`
,
`assoOwner`
,
`ownerScore`
,
`remark`
,
`type`
,
`createUserId`
,
`createTime`
,
`updateUserId`
,
`updateTime`
)
VALUES
(
'ATTEND1010'
,
'1'
,
''
,
'事假半天'
,
'事假半天'
,
'2'
,
'0.5'
,
'0'
,
'0.00'
,
''
,
'1'
,
'1'
,
NOW
(),
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_perform_rules`
(
`ruleCode`
,
`categoryId`
,
`categoryName`
,
`name`
,
`content`
,
`subAddType`
,
`score`
,
`assoOwner`
,
`ownerScore`
,
`remark`
,
`type`
,
`createUserId`
,
`createTime`
,
`updateUserId`
,
`updateTime`
)
VALUES
(
'ATTEND1011'
,
'1'
,
''
,
'事假全天'
,
'事假全天'
,
'2'
,
'1'
,
'0'
,
'0.00'
,
''
,
'1'
,
'1'
,
NOW
(),
NULL
,
NULL
);
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