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
734880fa
Commit
734880fa
authored
Jul 19, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改考勤汇总
parent
cf9709bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
6 deletions
+73
-6
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+4
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
...xhx/module/attendance/web/AttendanceRecordController.java
+4
-4
common-lib/src/main/java/com/mortals/xhx/common/code/NormalEnum.java
...src/main/java/com/mortals/xhx/common/code/NormalEnum.java
+65
-0
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
734880fa
...
...
@@ -403,10 +403,12 @@ export default {
{
prop
:
"
shiftsId
"
,
label
:
"
班次ID
"
,
width
:
100
},
{
prop
:
"
shiftsName
"
,
label
:
"
班次名称
"
,
width
:
100
},
{
prop
:
"
goWorkDate
"
,
label
:
"
上班打卡时间
"
,
width
:
100
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
goWorkResult
"
,
label
:
"
上班打卡结果
"
,
width
:
100
,
formatter
:
this
.
formatter
},
{
prop
:
"
goWorkResult
"
,
label
:
"
上班打卡结果
"
,
width
:
100
,
formatter
:
this
.
formatter
String
},
{
prop
:
"
offWorkDate
"
,
label
:
"
下班打卡时间
"
,
width
:
100
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
offWorkResult
"
,
label
:
"
下班打卡结果
"
,
width
:
100
,
formatter
:
this
.
formatter
},
{
prop
:
"
offWorkResult
"
,
label
:
"
下班打卡结果
"
,
width
:
100
,
formatter
:
this
.
formatter
String
},
{
prop
:
"
remark
"
,
label
:
"
备注
"
,
width
:
100
},
],
config
:
{
search
:
[
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
View file @
734880fa
...
...
@@ -5,6 +5,7 @@ import com.mortals.framework.model.OrderCol;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.GoWorkResultEnum
;
import
com.mortals.xhx.common.code.NormalEnum
;
import
com.mortals.xhx.common.code.OffWorkResultEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.module.attendance.model.*
;
...
...
@@ -57,9 +58,9 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
this
.
addDict
(
model
,
"classId"
,
attendanceClassService
.
find
(
new
AttendanceClassQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getClassName
())));
this
.
addDict
(
model
,
"goWorkResult"
,
GoWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"offWorkResult"
,
OffWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"signInResult"
,
YesNo
Enum
.
getEnumMap
());
this
.
addDict
(
model
,
"signOutResult"
,
YesNo
Enum
.
getEnumMap
());
this
.
addDict
(
model
,
"punchResult"
,
YesNo
Enum
.
getEnumMap
());
this
.
addDict
(
model
,
"signInResult"
,
Normal
Enum
.
getEnumMap
());
this
.
addDict
(
model
,
"signOutResult"
,
Normal
Enum
.
getEnumMap
());
this
.
addDict
(
model
,
"punchResult"
,
Normal
Enum
.
getEnumMap
());
//设置
...
...
@@ -96,7 +97,6 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
.
sorted
(
Comparator
.
comparingInt
(
AttendanceRecordDetailEntity:
:
getOrderNum
))
.
collect
(
Collectors
.
toList
());
List
<
AttDsyncColumn
>
dsyncColumns
=
new
ArrayList
<>();
List
<
AttDsyncColumn
>
resultDsyncColumns
=
new
ArrayList
<>();
collect
.
forEach
(
item
->
{
AttDsyncColumn
attDsyncColumn
=
new
AttDsyncColumn
();
attDsyncColumn
.
setName
(
String
.
format
(
"上班%s打卡时间"
,
item
.
getOrderNum
()));
...
...
common-lib/src/main/java/com/mortals/xhx/common/code/NormalEnum.java
0 → 100644
View file @
734880fa
package
com.mortals.xhx.common.code
;
import
com.mortals.framework.common.IBaseEnum
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
public
enum
NormalEnum
implements
IBaseEnum
{
正常
(
0
,
"正常"
),
异常
(
1
,
"异常"
);
private
int
value
;
private
String
desc
;
NormalEnum
(
int
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
@Override
public
int
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
desc
;
}
public
static
NormalEnum
getByValue
(
int
value
)
{
for
(
NormalEnum
YesNoEnum
:
NormalEnum
.
values
())
{
if
(
YesNoEnum
.
getValue
()
==
value
)
{
return
YesNoEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
int
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<
String
,
String
>();
for
(
NormalEnum
item
:
NormalEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
int
e
:
eItem
){
if
(
item
.
getValue
()==
e
){
hasE
=
true
;
break
;
}
}
if
(!
hasE
){
resultMap
.
put
(
item
.
getValue
()+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
){
}
}
return
resultMap
;
}
}
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