|
@@ -63,8 +63,8 @@
|
|
|
or (b.rule_type = 2 and b.attendance_count < 2 and b.shift_real_time_s is not null) <!-- 班次上下班,需要打卡(固定班时休息日),打卡次数不足,当天有排班-->
|
|
|
or (b.rule_type = 2 and b.shift_real_time_s is not null and b.goto_time is null) <!-- 班次上下班,需要打卡,当天有排班,没有打卡记录-->
|
|
|
or (b.duration is not null and b.work_overtime > 0) <!-- 有加班信息,打卡时间早于加班申请时间-->
|
|
|
- and b.set_info > 0 and b.error_state is not null
|
|
|
- )
|
|
|
+ and b.set_info > 0 ) and b.error_state is null
|
|
|
+
|
|
|
|
|
|
group by b.username,b.depart_names
|
|
|
|
|
@@ -98,8 +98,8 @@
|
|
|
or (b.rule_type = 2 and b.attendance_count < 2 and b.shift_real_time_s is not null) <!-- 班次上下班,需要打卡(固定班时休息日),打卡次数不足,当天有排班-->
|
|
|
or (b.rule_type = 2 and b.shift_real_time_s is not null and b.goto_time is null) <!-- 班次上下班,需要打卡,当天有排班,没有打卡记录-->
|
|
|
or (b.duration is not null and b.work_overtime > 0) <!-- 有加班信息,打卡时间早于加班申请时间-->
|
|
|
- and b.set_info > 0 and b.error_state is not null
|
|
|
- )
|
|
|
+ and b.set_info > 0 ) and b.error_state is null
|
|
|
+
|
|
|
|
|
|
group by b.username
|
|
|
) B
|