ludc
2024-09-06 c67c8367ae83ad8304212f532994eb04e2fc215e
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.vci.web.dao;
 
import com.vci.starter.web.wrapper.VciQueryWrapperForDO;
import com.vci.model.VciFileDocClassifyDO;
 
import java.util.Collection;
import java.util.List;
 
/**
 * 文档的类型数据操作层
 * 
 * @author weidy
 * @date 2020-08-04
 */
public interface VciFileDocClassifyDaoI {
 
    /**
     * 使用主键删除
     * @param oid 数据主键
     * @return 执行结果
     */
    int deleteByPrimaryKey(String oid);
 
    /**
     * 添加数据
     * @param record 文档的类型数据对象
     * @return 执行结果
     */
    int insert(VciFileDocClassifyDO record);
 
    /**
     * 根据主键查询
     * @param oid 数据主键
     * @return 数据对象
     */
    VciFileDocClassifyDO selectByPrimaryKey(String oid);
 
    /**
     * 根据主键批量获取对象
     * @param oids 主键,包含单引号,但是不能超过1000
     * @return 数据对象列表
     */
    List<VciFileDocClassifyDO> selectByPrimaryKeys(String oids);
 
    /**
     * 根据主键批量查询对象
     * @param oids 对象主键,使用逗号分隔,但是不能超过1000
     * @return 业务对象
     */
    List<VciFileDocClassifyDO> selectByPrimaryKeyCollection(Collection<String> oids);
 
    /**
     * 查询所有分类
     * @return 查询结果
     */
    List<VciFileDocClassifyDO> selectAll();
 
    /**
     * 更新物料、工具基本分类
     * @param record 物料、工具基本分类数据对象
     * @return 执行结果
     */
    int updateByPrimaryKey(VciFileDocClassifyDO record);
 
    /**
     * 根据查询条件查询数据
     * @param wrapper 查询条件,包括分页,排序
     * @return 数据对象列表
     */
    List<VciFileDocClassifyDO> selectByWrapper(VciQueryWrapperForDO wrapper);
 
    /**
     * 根据查询条件来查询总数
     * @param wrapper 查询条件
     * @return 总数
     */
    Long countByWrapper( VciQueryWrapperForDO wrapper);
 
    /**
     * 根据主键获取名称
     * @param oid 主键
     * @return 中文名称
     */
    String selectNameByOid(String oid);
 
 
    /**
     * 批量删除对象
     * @param oids 对象的主键集合
     * @return 受印象的行数
     */
    long batchDeleteByOids( Collection<String> oids);
 
    /**
     * 使用编号查询
     * @param ids 编号
     * @return 查询结果
     */
    List<VciFileDocClassifyDO> selectByIdCollection(Collection<String> ids);
 
    /**
     * 使用编号查询对象
     * @param id 编号
     * @return 数据对象
     */
    VciFileDocClassifyDO selectById(String id);
 
}