Commit 586ae686 authored by 赵啸非's avatar 赵啸非

添加申诉审核流程

parent c6e202a8
...@@ -43,7 +43,6 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor ...@@ -43,7 +43,6 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor
@Override @Override
protected void saveBefore(PerformRulesEntity entity, Context context) throws AppException { protected void saveBefore(PerformRulesEntity entity, Context context) throws AppException {
if (ObjectUtils.isEmpty(entity.getRuleCode())) { if (ObjectUtils.isEmpty(entity.getRuleCode())) {
String ruleCode = ""; String ruleCode = "";
/* /*
if (PerformRulesTypeEnum.考勤绩效.getValue() == entity.getType()) { if (PerformRulesTypeEnum.考勤绩效.getValue() == entity.getType()) {
...@@ -52,22 +51,22 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor ...@@ -52,22 +51,22 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor
*/ */
switch (PerformRulesTypeEnum.getByValue(entity.getType())) { switch (PerformRulesTypeEnum.getByValue(entity.getType())) {
case 考勤绩效: case 考勤绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(ATTEND_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(ATTEND_KEY);
break; break;
case 评价差评绩效: case 评价差评绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(REVIEW_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(REVIEW_KEY);
break; break;
case 评价投诉绩效: case 评价投诉绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(COMPLAIN_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(COMPLAIN_KEY);
break; break;
case 办件绩效: case 办件绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(GOWORK_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(GOWORK_KEY);
break; break;
case 效能绩效: case 效能绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(EFFECT_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(EFFECT_KEY);
break; break;
case 其它绩效: case 其它绩效:
ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + "_" + idgeneratorService.getLongId(OTHER_KEY); ruleCode = PerformRulesTypeEnum.getByValue(entity.getType()).getDesc().toUpperCase() + idgeneratorService.getLongId(OTHER_KEY);
break; break;
default: default:
throw new AppException("绩效类型不支持!"); throw new AppException("绩效类型不支持!");
......
...@@ -72,7 +72,6 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro ...@@ -72,7 +72,6 @@ public class PerformAttendAppealController extends BaseCRUDJsonBodyMappingContro
@PostMapping(value = "audit") @PostMapping(value = "audit")
public String appealAudit(@RequestBody PerformAttendAppealEntity appeal) { public String appealAudit(@RequestBody PerformAttendAppealEntity appeal) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
Map<String, Object> model = new HashMap<>();
String busiDesc = this.getModuleDesc() + "审核"; String busiDesc = this.getModuleDesc() + "审核";
try { try {
Rest<Void> audit = this.service.audit(appeal, getContext()); Rest<Void> audit = this.service.audit(appeal, getContext());
......
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