唐耀东
2022-07-16 e667b280a7fd77dd7fad81c66dba2cef9936d422
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
package com.ruoyi.oa.service;
 
import com.ruoyi.oa.domain.BsRules;
import com.ruoyi.oa.domain.vo.BsRulesVo;
import com.ruoyi.oa.domain.bo.BsRulesBo;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;
 
import java.util.Collection;
import java.util.List;
 
/**
 * 规章制度Service接口
 *
 * @author ruoyi
 * @date 2022-07-03
 */
public interface IBsRulesService extends IServicePlus<BsRules, BsRulesVo> {
    /**
     * 查询单个
     * @return
     */
    BsRulesVo queryById(Long id);
 
    /**
     * 查询列表
     */
    TableDataInfo<BsRulesVo> queryPageList(BsRulesBo bo);
 
    /**
     * 查询列表
     */
    List<BsRulesVo> queryList(BsRulesBo bo);
 
    /**
     * 根据新增业务对象插入规章制度
     * @param bo 规章制度新增业务对象
     * @return
     */
    Boolean insertByBo(BsRulesBo bo);
 
    /**
     * 根据编辑业务对象修改规章制度
     * @param bo 规章制度编辑业务对象
     * @return
     */
    Boolean updateByBo(BsRulesBo bo);
 
    /**
     * 校验并删除数据
     * @param ids 主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}