Browse Source

设备字段修改

develop
lau572 11 months ago
parent
commit
e639c79543
  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

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

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

@ -58,11 +58,6 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i
queryWrapper.eq(DcDevice::getStakeMarkId, dcDevice.getStakeMarkId()); queryWrapper.eq(DcDevice::getStakeMarkId, dcDevice.getStakeMarkId());
} }
// 道路标识
if (Objects.nonNull(dcDevice.getRoadId())) {
queryWrapper.eq(DcDevice::getRoadId, dcDevice.getRoadId());
}
// 设备名称 // 设备名称
if (StringUtils.hasText(dcDevice.getDeviceName())) { if (StringUtils.hasText(dcDevice.getDeviceName())) {
queryWrapper.like(DcDevice::getDeviceName, dcDevice.getDeviceName()); queryWrapper.like(DcDevice::getDeviceName, dcDevice.getDeviceName());

Loading…
Cancel
Save