|
|
@@ -7,8 +7,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.zksy.base.domain.EquipmentBase;
|
|
|
import com.zksy.base.domain.EquipmentPointRel;
|
|
|
import com.zksy.base.domain.MonitorPoint;
|
|
|
-import com.zksy.base.dto.MonitorPointPageInDTO;
|
|
|
import com.zksy.base.domain.PipeNetworkBase;
|
|
|
+import com.zksy.base.dto.MonitorPointPageInDTO;
|
|
|
import com.zksy.base.mapper.EquipmentBaseMapper;
|
|
|
import com.zksy.base.mapper.EquipmentPointRelMapper;
|
|
|
import com.zksy.base.mapper.MonitorPointMapper;
|
|
|
@@ -37,6 +37,16 @@ public class MonitorPointServiceImpl extends ServiceImpl<MonitorPointMapper, Mon
|
|
|
@Autowired
|
|
|
private PipeNetworkBaseMapper pipeNetworkBaseMapper;
|
|
|
|
|
|
+ @Override
|
|
|
+ public Page<MonitorPoint> queryByPage(MonitorPointPageInDTO dto) {
|
|
|
+ Page<MonitorPoint> page = new Page<>(dto.getPageNum(), dto.getPageSize());
|
|
|
+ LambdaQueryWrapper<MonitorPoint> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.like(dto.getPointName() != null && !dto.getPointName().isEmpty(), MonitorPoint::getPointName, dto.getPointName());
|
|
|
+ wrapper.eq(dto.getPointType() != null && !dto.getPointType().isEmpty(), MonitorPoint::getPointType, dto.getPointType());
|
|
|
+ wrapper.orderByDesc(MonitorPoint::getCreateTime);
|
|
|
+ return this.page(page, wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public Page<MonitorPoint> findByPage(long pageNum, long pageSize,
|
|
|
String pointCode, String pointName,
|
|
|
@@ -103,8 +113,6 @@ public class MonitorPointServiceImpl extends ServiceImpl<MonitorPointMapper, Mon
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<MonitorPoint> findByPage(MonitorPointPageInDTO dto) {
|
|
|
- Page<MonitorPoint> page = new Page<>(dto.getPageNum(), dto.getPageSize());
|
|
|
@Transactional
|
|
|
public boolean updateWithCheck(MonitorPoint entity) {
|
|
|
String pointId = entity.getPointId();
|
|
|
@@ -255,11 +263,8 @@ public class MonitorPointServiceImpl extends ServiceImpl<MonitorPointMapper, Mon
|
|
|
@Override
|
|
|
public List<MonitorPoint> getPointsByNetwork(String networkId) {
|
|
|
LambdaQueryWrapper<MonitorPoint> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.like(dto.getPointName() != null && !dto.getPointName().isEmpty(), MonitorPoint::getPointName, dto.getPointName());
|
|
|
- wrapper.eq(dto.getPointType() != null && !dto.getPointType().isEmpty(), MonitorPoint::getPointType, dto.getPointType());
|
|
|
wrapper.eq(MonitorPoint::getNetworkId, networkId);
|
|
|
wrapper.orderByDesc(MonitorPoint::getCreateTime);
|
|
|
- return this.page(page, wrapper);
|
|
|
return this.list(wrapper);
|
|
|
}
|
|
|
}
|