Commit 6a836378 authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/dev' into dev

parents 6eeff808 2c4c87e3
...@@ -62,4 +62,9 @@ public class Attendance { ...@@ -62,4 +62,9 @@ public class Attendance {
private Integer pageSize; private Integer pageSize;
// 排序方式 // 排序方式
private Integer sort; private Integer sort;
// 上班打卡设备
private String workDeviceName;
// 下班打卡设备
private String officeDeviceName;
} }
...@@ -49,6 +49,8 @@ public class AttendanceSyncSchedule { ...@@ -49,6 +49,8 @@ public class AttendanceSyncSchedule {
attendanceSync.setPositionLabel(all.get(i).getPositionName()); attendanceSync.setPositionLabel(all.get(i).getPositionName());
attendanceSync.setWorkHours(all.get(i).getWorkShift()); attendanceSync.setWorkHours(all.get(i).getWorkShift());
attendanceSync.setOffHours(all.get(i).getClosingTime()); attendanceSync.setOffHours(all.get(i).getClosingTime());
attendanceSync.setWorkDeviceName(all.get(i).getWorkDeviceName());
attendanceSync.setOffDeviceName(all.get(i).getOfficeDeviceName());
attendanceSync.setDateOfAttendance(all.get(i).getKqDate()); attendanceSync.setDateOfAttendance(all.get(i).getKqDate());
attendanceSync.setTimeOnJob(all.get(i).getDuration()); attendanceSync.setTimeOnJob(all.get(i).getDuration());
attendanceSync.setNltBz(sysUser.getNltBz()); attendanceSync.setNltBz(sysUser.getNltBz());
......
...@@ -93,7 +93,9 @@ public class AttendanceServiceImpl implements AttendanceService { ...@@ -93,7 +93,9 @@ public class AttendanceServiceImpl implements AttendanceService {
if (begin.compareTo(end) > 0) if (begin.compareTo(end) > 0)
return null; return null;
attendance.setWorkShift(sdf.format(work.getCrossTime())); attendance.setWorkShift(sdf.format(work.getCrossTime()));
attendance.setWorkDeviceName(work.getDeviceName());
attendance.setClosingTime(sdf.format(out.getCrossTime())); attendance.setClosingTime(sdf.format(out.getCrossTime()));
attendance.setOfficeDeviceName(out.getDeviceName());
} else } else
return null; return null;
Date beginTime = null; Date beginTime = null;
......
...@@ -86,6 +86,8 @@ ...@@ -86,6 +86,8 @@
<if test="entity.positionLabel != null">position_label ,</if> <if test="entity.positionLabel != null">position_label ,</if>
<if test="entity.workHours != null">work_hours ,</if> <if test="entity.workHours != null">work_hours ,</if>
<if test="entity.offHours != null">off_hours ,</if> <if test="entity.offHours != null">off_hours ,</if>
<if test="entity.workDeviceName != null">work_device_name ,</if>
<if test="entity.offDeviceName != null">off_device_name ,</if>
<if test="entity.dateOfAttendance != null">date_of_attendance ,</if> <if test="entity.dateOfAttendance != null">date_of_attendance ,</if>
<if test="entity.timeOnJob != null">time_on_job ,</if> <if test="entity.timeOnJob != null">time_on_job ,</if>
<if test="entity.nltBz != null">nlt_bz ,</if> <if test="entity.nltBz != null">nlt_bz ,</if>
...@@ -105,6 +107,8 @@ ...@@ -105,6 +107,8 @@
<if test="entity.positionLabel != null">#{entity.positionLabel},</if> <if test="entity.positionLabel != null">#{entity.positionLabel},</if>
<if test="entity.workHours != null">#{entity.workHours},</if> <if test="entity.workHours != null">#{entity.workHours},</if>
<if test="entity.offHours != null">#{entity.offHours},</if> <if test="entity.offHours != null">#{entity.offHours},</if>
<if test="entity.workDeviceName != null">#{entity.workDeviceName} ,</if>
<if test="entity.offDeviceName != null">#{entity.offDeviceName} ,</if>
<if test="entity.dateOfAttendance != null">#{entity.dateOfAttendance},</if> <if test="entity.dateOfAttendance != null">#{entity.dateOfAttendance},</if>
<if test="entity.timeOnJob != null">#{entity.timeOnJob},</if> <if test="entity.timeOnJob != null">#{entity.timeOnJob},</if>
<if test="entity.nltBz != null">#{entity.nltBz},</if> <if test="entity.nltBz != null">#{entity.nltBz},</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment