From cd8c36d187858ce66a589ba03ba004bec692dd24 Mon Sep 17 00:00:00 2001
From: lSun <15893999301@qq.com>
Date: Thu, 5 Dec 2024 17:28:03 +0800
Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E8=A7=84=E5=88=99=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: lSun <15893999301@qq.com>
---
.../att/service/AttGroupServiceImpl.java | 4 ++
.../resources/mapper/att/AttGroupMapper.xml | 42 +++++++++----------
2 files changed, 25 insertions(+), 21 deletions(-)
diff --git a/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/service/AttGroupServiceImpl.java b/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/service/AttGroupServiceImpl.java
index 72e7bdc..2449e6f 100644
--- a/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/service/AttGroupServiceImpl.java
+++ b/bonus-modules/bonus-system/src/main/java/com/bonus/system/att/service/AttGroupServiceImpl.java
@@ -68,6 +68,10 @@ public class AttGroupServiceImpl implements AttGroupService {
//新增考勤组设置表
int j = attGroupDao.insertAttGroupSetting(bean);
//新增考勤组绑定人员表
+ for (int k = 0; k < checkOrgAllList.size(); k++) {
+// checkOrgAllList.get[k].setGroupId(bean.getGroupId());
+ checkOrgAllList.get(k).setGroupId(bean.getGroupId());
+ }
int x = attGroupDao.insertAttGroupPerson(checkOrgAllList);
if (j > 0 && (x == checkOrgAllList.size())) {
result = 1;
diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/att/AttGroupMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/att/AttGroupMapper.xml
index 5c3f4e0..ddb3aca 100644
--- a/bonus-modules/bonus-system/src/main/resources/mapper/att/AttGroupMapper.xml
+++ b/bonus-modules/bonus-system/src/main/resources/mapper/att/AttGroupMapper.xml
@@ -123,23 +123,23 @@
insert into att_group_setting(group_id, att_day
,to_work_time
,off_work_time
- ,late_minute
- ,leave_minute
- ,absenteeism_late_minute
- ,absenteeism_leave_minute
- ,entry_abnormal_minute
- ,today_clock_num
- ,attendance_duration
+ ,late_minute
+ ,leave_minute
+ ,absenteeism_late_minute
+ ,absenteeism_leave_minute
+ ,entry_abnormal_minute
+ ,today_clock_num
+ ,attendance_duration
)values( #{groupId}, #{attDay}
,#{toWorkTime}
,#{offWorkTime}
- ,#{lateMinute}
- ,#{leaveMinute}
- ,#{absenteeismLateMinute}
- ,#{absenteeismLeaveMinute}
- ,#{entryAbnormalMinute}
- ,#{todayClockNum}
- ,#{attendanceDuration}
+ ,#{lateMinute}
+ ,#{leaveMinute}
+ ,#{absenteeismLateMinute}
+ ,#{absenteeismLeaveMinute}
+ ,#{entryAbnormalMinute}
+ ,#{todayClockNum}
+ ,#{attendanceDuration}
)
@@ -163,19 +163,19 @@
update att_group_setting set att_day = #{attDay}
,to_work_time = #{toWorkTime}
,off_work_time = #{offWorkTime}
- ,late_minute = #{lateMinute}
- ,leave_minute = #{leaveMinute}
- ,absenteeism_late_minute =
+ ,late_minute = #{lateMinute}
+ ,leave_minute = #{leaveMinute}
+ ,absenteeism_late_minute =
#{absenteeismLateMinute}
- ,absenteeism_leave_minute =
+ ,absenteeism_leave_minute =
#{absenteeismLeaveMinute}
- ,entry_abnormal_minute =
+ ,entry_abnormal_minute =
#{entryAbnormalMinute}
- ,today_clock_num = #{todayClockNum}
- ,attendance_duration =
+ ,today_clock_num = #{todayClockNum}
+ ,attendance_duration =
#{attendanceDuration}
where group_id = #{groupId}