From a2d3314b6323c1b97fcbc418024008e1352aea69 Mon Sep 17 00:00:00 2001 From: hanlinghao <2969694837@qq.com> Date: Thu, 14 Jul 2022 18:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E7=94=B3=E8=AF=B7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../busdeliveredapply/BusDeliveredApplyVo.java | 4 +--- .../busdeliveredapply/BusDeliveredApplyMapper.xml | 9 ++------- .../BusDeliveredApplyService.java | 15 +++++++++------ 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/BusDeliveredApplyVo.java b/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/BusDeliveredApplyVo.java index 5ad22a043d..452b76fc8d 100644 --- a/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/BusDeliveredApplyVo.java +++ b/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busdeliveredapply/BusDeliveredApplyVo.java @@ -51,7 +51,7 @@ public class BusDeliveredApplyVo implements Vo { private static final long serialVersionUID = -5288930043107860764L; private String sid; @ApiModelProperty(value = "状态") - private String state; + private String nodeState; @ApiModelProperty("合同编号") private String contractNo; @ApiModelProperty("客户名称") @@ -64,8 +64,6 @@ public class BusDeliveredApplyVo implements Vo { private String taskId; @ApiModelProperty(value = "流程实例id") private String procInstId; - @ApiModelProperty(value = "显示撤回按钮") - private boolean revokeState; } diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml index e3778b02e4..3ff5785827 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyMapper.xml @@ -5,12 +5,7 @@ - select if(state = '1', 'true', 'false') + select if(length(nodeState) > 0, 'false','true') from bus_delivered_apply where sid in #{sid} diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java index 21bfd4b02f..f8005d0117 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdeliveredapply/BusDeliveredApplyService.java @@ -141,6 +141,9 @@ public class BusDeliveredApplyService extends MybatisBaseService stringList = busDeliveredApplyDetailsService.selectVinByApplySid(dtoSid); - for (int i = 0; i < stringList.size(); i++) { - String vinNo = stringList.get(i); - busDeliveredService.updateState(vinNo, 0); - } return rb.success().setData(dtoSid); } @@ -452,8 +450,13 @@ public class BusDeliveredApplyService extends MybatisBaseService stringList = busDeliveredApplyDetailsService.selectVinByApplySid(sid); + for (int i = 0; i < stringList.size(); i++) { + String vinNo = stringList.get(i); + busDeliveredService.updateState(vinNo, 0); + } baseMapper.updateStateBySid(2, sid, DateUtil.date()); String businessSid = resultBean.getData(); //创建BusinessVariables实体对象