diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java b/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java index 93e8e559..7efb706f 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java @@ -134,24 +134,24 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac } } - builder.registerTypeAdapter(Date.class, (JsonDeserializer) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong())); - - Gson gson = builder.create(); - JsonElement jsonElement = gson.toJsonTree(kv); - TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class); - if (abilityApplicationDTO != null) { - if (abilityApplicationDTO.getReject() != null && abilityApplicationDTO.getReject() == Boolean.TRUE) { // 存在被拒绝的节点 - abilityApplicationDTO.setDelFlag(0); - abilityApplicationDTO.setApproveStatus("不通过"); - tAbilityApplicationService.update(abilityApplicationDTO); - logger.error("审批不通过!申请id:" + abilityApplicationDTO.getId()); - } else { - abilityApplicationDTO.setDelFlag(0); - abilityApplicationDTO.setApproveStatus("通过"); - tAbilityApplicationService.update(abilityApplicationDTO); - logger.error("审批通过!申请id:" + abilityApplicationDTO.getId()); - } - } +// builder.registerTypeAdapter(Date.class, (JsonDeserializer) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong())); +// +// Gson gson = builder.create(); +// JsonElement jsonElement = gson.toJsonTree(kv); +// TAbilityApplicationDTO abilityApplicationDTO = gson.fromJson(jsonElement, TAbilityApplicationDTO.class); +// if (abilityApplicationDTO != null) { +// if (abilityApplicationDTO.getReject() != null && abilityApplicationDTO.getReject() == Boolean.TRUE) { // 存在被拒绝的节点 +// abilityApplicationDTO.setDelFlag(0); +// abilityApplicationDTO.setApproveStatus("不通过"); +// tAbilityApplicationService.update(abilityApplicationDTO); +// logger.error("审批不通过!申请id:" + abilityApplicationDTO.getId()); +// } else { +// abilityApplicationDTO.setDelFlag(0); +// abilityApplicationDTO.setApproveStatus("通过"); +// tAbilityApplicationService.update(abilityApplicationDTO); +// logger.error("审批通过!申请id:" + abilityApplicationDTO.getId()); +// } +// } } /**