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());