From 48c2e5ffb3f9ad3509006e50f3142ea4d0e7f619 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 16 十月 2024 09:32:16 +0800 Subject: [PATCH] 修改拼接sql逻辑以及返回逻辑 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcda/service/ChannelOPCDADeviceService.java | 52 +++++++++++----------------------------------------- 1 files changed, 11 insertions(+), 41 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcda/service/ChannelOPCDADeviceService.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcda/service/ChannelOPCDADeviceService.java index c760f9d..8c6bca4 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcda/service/ChannelOPCDADeviceService.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/opcda/service/ChannelOPCDADeviceService.java @@ -1,60 +1,30 @@ package com.iailab.module.data.channel.opcda.service; +import com.iailab.framework.common.pojo.PageResult; import com.iailab.module.data.channel.opcda.dto.ChannelOPCDADeviceDTO; import com.iailab.module.data.channel.opcda.entity.ChannelOPCDADeviceEntity; +import com.iailab.module.data.channel.opcda.vo.OpcDaDevicePageReqVO; import com.iailab.module.data.common.utils.PageUtils; import java.util.List; import java.util.Map; /** - * @author DongYukun + * @author lirm * @Description - * @createTime 2023年05月08日 15:04:00 + * @createTime 2024年08月26日 */ public interface ChannelOPCDADeviceService { - /** - * 分页查询设备 - * - * @param params - */ - PageUtils queryPage(Map<String, Object> params); - /** - * 查询设备详情 - * - * @param id - */ + + List<ChannelOPCDADeviceDTO> selectAll(); + + PageResult<ChannelOPCDADeviceEntity> queryPage(OpcDaDevicePageReqVO reqVO); + ChannelOPCDADeviceEntity info(String id); - /** - * 列表 - * - * @param params - * @return - */ - List<ChannelOPCDADeviceEntity> list(Map<String, Object> params); - - /** - * 添加设备 - * - * @param channelOPCDADeviceEntity - */ void add(ChannelOPCDADeviceEntity channelOPCDADeviceEntity); - /** - * 修改设备 - * - * @param channelOPCDADeviceEntity - */ + void update(ChannelOPCDADeviceEntity channelOPCDADeviceEntity); - /** - * 删除设备 - * - * @param id - */ + void delete(String id); - /** - * 查询全部设备 - * - */ - List<ChannelOPCDADeviceDTO> selectAll(); } -- Gitblit v1.9.3