111
This commit is contained in:
@ -488,11 +488,20 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
|
||||
.last("limit 1"));
|
||||
vo.setEntryTime(apply.getEntryTime());
|
||||
|
||||
Integer i = attendanceService.attendanceDetail(userId, recruitId, null);
|
||||
int i = iWgzAttendanceService.count(
|
||||
new LambdaQueryWrapper<WgzAttendance>().
|
||||
eq(WgzAttendance::getUserId, userId).
|
||||
eq(WgzAttendance::getRecruitId,recruitId).and(wrapper -> wrapper
|
||||
.isNotNull(WgzAttendance::getClockInTime)
|
||||
.or()
|
||||
.isNotNull(WgzAttendance::getClockOutTime)
|
||||
)
|
||||
);
|
||||
// Integer i = attendanceService.attendanceDetail(userId, recruitId, null);
|
||||
BigDecimal totalAmount = recruit.getRecruitAmount().multiply(BigDecimal.valueOf(i));
|
||||
vo.setAllAmount(totalAmount);
|
||||
|
||||
List<WgzPayCalculation> gzs = findByUserIdRecruitIdNewestData(userId, apply.getId());
|
||||
List<WgzPayCalculation> gzs = findByUserIdRecruitIdNewestData(userId, recruitId);
|
||||
BigDecimal addSum = new BigDecimal(0);
|
||||
for (WgzPayCalculation gz : gzs) {
|
||||
//金额*天数=实际工资
|
||||
|
@ -254,8 +254,8 @@ public class WgzReissueacardServiceImpl extends ServicePlusImpl<WgzReissueacardM
|
||||
exceptionType = exceptionType.replace("\\b1\\b", "5");
|
||||
exceptionType = exceptionType.replace("\\b3\\b", "5");
|
||||
attendance.setExceptionType(exceptionType);
|
||||
attendance.setLate(1);
|
||||
attendance.setMissedIn(1);
|
||||
attendance.setLate(0);
|
||||
attendance.setMissedIn(0);
|
||||
if(attendance.getClockInTime() == null){
|
||||
attendance.setClockInTime(byId.getNowTime());
|
||||
}
|
||||
@ -263,8 +263,8 @@ public class WgzReissueacardServiceImpl extends ServicePlusImpl<WgzReissueacardM
|
||||
exceptionType = exceptionType.replace("\\b2\\b", "6");
|
||||
exceptionType = exceptionType.replace("\\b4\\b", "6");
|
||||
attendance.setExceptionType(exceptionType);
|
||||
attendance.setEarlyLeave(1);
|
||||
attendance.setMissedOut(1);
|
||||
attendance.setEarlyLeave(0);
|
||||
attendance.setMissedOut(0);
|
||||
if(attendance.getClockOutTime() == null){
|
||||
attendance.setClockOutTime(byId.getNowTime());
|
||||
}
|
||||
|
Reference in New Issue
Block a user