package com.yuanchu.mom.service;
|
|
import com.yuanchu.mom.pojo.Device;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.yuanchu.mom.pojo.dto.DeviceDto;
|
import org.springframework.transaction.annotation.Transactional;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* <p>
|
* 服务类
|
* </p>
|
*
|
* @author 江苏鵷雏网络科技有限公司
|
* @since 2023-07-31
|
*/
|
public interface DeviceService extends IService<Device> {
|
|
/**
|
* 查询设备维护-->左侧列表设备组展示
|
* @param type
|
* @param search_class
|
* @return
|
*/
|
List<Map<String, Object>> deviceTwoTree(Integer type, String search_class);
|
|
/**
|
* 查询设备维护-->右侧列表展示该设备组下的所有设备
|
* @param father
|
* @return
|
*/
|
List<Map<String, Object>> selectTreeDevice(Integer type, String father, Integer deviceStatus, String message);
|
|
|
/**
|
* 新增仪器设备
|
* @param deviceDto
|
* @return
|
*/
|
Integer addDevice(DeviceDto deviceDto);
|
|
/**
|
* 根据设备分组查询设备
|
* @param deviceGroup
|
* @return
|
*/
|
List<Map<String, Object>> getDeviceNameByGroup(String deviceGroup);
|
|
/**
|
* 查询所有设备编号和设备名称
|
* @return
|
*/
|
List<Map<String, Object>> selectDeviceIdAndName();
|
|
/**
|
* 删除
|
* @param id
|
*/
|
void delDeviceById(Integer id);
|
|
/**
|
* 批量删除
|
* @param ids
|
*/
|
void delAllDevice(String ids);
|
|
/**
|
* 选择检验设备
|
* @return
|
*/
|
List<Map<String,Object>> chooseDevice();
|
|
/**
|
* 新增仪器设备:设备组下拉框
|
* @return
|
*/
|
List<String> listGroup(Integer type);
|
}
|