ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.base.service.impl;
 
 
import jnpf.base.Pagination;
import jnpf.base.entity.ModuleDataAuthorizeSchemeEntity;
import jnpf.base.mapper.ModuleDataAuthorizeSchemeMapper;
import jnpf.base.model.moduledataauthorizescheme.ModuleDataAuthorizeSchemeModel;
import jnpf.base.service.ModuleDataAuthorizeSchemeService;
import jnpf.base.service.SuperServiceImpl;
import jnpf.util.DateUtil;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 数据权限方案
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2019年9月27日 上午9:18
 */
@Service
public class ModuleDataAuthorizeSchemeServiceImpl extends SuperServiceImpl<ModuleDataAuthorizeSchemeMapper, ModuleDataAuthorizeSchemeEntity> implements ModuleDataAuthorizeSchemeService {
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getList() {
        return this.baseMapper.getList();
    }
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getEnabledMarkList(String enabledMark) {
        return this.baseMapper.getEnabledMarkList(enabledMark);
    }
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getList(String moduleId) {
        return this.baseMapper.getList(moduleId);
    }
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getList(String moduleId, Pagination pagination) {
        return this.baseMapper.getList(moduleId, pagination);
    }
 
    @Override
    public ModuleDataAuthorizeSchemeEntity getInfo(String id) {
        return this.baseMapper.getInfo(id);
    }
 
    @Override
    public void create(ModuleDataAuthorizeSchemeEntity entity) {
        this.baseMapper.create(entity);
    }
 
    @Override
    public boolean update(String id, ModuleDataAuthorizeSchemeEntity entity) {
        entity.setId(id);
        entity.setEnabledMark(1);
        entity.setLastModifyTime(DateUtil.getNowDate());
        return this.updateById(entity);
    }
 
    @Override
    public void delete(ModuleDataAuthorizeSchemeEntity entity) {
        this.removeById(entity.getId());
    }
 
    @Override
    public Boolean isExistByFullName(String id, String fullName, String moduleId) {
        return this.baseMapper.isExistByFullName(id, fullName, moduleId);
    }
 
    @Override
    public Boolean isExistByEnCode(String id, String enCode, String moduleId) {
        return this.baseMapper.isExistByEnCode(id, enCode, moduleId);
    }
 
    @Override
    public Boolean isExistAllData(String moduleId) {
        return this.baseMapper.isExistAllData(moduleId);
    }
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getListByModuleId(ModuleDataAuthorizeSchemeModel model) {
        return this.baseMapper.getListByModuleId(model.getIds(), null);
    }
 
    @Override
    public List<ModuleDataAuthorizeSchemeEntity> getListByIds(List<String> ids) {
        return this.baseMapper.getListByIds(ids);
    }
}