1.0
xin
2025-04-15 719d2454c260d49cb9f92a1a73b31d98c1083d82
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.oying.modules.maint.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oying.modules.maint.domain.Database;
import com.oying.modules.maint.domain.dto.DatabaseQueryCriteria;
import com.oying.utils.PageResult;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Set;
 
/**
 * @author Z
 * @date 2019-08-24
 */
public interface DatabaseService extends IService<Database> {
 
    /**
     * 分页查询
     *
     * @param criteria 条件
     * @param page     分页参数
     * @return /
     */
    PageResult<Database> queryAll(DatabaseQueryCriteria criteria, Page<Object> page);
 
    /**
     * 查询全部
     * @param criteria 条件
     * @return /
     */
    List<Database> queryAll(DatabaseQueryCriteria criteria);
 
    /**
     * 创建
     * @param resources /
     */
    void create(Database resources);
 
    /**
     * 编辑
     * @param resources /
     */
    void update(Database resources);
 
    /**
     * 删除
     * @param ids /
     */
    void delete(Set<String> ids);
 
    /**
     * 测试连接
     * @param resources /
     * @return /
     */
    boolean testConnection(Database resources);
 
    /**
     * 导出数据
     * @param queryAll /
     * @param response /
     * @throws IOException e
     */
    void download(List<Database> queryAll, HttpServletResponse response) throws IOException;
}