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
a19d1bd5
Commit
a19d1bd5
authored
Jul 19, 2023
by
王启林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/attendance-performance-platform
parents
9c8b210b
d62a02f4
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
223 additions
and
47 deletions
+223
-47
attendance-performance-manager-ui/admin/src/views/perform/rules/attend/components/AttendIndex.vue
...src/views/perform/rules/attend/components/AttendIndex.vue
+3
-1
attendance-performance-manager-ui/admin/src/views/staff/perform/summary/list.vue
...manager-ui/admin/src/views/staff/perform/summary/list.vue
+7
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/MockDataController.java
...c/main/java/com/mortals/xhx/busiz/MockDataController.java
+169
-13
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncDoorsEventTaskImpl.java
...a/com/mortals/xhx/daemon/task/SyncDoorsEventTaskImpl.java
+7
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
...in/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
+27
-16
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
...dingding/personal/service/impl/DingPersonServiceImpl.java
+10
-9
No files found.
attendance-performance-manager-ui/admin/src/views/perform/rules/attend/components/AttendIndex.vue
View file @
a19d1bd5
...
...
@@ -226,7 +226,9 @@ export default {
type
:
this
.
activeName
,
page
:
this
.
query
.
page
,
orderColList
:
this
.
typeArr
,
name
:
`%
${
this
.
searchValue
}
%`
,
andConditionList
:
[
{
content
:
`%
${
this
.
searchValue
}
%`
,
name
:
`%
${
this
.
searchValue
}
%`
},
],
}).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
tableData
=
res
.
data
;
...
...
attendance-performance-manager-ui/admin/src/views/staff/perform/summary/list.vue
View file @
a19d1bd5
...
...
@@ -103,15 +103,16 @@ export default {
},
},
{
label
:
"
考勤绩效
"
,
prop
:
"
attendScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
考勤绩效
指标分数
"
,
prop
:
"
attendScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
评价绩效
"
,
prop
:
"
assessScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
评价绩效指标分数
"
,
prop
:
"
reviewScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
投诉绩效指标分数
"
,
prop
:
"
reviewScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
办件绩效
"
,
prop
:
"
workScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
办件绩效
分数
"
,
prop
:
"
workScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
效能绩效
"
,
prop
:
"
effectScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
效能绩效
分数
"
,
prop
:
"
effectScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
其它绩效
"
,
prop
:
"
otherScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
其它绩效
分数
"
,
prop
:
"
otherScore
"
,
formatter
:
this
.
formatter
},
{
label
:
"
累计异常分数
"
,
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/MockDataController.java
View file @
a19d1bd5
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncDoorsEventTaskImpl.java
View file @
a19d1bd5
package
com.mortals.xhx.daemon.task
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.PageUtil
;
import
cn.hutool.core.util.StrUtil
;
...
...
@@ -66,7 +67,10 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService {
userEntity
.
setCreateTime
(
new
Date
());
context
.
setUser
(
userEntity
);
AttendanceRecordHikQuery
recordHikEntity
=
new
AttendanceRecordHikQuery
();
recordHikEntity
.
setAttendanceDateStart
(
DateUtils
.
getCurrStrDate
());
// Date todayStart = DateUtil.offsetHour(new Date(), -5).toJdkDate();
// recordHikEntity.setAttendanceDateStart(DateUtils.getCurrStrDate());
recordHikEntity
.
setAttendanceDateStart
(
DateUtil
.
offsetHour
(
new
Date
(),
-
5
).
toString
());
recordHikEntity
.
setAttendanceDateEnd
(
DateUtils
.
getCurrStrDate
());
try
{
recordHikService
.
addAttendanceRecord
(
recordHikEntity
,
context
);
...
...
@@ -87,7 +91,8 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService {
eventTypes
.
add
(
196891
);
doorEventReq
.
setEventTypes
(
eventTypes
);
// 获取当天的开始时间
Date
todayStart
=
DateUtil
.
beginOfDay
(
new
Date
());
Date
todayStart
=
DateUtil
.
offsetHour
(
new
Date
(),
-
5
).
toJdkDate
();
// Date todayStart = DateUtil.beginOfDay(new Date());
// 获取当天的结束时间
Date
todayEnd
=
DateUtil
.
endOfDay
(
new
Date
());
doorEventReq
.
setStartTime
(
todayStart
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
View file @
a19d1bd5
...
...
@@ -140,7 +140,10 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
attendanceStatEntity
.
setPersonalLeave
(
balanceEntity
.
getPersonalLeaveDays
());
attendanceStatService
.
save
(
attendanceStatEntity
);
//统计各级部门员工数量 todo 优化统计
String
ancestor
=
deptEntity
.
getAncestors
().
split
(
","
,
2
)[
1
];
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
.
getAncestors
()))
{
String
[]
split
=
deptEntity
.
getAncestors
().
split
(
","
,
2
);
if
(
split
.
length
>
1
)
{
String
ancestor
=
split
[
1
];
String
[]
ancestors
=
ancestor
.
split
(
","
);
for
(
String
newAncestor
:
ancestors
)
{
DeptEntity
deptEntity2
=
deptService
.
get
(
Long
.
valueOf
(
newAncestor
));
...
...
@@ -149,6 +152,8 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
deptService
.
update
(
deptEntity2
);
}
}
}
}
}
else
{
//更新
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
...
...
@@ -166,7 +171,10 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
staffEntity
.
setUpdateTime
(
new
Date
());
staffService
.
update
(
staffEntity
);
//统计各级部门员工数量
String
ancestor
=
deptEntity
.
getAncestors
().
split
(
","
,
2
)[
1
];
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
.
getAncestors
()))
{
String
[]
split
=
deptEntity
.
getAncestors
().
split
(
","
,
2
);
if
(
split
.
length
>
1
){
String
ancestor
=
split
[
1
];
String
[]
ancestors
=
ancestor
.
split
(
","
);
for
(
String
newAncestor
:
ancestors
)
{
DeptEntity
deptEntity2
=
deptService
.
get
(
Long
.
valueOf
(
newAncestor
));
...
...
@@ -179,6 +187,8 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
}
}
}
}
}
private
void
syncDepts
()
{
//部门同步
...
...
@@ -220,6 +230,7 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
}
}
}
@Override
public
void
stopTask
(
ITask
task
)
throws
AppException
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/dingding/personal/service/impl/DingPersonServiceImpl.java
View file @
a19d1bd5
...
...
@@ -22,6 +22,8 @@ import org.apache.poi.ss.formula.functions.T;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
java.util.HashMap
;
@Service
(
"dingPersonService"
)
@Slf4j
...
...
@@ -120,7 +122,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
com
.
aliyun
.
teaopenapi
.
models
.
Config
config
=
new
com
.
aliyun
.
teaopenapi
.
models
.
Config
();
config
.
protocol
=
"https"
;
config
.
regionId
=
"central"
;
config
.
endpoint
=
domain
.
replace
(
"http://"
,
""
);
// config.endpoint = domain.replace("http://",
"");
return
new
com
.
aliyun
.
dingtalkworkflow_1_0
.
Client
(
config
);
}
...
...
@@ -130,20 +132,19 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
com
.
aliyun
.
dingtalkworkflow_1_0
.
Client
client
=
createClient
();
com
.
aliyun
.
dingtalkworkflow_1_0
.
models
.
GetProcessInstanceHeaders
getProcessInstanceHeaders
=
new
com
.
aliyun
.
dingtalkworkflow_1_0
.
models
.
GetProcessInstanceHeaders
();
getProcessInstanceHeaders
.
xAcsDingtalkAccessToken
=
getToken
();
getProcessInstanceHeaders
.
getCommonHeaders
().
put
(
"host"
,
"172.15.28.113"
);
getProcessInstanceHeaders
.
getCommonHeaders
().
put
(
"port"
,
"8918"
);
getProcessInstanceHeaders
.
getCommonHeaders
().
put
(
"protocol"
,
"http"
);
/* HashMap<String, String> map = new HashMap<>();
getProcessInstanceHeaders.setCommonHeaders(map);
getProcessInstanceHeaders.getCommonHeaders().put("host", "172.15.28.113");
getProcessInstanceHeaders.getCommonHeaders().put("port", "8918");
getProcessInstanceHeaders.getCommonHeaders().put("protocol", "http");*/
com
.
aliyun
.
dingtalkworkflow_1_0
.
models
.
GetProcessInstanceRequest
getProcessInstanceRequest
=
new
com
.
aliyun
.
dingtalkworkflow_1_0
.
models
.
GetProcessInstanceRequest
()
.
setProcessInstanceId
(
processInstanceId
);
log
.
info
(
"processInstanceId:{}"
,
processInstanceId
);
GetProcessInstanceResponse
rsp
=
client
.
getProcessInstanceWithOptions
(
getProcessInstanceRequest
,
getProcessInstanceHeaders
,
new
com
.
aliyun
.
teautil
.
models
.
RuntimeOptions
());
return
Rest
.
ok
(
"成功"
,
rsp
.
getBody
().
getResult
());
}
catch
(
Exception
e
)
{
log
.
info
(
"根据用户查询审批详情失败"
,
e
);
log
.
error
(
"根据用户查询审批详情失败"
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
}
...
...
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