Commit 020c6a58 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 420375c8 993cd877
...@@ -14,7 +14,8 @@ public enum ErrorStatusEnum { ...@@ -14,7 +14,8 @@ public enum ErrorStatusEnum {
迟到(2, "迟到"), 迟到(2, "迟到"),
正常(3, "正常"), 正常(3, "正常"),
事假半天(4, "事假半天"), 事假半天(4, "事假半天"),
事假全天(5, "事假全天"); 事假全天(5, "事假全天"),
年假(6, "年假");
private Integer value; private Integer value;
private String desc; private String desc;
......
...@@ -120,7 +120,7 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At ...@@ -120,7 +120,7 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
saveAttendPerformRecord(context, entity, ruleCode); saveAttendPerformRecord(context, entity, ruleCode);
} }
//考勤异常处理为正常后修改考勤绩效 //考勤异常处理为正常后修改考勤绩效
if (entity.getProcessResult().equals(ErrorStatusEnum.正常.getValue().toString())) { if (entity.getProcessResult().equals(ErrorStatusEnum.正常.getValue().toString())||entity.getProcessResult().equals(ErrorStatusEnum.年假.getValue().toString())) {
CheckAttendRecordEntity checkAttendRecordQuery = new CheckAttendRecordEntity(); CheckAttendRecordEntity checkAttendRecordQuery = new CheckAttendRecordEntity();
checkAttendRecordQuery.setStaffId(entity.getStaffId()); checkAttendRecordQuery.setStaffId(entity.getStaffId());
checkAttendRecordQuery.setErrorTime(entity.getErrorDateTime()); checkAttendRecordQuery.setErrorTime(entity.getErrorDateTime());
......
...@@ -119,8 +119,8 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle ...@@ -119,8 +119,8 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
query.setAttendanceDateEnd(DateUtil.today()); query.setAttendanceDateEnd(DateUtil.today());
} }
try { try {
if (DateUtils.getBetween(query.getAttendanceDateStart(), query.getAttendanceDateEnd(), DateUtils.P_yyyy_MM_dd, 2) > 10) { if (DateUtils.getBetween(query.getAttendanceDateStart(), query.getAttendanceDateEnd(), DateUtils.P_yyyy_MM_dd, 2) > 31) {
throw new AppException("选择的日期跨度不能超过十天!"); throw new AppException("选择的日期跨度不能超过一个月!");
} }
} catch (Exception e) { } catch (Exception e) {
throw new AppException(e.getMessage()); throw new AppException(e.getMessage());
......
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