Browse Source

设备增加方向

develop
lau572 11 months ago
parent
commit
24b43f0ba9
  1. 2
      zc-business/src/main/java/com/zc/business/domain/DcDevice.java
  2. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

2
zc-business/src/main/java/com/zc/business/domain/DcDevice.java

@ -22,6 +22,8 @@ public class DcDevice {
private Long productId; private Long productId;
@ApiModelProperty("桩号") @ApiModelProperty("桩号")
private String stakeMarkId; private String stakeMarkId;
@ApiModelProperty("方向1-上行(菏泽方向),2-中,3-下行(济南方向)")
private String direction;
@ApiModelProperty("道路标识") @ApiModelProperty("道路标识")
private Long roadId; private Long roadId;
@ApiModelProperty("设备名称") @ApiModelProperty("设备名称")

5
zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java

@ -74,6 +74,11 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i
queryWrapper.eq(DcDevice::getDeviceType, dcDevice.getDeviceType()); queryWrapper.eq(DcDevice::getDeviceType, dcDevice.getDeviceType());
} }
// 方向
if (Objects.nonNull(dcDevice.getDirection())) {
queryWrapper.eq(DcDevice::getDirection, dcDevice.getDirection());
}
// 安装日期 // 安装日期
if (Objects.nonNull(dcDevice.getInstallationDate())) { if (Objects.nonNull(dcDevice.getInstallationDate())) {
queryWrapper.eq(DcDevice::getInstallationDate, dcDevice.getInstallationDate()); queryWrapper.eq(DcDevice::getInstallationDate, dcDevice.getInstallationDate());

Loading…
Cancel
Save