update att_group
set is_active = 0
where id = #{groupId};
update att_group_setting
set is_active = 0
where group_id = #{groupId};
update att_group_person_relation
set is_active = 0
where group_id = #{groupId};
update att_group_person_relation
set is_active = 0
where group_id = #{groupId};
insert into att_group(group_name, att_type, create_user_id)
values (#{groupName}, #{attType}, #{createUserId});
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
)values( #{groupId}, #{attDay}
,#{toWorkTime}
,#{offWorkTime}
,#{lateMinute}
,#{leaveMinute}
,#{absenteeismLateMinute}
,#{absenteeismLeaveMinute}
,#{entryAbnormalMinute}
,#{todayClockNum}
,#{attendanceDuration}
)
insert into att_group_person_relation(group_id, org_id, user_id)
values
(#{params.groupId}, #{params.orgId}, #{params.userId})
update att_group
set group_name = #{groupName},
att_type = #{attType},
update_user_id = #{updateUserId}
where id = #{groupId}
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 =
#{absenteeismLateMinute}
,absenteeism_leave_minute =
#{absenteeismLeaveMinute}
,entry_abnormal_minute =
#{entryAbnormalMinute}
,today_clock_num = #{todayClockNum}
,attendance_duration =
#{attendanceDuration}
where group_id = #{groupId}