|
|
@ -29,8 +29,8 @@ public class DcStakeMarkServiceImpl extends ServiceImpl<DcStakeMarkMapper, DcSta |
|
|
|
LambdaQueryWrapper<DcStakeMark> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
|
|
|
// 设备ID
|
|
|
|
if (StringUtils.hasText(dcStakeMark.getId())) { |
|
|
|
queryWrapper.eq(DcStakeMark::getId, dcStakeMark.getId()); |
|
|
|
if (StringUtils.hasText(dcStakeMark.getStakeMark())) { |
|
|
|
queryWrapper.eq(DcStakeMark::getStakeMark, dcStakeMark.getStakeMark()); |
|
|
|
} |
|
|
|
|
|
|
|
// 经度
|
|
|
@ -69,7 +69,7 @@ public class DcStakeMarkServiceImpl extends ServiceImpl<DcStakeMarkMapper, DcSta |
|
|
|
@Override |
|
|
|
public boolean addStakeMark(DcStakeMark dcStakeMark) { |
|
|
|
|
|
|
|
String id = dcStakeMark.getId(); |
|
|
|
String id = dcStakeMark.getStakeMark(); |
|
|
|
if (Objects.nonNull(id)) { |
|
|
|
DcStakeMark device = getById(id); |
|
|
|
if (Objects.nonNull(device)) { |
|
|
@ -84,7 +84,7 @@ public class DcStakeMarkServiceImpl extends ServiceImpl<DcStakeMarkMapper, DcSta |
|
|
|
@Override |
|
|
|
public boolean editStakeMark(DcStakeMark dcStakeMark) { |
|
|
|
|
|
|
|
String id = dcStakeMark.getId(); |
|
|
|
String id = dcStakeMark.getStakeMark(); |
|
|
|
|
|
|
|
// 检查设备id是否重复
|
|
|
|
DcStakeMark product = getById(id); |
|
|
|