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;
@ApiModelProperty("方向1-上行(菏泽方向),2-中,3-下行(济南方向)")
private String direction;
@ApiModelProperty("道路标识")
private Long roadId;
@ApiModelProperty("设备名称")
private String deviceName;
@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());
}
// 道路标识
if (Objects.nonNull(dcDevice.getRoadId())) {
queryWrapper.eq(DcDevice::getRoadId, dcDevice.getRoadId());
}
// 设备名称
if (StringUtils.hasText(dcDevice.getDeviceName())) {
queryWrapper.like(DcDevice::getDeviceName, dcDevice.getDeviceName());

Loading…
Cancel
Save