100 lines
2.6 KiB
Java
100 lines
2.6 KiB
Java
package com.luqj.ec.service;
|
|
|
|
import java.util.Map;
|
|
import java.util.List;
|
|
import com.luqj.ec.domain.EcDevice;
|
|
import com.luqj.ec.domain.EcDevicePlus;
|
|
import com.luqj.ec.domain.dto.EcDeviceHeartbeatDto;
|
|
import com.luqj.ec.domain.dto.EcDeviceReportDto;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
|
import com.ruoyi.common.select.SelectItem;
|
|
|
|
/**
|
|
* 设备(手机设备)Service接口
|
|
*
|
|
* @author luqj
|
|
* @date 2026-02-27
|
|
*/
|
|
public interface IEcDeviceService extends IService<EcDevicePlus> {
|
|
|
|
List<SelectItem> select(String keyword);
|
|
|
|
/**
|
|
* 查询设备(手机设备)
|
|
*
|
|
* @param id 设备(手机设备)ID
|
|
* @return 设备(手机设备)
|
|
*/
|
|
public EcDevice selectEcDeviceById(Long id);
|
|
|
|
/**
|
|
* 查询设备(手机设备)列表
|
|
*
|
|
* @param ecDevice 设备(手机设备)
|
|
* @return 设备(手机设备)集合
|
|
*/
|
|
public List<EcDevice> selectEcDeviceList(EcDevice ecDevice);
|
|
|
|
/**
|
|
* 新增设备(手机设备)
|
|
*
|
|
* @param ecDevice 设备(手机设备)
|
|
* @return 结果
|
|
*/
|
|
public int insertEcDevice(EcDevice ecDevice);
|
|
|
|
/**
|
|
* 修改设备(手机设备)
|
|
*
|
|
* @param ecDevice 设备(手机设备)
|
|
* @return 结果
|
|
*/
|
|
public int updateEcDevice(EcDevice ecDevice);
|
|
|
|
/**
|
|
* 批量删除设备(手机设备)
|
|
*
|
|
* @param ids 需要删除的设备(手机设备)ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteEcDeviceByIds(Long[] ids);
|
|
|
|
/**
|
|
* 删除设备(手机设备)信息
|
|
*
|
|
* @param id 设备(手机设备)ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteEcDeviceById(Long id);
|
|
|
|
List<EcDevicePlus> getByIds(List<Long> ids, SFunction<EcDevicePlus, ?>... columns);
|
|
|
|
EcDevicePlus getById(Long id, SFunction<EcDevicePlus, ?>... columns);
|
|
|
|
Map<Long, EcDevicePlus> getMapByIds(List<Long> ids, SFunction<EcDevicePlus, ?>... columns);
|
|
|
|
List<EcDevicePlus> getByIds(List<Long> ids);
|
|
|
|
Map<Long, EcDevicePlus> getMapByIds(List<Long> ids);
|
|
|
|
/**
|
|
* @param field sum 字段
|
|
* @param where 条件
|
|
* @param tClass 返回类型
|
|
* @param <T>
|
|
* @return
|
|
*/
|
|
<T> T sum(String field, String where, Class<T> tClass);
|
|
|
|
Long count(String where);
|
|
|
|
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
|
|
|
EcDevicePlus selectEcDeviceByDeviceCode(String deviceCode);
|
|
|
|
void reportDevice(EcDeviceReportDto reportDto);
|
|
|
|
void heartbeat(EcDeviceHeartbeatDto heartbeatDto);
|
|
}
|