cuijian
2023-08-19 bdd0875d4b13a3f1ef472f64d4b6a95e0ef64b22
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
package org.jeecg.modules.base.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.base.entity.Unit;
import org.jeecg.modules.base.mapper.UnitMapper;
import org.jeecg.modules.base.mapper.UnitCategoryMapper;
import org.jeecg.modules.base.service.IUnitService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
 
@Service
public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit> implements IUnitService {
 
    @Resource
    private UnitMapper unitMapper;
    @Resource
    private UnitCategoryMapper unitCategoryMapper;
 
    @Override
    public List<Unit> getListByUnitCategoryId(String unitCategoryId) {
        List<Unit> list = new ArrayList<>();
        list = unitMapper.getListByUnitCategoryId(unitCategoryId);
        return list;
    }
 
    @Override
    public List<Unit> getTreeList() {
        List<Unit> list = unitMapper.getTreeList();
        return list;
    }
}