增加接口和app初始头像
This commit is contained in:
@ -298,7 +298,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
//2、获取当前人、当前工地、当前月的所有考勤记录
|
||||
LambdaQueryWrapper<WgzAttendance> apply = new LambdaQueryWrapper<WgzAttendance>().
|
||||
eq(WgzAttendance::getUserId, appUserId).
|
||||
eq(WgzAttendance::getRecruitId, by.getId()).
|
||||
eq(WgzAttendance::getRecruitId, by.getRecruitId()).
|
||||
apply("DATE_FORMAT(date, '%Y-%m') = {0}", format);
|
||||
List<WgzAttendance> wgzAttendances = baseMapper.selectList(apply);
|
||||
//3、组装返回数据
|
||||
@ -317,7 +317,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
if (wa.getClockOutTime() != null) {
|
||||
two.setNum(2);
|
||||
two.setManHour(calculateWorkingHours(wa.getClockInTime(), wa.getClockOutTime()));
|
||||
two.setSb(sbOrXb(wa, 2));
|
||||
two.setXb(sbOrXb(wa, 2));
|
||||
}
|
||||
}
|
||||
mp.put(date, two);
|
||||
@ -545,7 +545,6 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
*/
|
||||
public WgzAppPunchTheCalendarRecordThree sbOrXb(WgzAttendance wa, int num) {
|
||||
WgzAppPunchTheCalendarRecordThree sbb = new WgzAppPunchTheCalendarRecordThree().
|
||||
setClockingTime(wa.getClockInTime()).
|
||||
setPnchOsition(wa.getPnchOsition()).
|
||||
setPnchOsitionX(wa.getPnchOsitionX()).
|
||||
setClockingCondition(0); //正常
|
||||
@ -554,6 +553,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
sbb.setClockingCondition(7);
|
||||
}
|
||||
if (num == 1) {
|
||||
sbb.setClockingTime(wa.getClockInTime());
|
||||
//判断上班迟到
|
||||
if (wa.getLate() == 1) {
|
||||
sbb.setClockingCondition(1);
|
||||
@ -564,6 +564,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
}
|
||||
}
|
||||
if (num == 2) {
|
||||
sbb.setClockingTime(wa.getClockOutTime());
|
||||
//判断下班早退
|
||||
if (wa.getEarlyLeave() == 1) {
|
||||
sbb.setClockingCondition(2);
|
||||
|
||||
Reference in New Issue
Block a user