From 24b43f0ba95225da57c264028ac0c30fd2416009 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Wed, 10 Jan 2024 17:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=A2=9E=E5=8A=A0=E6=96=B9?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/domain/DcDevice.java | 2 ++ .../com/zc/business/service/impl/DcDeviceServiceImpl.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/zc-business/src/main/java/com/zc/business/domain/DcDevice.java b/zc-business/src/main/java/com/zc/business/domain/DcDevice.java index e9e6364b..b9a91cb7 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcDevice.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcDevice.java @@ -22,6 +22,8 @@ public class DcDevice { private Long productId; @ApiModelProperty("桩号") private String stakeMarkId; + @ApiModelProperty("方向1-上行(菏泽方向),2-中,3-下行(济南方向)") + private String direction; @ApiModelProperty("道路标识") private Long roadId; @ApiModelProperty("设备名称") diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java index d75648de..2a95e268 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java @@ -74,6 +74,11 @@ public class DcDeviceServiceImpl extends ServiceImpl i queryWrapper.eq(DcDevice::getDeviceType, dcDevice.getDeviceType()); } + // 方向 + if (Objects.nonNull(dcDevice.getDirection())) { + queryWrapper.eq(DcDevice::getDirection, dcDevice.getDirection()); + } + // 安装日期 if (Objects.nonNull(dcDevice.getInstallationDate())) { queryWrapper.eq(DcDevice::getInstallationDate, dcDevice.getInstallationDate());