AuthLevelServiceImpl.java
1.46 KB
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
package com.diligrp.website.service.impl;
import com.diligrp.website.domain.AuthLevel;
import com.diligrp.website.domain.PickUpPointDomain;
import com.diligrp.website.manager.AuthLevelManager;
import com.diligrp.website.service.AuthLevelService;
import com.diligrp.website.util.dao.BaseQuery;
import com.diligrp.website.util.domain.Result;
import com.diligrp.website.util.web.PageTemplate;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;
@Component("authLevelService")
public class AuthLevelServiceImpl implements AuthLevelService {
@Resource
private AuthLevelManager authLevelManager;
@Override
public PageTemplate getAuthLevelList(BaseQuery query) {
return authLevelManager.getAuthLevelList(query);
}
@Override
public boolean addAuthLevel(AuthLevel authLevel) {
return authLevelManager.addAuthLevel(authLevel);
}
@Override
public AuthLevel getAuthLevelById(Long id) {
return authLevelManager.getAuthLevelById(id);
}
@Override
public Result modifyAuthLevel(AuthLevel authLevel) {
boolean flag = authLevelManager.modifyAuthLevel(authLevel);
return Result.create(flag);
}
@Override
public List<AuthLevel> getAllAuthLevel() {
return authLevelManager.getAllAuthLevel();
}
@Override
public AuthLevel checkName(Long id, String levelName) {
return authLevelManager.checkName(id,levelName);
}
}