From f6f7c915e4c1e594b92963b7f6e79ad5cd0d5a9e Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 7 Mar 2024 08:57:10 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=93=8D=E4=BD=9C=E7=A5=A8=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E7=BB=93=E6=9D=9F=E6=97=B6=E7=8A=B6=E6=80=81=E4=B8=BA?= =?UTF-8?q?=E4=BD=9C=E5=BA=9Fbug=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/OperationTicketServiceImpl.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java index 05f9fa7..5736365 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/standardTicket/service/impl/OperationTicketServiceImpl.java @@ -303,15 +303,18 @@ public class OperationTicketServiceImpl implements OperationTicketService { String taskId = response.getTaskId(); log.info("StringUtils.isBlank(taskId) = " + StringUtils.isBlank(taskId)); if (StringUtils.isBlank(taskId)) { - if (newStandardTicketInfoEntity.equals(TicketConstants.OPERATION_TICKET_APPROVED)) { + // verifyResult=="rejected" + JSONObject variable = JSONObject.parseObject(JSON.toJSONString(response.getVariables())); + if("rejected".equals(variable.getString("verifyResult"))) { + newStandardTicketInfoEntity.setFlowDescription("作废"); + newStandardTicketInfoEntity.setFlowTaskName("作废"); + } + else { newStandardTicketInfoEntity.setFlowDescription("结束"); newStandardTicketInfoEntity.setFlowTaskId(" "); newStandardTicketInfoEntity.setFlowTaskName("结束"); newStandardTicketInfoEntity.setNextStepOperator(" "); newStandardTicketInfoEntity.setFlowStatus(999); - } else { - newStandardTicketInfoEntity.setFlowDescription("作废"); - newStandardTicketInfoEntity.setFlowTaskName("作废"); } } else { //如果response.getHandleType() 是0使用户