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 org_change(user_id, old_org_id, new_org_id,is_change_att_group, change_effective_date, is_check
remark)
values (#{userId},#{oldOrgId},#{newOrgId},#{isChangeAttGroup},#{changeTime},#{createUserId},#{remark})
,old_att_group
,new_att_group
) values (#{userId},#{oldOrgId},#{newOrgId},#{isChangeAttGroup},#{changeEffectiveDate},#{isCheck}
,#{oldAttGroup}
,#{newAttGroup}
)
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}