Commit a1d81668 authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent 3a09acd9
...@@ -335,7 +335,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -335,7 +335,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
if (bool) { if (bool) {
performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue()); performInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}else { } else {
if (AppealResultEnum.通过.getValue() == entity.getAppealResult()) { if (AppealResultEnum.通过.getValue() == entity.getAppealResult()) {
performInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue()); performInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue());
} else if (AppealResultEnum.不通过.getValue() == entity.getAppealResult()) { } else if (AppealResultEnum.不通过.getValue() == entity.getAppealResult()) {
...@@ -406,17 +406,23 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -406,17 +406,23 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(performDetailInfo.getId()).performType(performReq.getPerformType())); PerformAttendAppealEntity entity = appealService.selectOne(new PerformAttendAppealQuery().checkRecordId(performDetailInfo.getId()).performType(performReq.getPerformType()));
log.info("entity:{}", JSONObject.toJSONString(entity));
if (!ObjectUtils.isEmpty(entity)) { if (!ObjectUtils.isEmpty(entity)) {
Boolean bool = entity.newEntity(); Boolean bool = entity.newEntity();
if (bool) { if (bool) {
performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue()); performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
}else { } else {
if (AppealResultEnum.通过.getValue() == entity.getAppealResult()) { if (ObjectUtils.isEmpty(entity.getAppealResult())) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue());
} else if (AppealResultEnum.不通过.getValue() == entity.getAppealResult()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉拒绝.getValue());
} else {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉中.getValue()); performDetailInfo.setAppealStatus(AppealStatusEnum.申诉中.getValue());
} else {
if (AppealResultEnum.通过.getValue() == entity.getAppealResult()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue());
} else if (AppealResultEnum.不通过.getValue() == entity.getAppealResult()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉拒绝.getValue());
} else {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉中.getValue());
}
} }
} }
} else { } else {
......
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