package com.gkhy.assess.system.mapper;
|
|
import com.gkhy.assess.system.domain.AssDevice;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Mapper;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 设备表 Mapper 接口
|
* </p>
|
*
|
* @author kzy
|
* @since 2023-12-12 10:46:54
|
*/
|
@Mapper
|
public interface AssDeviceMapper extends BaseMapper<AssDevice> {
|
|
/**
|
* 根据名称查询设备
|
* @param deviceName
|
* @return
|
*/
|
AssDevice getDeviceByName(String deviceName);
|
|
/**
|
* 根据项目id获取设备列表
|
* @param projectId
|
* @return
|
*/
|
List<AssDevice> getDevicesByProjectId(Long projectId);
|
|
/**
|
* 批量删除设备
|
* @param ids
|
* @return
|
*/
|
int deleteDeviceByIds(List<Long> ids);
|
}
|