|
|
@@ -1,12 +1,13 @@
|
|
1
|
1
|
package api.service.system.impl;
|
|
2
|
2
|
|
|
3
|
3
|
|
|
4
|
|
-import api.entity.database.system.Menu;
|
|
5
|
4
|
import api.entity.database.system.WorkroderType;
|
|
6
|
5
|
import api.entity.view.TreeSelect;
|
|
|
6
|
+import api.entity.view.system.WorkroderTypeView;
|
|
7
|
7
|
import api.mapper.system.WorkroderTypeMapper;
|
|
8
|
8
|
import api.service.BaseServiceImpl;
|
|
9
|
9
|
import api.service.system.IWorkroderTypeService;
|
|
|
10
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
10
|
11
|
import org.springframework.stereotype.Service;
|
|
11
|
12
|
import org.springframework.transaction.annotation.Transactional;
|
|
12
|
13
|
|
|
|
@@ -19,8 +20,13 @@ import java.util.stream.Collectors;
|
|
19
|
20
|
@Service
|
|
20
|
21
|
public class WorkroderTypeServiceImpl extends BaseServiceImpl<WorkroderTypeMapper, WorkroderType> implements IWorkroderTypeService {
|
|
21
|
22
|
public WorkroderTypeServiceImpl(){ super(false); }
|
|
22
|
|
-
|
|
23
|
|
-
|
|
|
23
|
+ @Autowired
|
|
|
24
|
+ private WorkroderTypeMapper workroderTypeMapper;
|
|
|
25
|
+ @Override
|
|
|
26
|
+ public List<WorkroderTypeView> selectWorkroderType(long id)
|
|
|
27
|
+ {
|
|
|
28
|
+ return workroderTypeMapper.selectWorkroderType(id);
|
|
|
29
|
+ }
|
|
24
|
30
|
@Override
|
|
25
|
31
|
public List<TreeSelect> buildMenuTreeSelect(List<WorkroderType> Type) {
|
|
26
|
32
|
List<WorkroderType> menuTrees = buildMenuTree(Type);
|