...
This commit is contained in:
parent
481b4a4fec
commit
ae3e7c80a1
|
@ -134,24 +134,24 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.registerTypeAdapter(Date.class, (JsonDeserializer<Date>) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));
|
// builder.registerTypeAdapter(Date.class, (JsonDeserializer<Date>) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));
|
||||||
|
//
|
||||||
Gson gson = builder.create();
|
// Gson gson = builder.create();
|
||||||
JsonElement jsonElement = gson.toJsonTree(kv);
|
// JsonElement jsonElement = gson.toJsonTree(kv);
|
||||||
TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class);
|
// TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class);
|
||||||
if (abilityApplicationDTO != null) {
|
// if (abilityApplicationDTO != null) {
|
||||||
if (abilityApplicationDTO.getReject() != null && abilityApplicationDTO.getReject() == Boolean.TRUE) { // 存在被拒绝的节点
|
// if (abilityApplicationDTO.getReject() != null && abilityApplicationDTO.getReject() == Boolean.TRUE) { // 存在被拒绝的节点
|
||||||
abilityApplicationDTO.setDelFlag(0);
|
// abilityApplicationDTO.setDelFlag(0);
|
||||||
abilityApplicationDTO.setApproveStatus("不通过");
|
// abilityApplicationDTO.setApproveStatus("不通过");
|
||||||
tAbilityApplicationService.update(abilityApplicationDTO);
|
// tAbilityApplicationService.update(abilityApplicationDTO);
|
||||||
logger.error("审批不通过!申请id:" + abilityApplicationDTO.getId());
|
// logger.error("审批不通过!申请id:" + abilityApplicationDTO.getId());
|
||||||
} else {
|
// } else {
|
||||||
abilityApplicationDTO.setDelFlag(0);
|
// abilityApplicationDTO.setDelFlag(0);
|
||||||
abilityApplicationDTO.setApproveStatus("通过");
|
// abilityApplicationDTO.setApproveStatus("通过");
|
||||||
tAbilityApplicationService.update(abilityApplicationDTO);
|
// tAbilityApplicationService.update(abilityApplicationDTO);
|
||||||
logger.error("审批通过!申请id:" + abilityApplicationDTO.getId());
|
// logger.error("审批通过!申请id:" + abilityApplicationDTO.getId());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue