From 815aeed8ef115ebe54bca304111dfb72adfa989f Mon Sep 17 00:00:00 2001 From: fanzongzhe <285169773@qq.com> Date: Tue, 27 Jun 2023 10:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=AF=B9=E5=A4=96?= =?UTF-8?q?=E4=BA=A4=E4=BB=98=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppNotCompleteRecordVo.java | 1 + .../BusVehicleDataHandoverMapper.xml | 3 +- .../BusVehicleDataHandoverService.java | 31 +++++++++++++ .../BusVehicleInformationHandoverService.java | 46 +++++++++++++++++-- .../NotCompleteRecordVo.java | 1 + 5 files changed, 78 insertions(+), 4 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busvehicledatahandover/AppNotCompleteRecordVo.java b/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busvehicledatahandover/AppNotCompleteRecordVo.java index 561698e738..cfc7924efa 100644 --- a/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busvehicledatahandover/AppNotCompleteRecordVo.java +++ b/anrui-buscenter/anrui-buscenter-api/src/main/java/com/yxt/anrui/buscenter/api/busvehicledatahandover/AppNotCompleteRecordVo.java @@ -19,6 +19,7 @@ public class AppNotCompleteRecordVo implements Vo { private String customerName; private String createInfo; private String carModel; + private String billId; private List vinList = new ArrayList<>(); private String createName; @ApiModelProperty("创建日期") diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverMapper.xml b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverMapper.xml index ea62509ffb..eff824305d 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverMapper.xml +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverMapper.xml @@ -40,7 +40,8 @@ bvh.customerName, bvh.model as carModel, bvh.createName, - bvh.createTime + bvh.createTime, + bvh.billNo as billId from bus_vehicle_data_handover as bvh ${ew.sqlSegment} diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverService.java b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverService.java index f5d9346bc2..c78451d761 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverService.java +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicledatahandover/BusVehicleDataHandoverService.java @@ -773,6 +773,23 @@ public class BusVehicleDataHandoverService extends MybatisBaseService list = new ArrayList<>(); if (StringUtils.isNotBlank(dto.getBillId())) { + String billId = dto.getBillId(); + List data = getDataByBillNo(billId).getData(); + data.removeAll(Collections.singleton(null)); + if (!data.isEmpty()) { + for (BusVehicleDataHandover datum : data) { + vo.setContractId(datum.getContractNo()); + vo.setOperaName(datum.getRecName()); + vo.setOperaDate(datum.getRecDate()); + vo.setCustomerName(datum.getCustomerName()); + AppListBean appListBean = new AppListBean(); + appListBean.setInfo(datum.getItems()); + appListBean.setCarRecordSid(datum.getSid()); + appListBean.setVin(datum.getVinNo()); + list.add(appListBean); + } + } + vo.setList(list); return rb.success().setData(vo); } else { List sids = dto.getVinRecordSid(); @@ -845,6 +862,20 @@ public class BusVehicleDataHandoverService extends MybatisBaseService 0) { + return rb.success(); + } + String model = ""; String contractNo = ""; String customerName = ""; diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicleinformationhandover/BusVehicleInformationHandoverService.java b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicleinformationhandover/BusVehicleInformationHandoverService.java index b36e2c420d..7062607b21 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicleinformationhandover/BusVehicleInformationHandoverService.java +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busvehicleinformationhandover/BusVehicleInformationHandoverService.java @@ -676,9 +676,6 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService())); list.add(new AppManiFestBean(0, "驾驶员卡", "dirverCard", "", new ArrayList<>())); list.add(new AppManiFestBean(0, "气瓶产品质量证明书(燃气车)", "gasCertificate", "", new ArrayList<>())); - System.out.println("===================================="); - System.out.println(list); - System.out.println("======================================="); vo.setManiFestBeanList(list); return rb.success().setData(vo); } @@ -693,6 +690,10 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService maniFestBeanList = dto.getManiFestBeanList(); for (AppManiFestBean appManiFestBean : maniFestBeanList) { if (appManiFestBean.getKey().equals("vehicLeKeyNum")) { @@ -759,11 +760,13 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService informations = busVehicleInformationService.getByHandoverSid(sid); if (informations.size() == 1) { for (BusVehicleInformation information : informations) { @@ -892,6 +914,9 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService vinList = new ArrayList<>();