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
8303f38f
Commit
8303f38f
authored
Aug 16, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
44ce0025
36b438c9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
348 additions
and
27 deletions
+348
-27
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
...ui/admin/src/views/attendance/leave/record/drawershow.vue
+9
-1
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/list.vue
...nager-ui/admin/src/views/attendance/leave/record/list.vue
+1
-1
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+27
-17
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/dingtalk/api/TalkApiController.java
...com/mortals/xhx/busiz/dingtalk/api/TalkApiController.java
+281
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/dingtalk/req/TimeReq.java
...main/java/com/mortals/xhx/busiz/dingtalk/req/TimeReq.java
+27
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/dingmsg/api/DingMessageController.java
.../module/attendance/dingmsg/api/DingMessageController.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
...le/attendance/service/impl/AttendanceStatServiceImpl.java
+1
-1
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
View file @
8303f38f
...
...
@@ -280,7 +280,15 @@ export default {
changedate
(
val
)
{
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
)
{
if
(
this
.
form
.
endTime
.
valueOf
()
>
this
.
form
.
startTime
.
valueOf
())
{
this
.
form
.
duration
=
getSec
(
this
.
form
.
startTime
,
this
.
form
.
endTime
);
// this.form.duration = getSec(this.form.startTime, this.form.endTime);
this
.
$post
(
"
/attendance/getTimeCount
"
,
{
startTime
:
this
.
form
.
startTime
,
endTime
:
this
.
form
.
endTime
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
form
.
duration
=
res
.
data
*
3600
;
}
});
}
else
{
this
.
$message
.
closeAll
();
this
.
$message
.
error
(
"
结束日期需大于请假日期
"
);
...
...
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/list.vue
View file @
8303f38f
...
...
@@ -147,7 +147,7 @@ export default {
return
(
(
row
.
sourceDingTime
?
row
.
sourceDingTime
:
"
--
"
)
+
(
row
.
duration
?
"
(
"
+
(
row
.
duration
/
60
/
60
/
9
).
toFixed
(
2
)
+
"
天
"
+
"
)
"
?
"
(
"
+
(
row
.
duration
/
60
/
60
/
8
).
toFixed
(
2
)
+
"
天
"
+
"
)
"
:
"
(--)
"
)
);
},
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
8303f38f
...
...
@@ -18,9 +18,7 @@
</div>
<div>
出勤率
<span
class=
"num"
>
{{
attendStatInfo
.
attPercentage
}}
</span>
<span
class=
"num"
>
{{
attendStatInfo
.
attPercentage
}}
</span>
</div>
</div>
...
...
@@ -34,7 +32,7 @@
</div>
<div>
缺卡
<span
class=
"num"
>
{{
attendStatInfo
.
lackOfCards
}}
</span>
<span
class=
"num"
>
{{
attendStatInfo
.
lackOfCards
}}
</span>
</div>
</div>
</div>
...
...
@@ -129,13 +127,14 @@
<el-checkbox
v-for=
"(item, index) in setcolum"
:key=
"index"
:label=
"item.
label
"
:label=
"item.
prop
"
>
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
<div
class=
"mt20"
style=
"text-align:right"
>
<el-button>
取消
</el-button>
<el-button
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
</div>
</el-dialog>
<!-- 上传 -->
...
...
@@ -207,17 +206,25 @@ export default {
},
},
created
()
{
this
.
$post
(
"
/attendance/record/stat
"
,
{}).
then
((
res
)
=>
{
if
(
res
.
code
===
1
)
{
this
.
attendStatInfo
=
res
.
data
;
}
});
this
.
initalArr
=
this
.
config
.
columns
;
},
methods
:
{
// 表格设置弹窗取消操作
handleCancel
()
{
this
.
checkList
=
[];
this
.
isdialog
=
false
;
},
// 表格设置提交操作
handleSubmit
()
{
this
.
doExport
();
this
.
isdialog
=
false
;
},
// 表格接收数据后
afterRender
(
data
)
{
let
addobjArr
=
[];
...
...
@@ -335,7 +342,9 @@ export default {
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
if
(
this
.
checkList
.
length
>
0
)
{
params
[
"
properties
"
]
=
this
.
checkList
;
}
this
.
$download
(
"
/attendance/record/exportExcel
"
,
{
...
...
@@ -343,7 +352,10 @@ export default {
},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
then
(()
=>
{
this
.
isExport
=
false
;
this
.
checkList
=
[];
})
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
...
...
@@ -354,6 +366,7 @@ export default {
this
.
setcolum
=
this
.
config
.
columns
.
filter
(
(
item
)
=>
item
.
label
&&
item
.
prop
);
console
.
log
(
this
.
setcolum
);
},
renderTable
(
tableData
)
{
return
(
...
...
@@ -498,10 +511,10 @@ export default {
{
label
:
"
员工工号
"
,
prop
:
"
workNum
"
},
{
label
:
"
考勤组
"
,
prop
:
"
attendanceGroupName
"
prop
:
"
attendanceGroupName
"
,
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
},
{
label
:
"
班次
"
,
prop
:
"
classId
"
,
formatter
:
this
.
formatter
},
{
label
:
"
签到结果
"
,
...
...
@@ -521,9 +534,6 @@ export default {
width
:
120
,
prop
:
"
subColumns
"
,
formatter
:
(
row
)
=>
{
let
widthsize
=
this
.
columnSet
.
reduce
((
pre
,
cur
)
=>
{
return
pre
+
Number
(
cur
.
width
);
},
50
);
...
...
@@ -556,7 +566,7 @@ export default {
exportList
:
[],
//导出记录
baseUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
initalArr
:
[],
attendStatInfo
:
{}
attendStatInfo
:
{},
};
},
};
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/dingtalk/api/TalkApiController.java
View file @
8303f38f
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/dingtalk/req/TimeReq.java
0 → 100644
View file @
8303f38f
package
com.mortals.xhx.busiz.dingtalk.req
;
/**
* @author ZYW
* @date 2023-07-13 20:11
*/
public
class
TimeReq
{
String
startTime
;
String
endTime
;
public
String
getStartTime
()
{
return
startTime
;
}
public
void
setStartTime
(
String
startTime
)
{
this
.
startTime
=
startTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/dingmsg/api/DingMessageController.java
View file @
8303f38f
...
...
@@ -170,7 +170,7 @@ public class DingMessageController {
switch
(
jsonArray
.
get
(
3
).
toString
()){
case
"halfDay"
:
case
"day"
:
leaveRecordEntity
.
setDuration
((
int
)
(
Float
.
parseFloat
(
jsonArray
.
get
(
2
).
toString
())*
60
*
60
*
9
));
//天转换成秒 一天工作时间9小时
leaveRecordEntity
.
setDuration
((
int
)
(
Float
.
parseFloat
(
jsonArray
.
get
(
2
).
toString
())*
60
*
60
*
8
));
//天转换成秒 一天工作时间9小时
leaveRecordEntity
.
setSourceDingTime
(
jsonArray
.
get
(
2
).
toString
()+
"天"
);
break
;
default
:
//除了按天和半天计算的假期 其余都是按小时返回
...
...
@@ -638,7 +638,7 @@ public class DingMessageController {
* @return
*/
private
float
converMillsToDays
(
long
milliseconds
){
float
days
=
((
float
)
milliseconds
)
/
(
60
*
60
*
9
);
float
days
=
((
float
)
milliseconds
)
/
(
60
*
60
*
8
);
return
days
;
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
View file @
8303f38f
...
...
@@ -202,7 +202,7 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
//汇总当前日期请假情况
List
<
LeaveSummaryVo
>
leaveSummaryVoList
=
attendanceSummaryDao
.
getLeaveSummary
(
query
);
if
(
CollectionUtils
.
isNotEmpty
(
leaveSummaryVoList
))
{
BigDecimal
day
=
new
BigDecimal
(
3600
*
9
);
//一天按9
小时折算
BigDecimal
day
=
new
BigDecimal
(
3600
*
8
);
//一天按8
小时折算
BigDecimal
oneDay
=
new
BigDecimal
(
1
);
for
(
LeaveSummaryVo
item
:
leaveSummaryVoList
)
{
String
attendanceSummary
=
""
;
...
...
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