kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);
}