parent
c6264a9d74
commit
cd8c36d187
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -123,23 +123,23 @@
|
|||
insert into att_group_setting(group_id, att_day
|
||||
<if test="toWorkTime != null and toWorkTime != ''">,to_work_time</if>
|
||||
<if test="offWorkTime != null and offWorkTime != ''">,off_work_time</if>
|
||||
<if test="lateMinute != null and lateMinute != ''">,late_minute</if>
|
||||
<if test="leaveMinute != null and leaveMinute != ''">,leave_minute</if>
|
||||
<if test="absenteeismLateMinute != null and absenteeismLateMinute != ''">,absenteeism_late_minute</if>
|
||||
<if test="absenteeismLeaveMinute != null and absenteeismLeaveMinute != ''">,absenteeism_leave_minute</if>
|
||||
<if test="entryAbnormalMinute != null and entryAbnormalMinute != ''">,entry_abnormal_minute</if>
|
||||
<if test="todayClockNum != null and todayClockNum != ''">,today_clock_num</if>
|
||||
<if test="attendanceDuration != null and attendanceDuration != ''">,attendance_duration</if>
|
||||
<if test="lateMinute != null ">,late_minute</if>
|
||||
<if test="leaveMinute != null ">,leave_minute</if>
|
||||
<if test="absenteeismLateMinute != null ">,absenteeism_late_minute</if>
|
||||
<if test="absenteeismLeaveMinute != null ">,absenteeism_leave_minute</if>
|
||||
<if test="entryAbnormalMinute != null ">,entry_abnormal_minute</if>
|
||||
<if test="todayClockNum != null ">,today_clock_num</if>
|
||||
<if test="attendanceDuration != null ">,attendance_duration</if>
|
||||
)values( #{groupId}, #{attDay}
|
||||
<if test="toWorkTime != null and toWorkTime != ''">,#{toWorkTime}</if>
|
||||
<if test="offWorkTime != null and offWorkTime != ''">,#{offWorkTime}</if>
|
||||
<if test="lateMinute != null and lateMinute != ''">,#{lateMinute}</if>
|
||||
<if test="leaveMinute != null and leaveMinute != ''">,#{leaveMinute}</if>
|
||||
<if test="absenteeismLateMinute != null and absenteeismLateMinute != ''">,#{absenteeismLateMinute}</if>
|
||||
<if test="absenteeismLeaveMinute != null and absenteeismLeaveMinute != ''">,#{absenteeismLeaveMinute}</if>
|
||||
<if test="entryAbnormalMinute != null and entryAbnormalMinute != ''">,#{entryAbnormalMinute}</if>
|
||||
<if test="todayClockNum != null and todayClockNum != ''">,#{todayClockNum}</if>
|
||||
<if test="attendanceDuration != null and attendanceDuration != ''">,#{attendanceDuration}</if>
|
||||
<if test="lateMinute != null ">,#{lateMinute}</if>
|
||||
<if test="leaveMinute != null ">,#{leaveMinute}</if>
|
||||
<if test="absenteeismLateMinute != null ">,#{absenteeismLateMinute}</if>
|
||||
<if test="absenteeismLeaveMinute != null ">,#{absenteeismLeaveMinute}</if>
|
||||
<if test="entryAbnormalMinute != null ">,#{entryAbnormalMinute}</if>
|
||||
<if test="todayClockNum != null ">,#{todayClockNum}</if>
|
||||
<if test="attendanceDuration != null ">,#{attendanceDuration}</if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
|
@ -163,19 +163,19 @@
|
|||
update att_group_setting set att_day = #{attDay}
|
||||
<if test="toWorkTime != null and toWorkTime != ''">,to_work_time = #{toWorkTime}</if>
|
||||
<if test="offWorkTime != null and offWorkTime != ''">,off_work_time = #{offWorkTime}</if>
|
||||
<if test="lateMinute != null and lateMinute != ''">,late_minute = #{lateMinute}</if>
|
||||
<if test="leaveMinute != null and leaveMinute != ''">,leave_minute = #{leaveMinute}</if>
|
||||
<if test="absenteeismLateMinute != null and absenteeismLateMinute != ''">,absenteeism_late_minute =
|
||||
<if test="lateMinute != null ">,late_minute = #{lateMinute}</if>
|
||||
<if test="leaveMinute != null ">,leave_minute = #{leaveMinute}</if>
|
||||
<if test="absenteeismLateMinute != null ">,absenteeism_late_minute =
|
||||
#{absenteeismLateMinute}
|
||||
</if>
|
||||
<if test="absenteeismLeaveMinute != null and absenteeismLeaveMinute != ''">,absenteeism_leave_minute =
|
||||
<if test="absenteeismLeaveMinute != null ">,absenteeism_leave_minute =
|
||||
#{absenteeismLeaveMinute}
|
||||
</if>
|
||||
<if test="entryAbnormalMinute != null and entryAbnormalMinute != ''">,entry_abnormal_minute =
|
||||
<if test="entryAbnormalMinute != null ">,entry_abnormal_minute =
|
||||
#{entryAbnormalMinute}
|
||||
</if>
|
||||
<if test="todayClockNum != null and todayClockNum != ''">,today_clock_num = #{todayClockNum}</if>
|
||||
<if test="attendanceDuration != null and attendanceDuration != ''">,attendance_duration =
|
||||
<if test="todayClockNum != null ">,today_clock_num = #{todayClockNum}</if>
|
||||
<if test="attendanceDuration != null ">,attendance_duration =
|
||||
#{attendanceDuration}
|
||||
</if>
|
||||
where group_id = #{groupId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue