Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
205051d4
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
205051d4
编写于
4月 16, 2020
作者:
F
fancy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
钉钉考勤打卡统计对象
上级
e87d5468
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
54 addition
and
0 deletion
+54
-0
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/DingdingPersonStatisticQueue.java
...ndance/assemble/control/DingdingPersonStatisticQueue.java
+2
-0
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/DingdingUnitStatisticQueue.java
...tendance/assemble/control/DingdingUnitStatisticQueue.java
+4
-0
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/factory/DingdingAttendanceFactory.java
...e/assemble/control/factory/DingdingAttendanceFactory.java
+12
-0
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingPersonForMonth.java
.../x/attendance/entity/StatisticDingdingPersonForMonth.java
+12
-0
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingUnitForDay.java
.../com/x/attendance/entity/StatisticDingdingUnitForDay.java
+13
-0
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingUnitForMonth.java
...om/x/attendance/entity/StatisticDingdingUnitForMonth.java
+11
-0
未找到文件。
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/DingdingPersonStatisticQueue.java
浏览文件 @
205051d4
...
...
@@ -73,6 +73,8 @@ public class DingdingPersonStatisticQueue extends AbstractQueue<Date> {
personForMonth
.
setOnDutyTimes
(
onduty
);
personForMonth
.
setOffDutyTimes
(
business
.
dingdingAttendanceFactory
().
dingdingPersonForMonthDutyTimesCount
(
year
,
month
,
person
.
getDistinguishedName
(),
AttendanceDingtalkDetail
.
OffDuty
));
personForMonth
.
setResultNormal
(
business
.
dingdingAttendanceFactory
().
dingdingPersonForMonthTimeResultCount
(
year
,
month
,
person
.
getDistinguishedName
(),
AttendanceDingtalkDetail
.
TIMERESULT_NORMAL
));
personForMonth
.
setLateTimes
(
business
.
dingdingAttendanceFactory
().
dingdingPersonForMonthTimeResultCount
(
year
,
month
,
person
.
getDistinguishedName
(),
AttendanceDingtalkDetail
.
TIMERESULT_Late
));
personForMonth
.
setLeaveEarlyTimes
(
business
.
dingdingAttendanceFactory
().
dingdingPersonForMonthTimeResultCount
(
year
,
month
,
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/DingdingUnitStatisticQueue.java
浏览文件 @
205051d4
...
...
@@ -69,6 +69,8 @@ public class DingdingUnitStatisticQueue extends AbstractQueue<Date> {
unitForDay
.
setOnDutyTimes
(
on
);
unitForDay
.
setOffDutyTimes
(
business
.
dingdingAttendanceFactory
().
dingdingUnitForDayDutyTimesCount
(
dateString
,
unit
,
AttendanceDingtalkDetail
.
OffDuty
));
unitForDay
.
setResultNormal
(
business
.
dingdingAttendanceFactory
().
dingdingUnitForDayTimeResultCount
(
dateString
,
unit
,
AttendanceDingtalkDetail
.
TIMERESULT_NORMAL
));
unitForDay
.
setLateTimes
(
business
.
dingdingAttendanceFactory
().
dingdingUnitForDayTimeResultCount
(
dateString
,
unit
,
AttendanceDingtalkDetail
.
TIMERESULT_Late
));
unitForDay
.
setLeaveEarlyTimes
(
business
.
dingdingAttendanceFactory
().
dingdingUnitForDayTimeResultCount
(
dateString
,
unit
,
...
...
@@ -108,6 +110,7 @@ public class DingdingUnitStatisticQueue extends AbstractQueue<Date> {
Long
workDay
=
business
.
dingdingAttendanceFactory
().
sumWorkDayUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
onduty
=
business
.
dingdingAttendanceFactory
().
sumOnDutyUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
offDuty
=
business
.
dingdingAttendanceFactory
().
sumOffDutyUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
normal
=
business
.
dingdingAttendanceFactory
().
sumNormalUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
late
=
business
.
dingdingAttendanceFactory
().
sumLateTimesUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
leaveearly
=
business
.
dingdingAttendanceFactory
().
sumLeaveEarlyUnitForDayWithMonth
(
year
,
month
,
unit
);
Long
notSign
=
business
.
dingdingAttendanceFactory
().
sumNotSignedUnitForDayWithMonth
(
year
,
month
,
unit
);
...
...
@@ -128,6 +131,7 @@ public class DingdingUnitStatisticQueue extends AbstractQueue<Date> {
unitForMonth
.
setWorkDayCount
(
workDay
);
unitForMonth
.
setOnDutyTimes
(
onduty
);
unitForMonth
.
setOffDutyTimes
(
offDuty
);
unitForMonth
.
setResultNormal
(
normal
);
unitForMonth
.
setLateTimes
(
late
);
unitForMonth
.
setLeaveEarlyTimes
(
leaveearly
);
unitForMonth
.
setNotSignedCount
(
notSign
);
...
...
o2server/x_attendance_assemble_control/src/main/java/com/x/attendance/assemble/control/factory/DingdingAttendanceFactory.java
浏览文件 @
205051d4
...
...
@@ -393,6 +393,18 @@ public class DingdingAttendanceFactory extends AbstractFactory {
query
.
select
(
cb
.
sum
(
root
.
get
(
StatisticDingdingUnitForDay_
.
offDutyTimes
))).
where
(
p
);
return
em
.
createQuery
(
query
).
getSingleResult
();
}
public
Long
sumNormalUnitForDayWithMonth
(
String
year
,
String
month
,
String
unit
)
throws
Exception
{
EntityManager
em
=
this
.
entityManagerContainer
().
get
(
StatisticDingdingUnitForDay
.
class
);
CriteriaBuilder
cb
=
em
.
getCriteriaBuilder
();
CriteriaQuery
<
Long
>
query
=
cb
.
createQuery
(
Long
.
class
);
Root
<
StatisticDingdingUnitForDay
>
root
=
query
.
from
(
StatisticDingdingUnitForDay
.
class
);
Predicate
p
=
cb
.
equal
(
root
.
get
(
StatisticDingdingUnitForDay_
.
statisticYear
),
year
);
p
=
cb
.
and
(
p
,
cb
.
equal
(
root
.
get
(
StatisticDingdingUnitForDay_
.
statisticMonth
),
month
));
p
=
cb
.
and
(
p
,
cb
.
equal
(
root
.
get
(
StatisticDingdingUnitForDay_
.
o2Unit
),
unit
));
query
.
select
(
cb
.
sum
(
root
.
get
(
StatisticDingdingUnitForDay_
.
resultNormal
))).
where
(
p
);
return
em
.
createQuery
(
query
).
getSingleResult
();
}
public
Long
sumLateTimesUnitForDayWithMonth
(
String
year
,
String
month
,
String
unit
)
throws
Exception
{
EntityManager
em
=
this
.
entityManagerContainer
().
get
(
StatisticDingdingUnitForDay
.
class
);
CriteriaBuilder
cb
=
em
.
getCriteriaBuilder
();
...
...
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingPersonForMonth.java
浏览文件 @
205051d4
...
...
@@ -83,6 +83,10 @@ public class StatisticDingdingPersonForMonth extends SliceJpaObject {
@Column
(
name
=
"xoffDutyTimes"
)
private
Long
offDutyTimes
;
@FieldDescribe
(
"正常签到次数"
)
@Column
(
name
=
"xresultNormal"
)
private
Long
resultNormal
;
@FieldDescribe
(
"迟到次数"
)
@Column
(
name
=
"xlateTimes"
)
private
Long
lateTimes
;
...
...
@@ -104,6 +108,14 @@ public class StatisticDingdingPersonForMonth extends SliceJpaObject {
private
Long
notSignedCount
;
public
Long
getResultNormal
()
{
return
resultNormal
;
}
public
void
setResultNormal
(
Long
resultNormal
)
{
this
.
resultNormal
=
resultNormal
;
}
public
String
getO2User
()
{
return
o2User
;
}
...
...
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingUnitForDay.java
浏览文件 @
205051d4
...
...
@@ -83,6 +83,11 @@ public class StatisticDingdingUnitForDay extends SliceJpaObject {
@Column
(
name
=
"xoffDutyTimes"
)
private
Long
offDutyTimes
;
@FieldDescribe
(
"正常签到次数"
)
@Column
(
name
=
"xresultNormal"
)
private
Long
resultNormal
;
@FieldDescribe
(
"迟到人数"
)
@Column
(
name
=
"xlateTimes"
)
private
Long
lateTimes
;
...
...
@@ -104,6 +109,14 @@ public class StatisticDingdingUnitForDay extends SliceJpaObject {
private
Long
notSignedCount
;
public
Long
getResultNormal
()
{
return
resultNormal
;
}
public
void
setResultNormal
(
Long
resultNormal
)
{
this
.
resultNormal
=
resultNormal
;
}
public
String
getStatisticDate
()
{
return
statisticDate
;
}
...
...
o2server/x_attendance_core_entity/src/main/java/com/x/attendance/entity/StatisticDingdingUnitForMonth.java
浏览文件 @
205051d4
...
...
@@ -79,6 +79,10 @@ public class StatisticDingdingUnitForMonth extends SliceJpaObject {
@Column
(
name
=
"xoffDutyTimes"
)
private
Long
offDutyTimes
;
@FieldDescribe
(
"正常签到次数"
)
@Column
(
name
=
"xresultNormal"
)
private
Long
resultNormal
;
@FieldDescribe
(
"迟到人数"
)
@Column
(
name
=
"xlateTimes"
)
private
Long
lateTimes
;
...
...
@@ -99,6 +103,13 @@ public class StatisticDingdingUnitForMonth extends SliceJpaObject {
@Column
(
name
=
"xNotSignedCount"
)
private
Long
notSignedCount
;
public
Long
getResultNormal
()
{
return
resultNormal
;
}
public
void
setResultNormal
(
Long
resultNormal
)
{
this
.
resultNormal
=
resultNormal
;
}
public
String
getO2Unit
()
{
return
o2Unit
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录