CarServiceImpl.java
1.88 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
52
53
54
55
56
57
58
59
60
61
62
63
package com.glsx.publicservice.service.impl;
import com.alibaba.dubbo.config.annotation.Reference;
import com.glsx.biz.common.base.entity.Carbrand;
import com.glsx.biz.common.base.entity.Carseries;
import com.glsx.biz.common.base.entity.Cartype;
import com.glsx.biz.common.base.service.CarbrandService;
import com.glsx.biz.common.base.service.CarseriesService;
import com.glsx.biz.common.base.service.CartypeService;
import com.glsx.publicservice.service.CarService;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CarServiceImpl implements CarService {
@Reference(version = "2.2.0")
private CarbrandService carbrandService;
@Reference(version = "2.2.0")
private CarseriesService carseriesService;
@Reference(version = "2.2.0")
private CartypeService cartypeService;
@Override
public List<Carbrand> getCarbrandList() {
// TODO Auto-generated method stub
return carbrandService.getAllList();
}
@Override
public List<Carseries> getCarseriesList(Integer bid) {
// TODO Auto-generated method stub
return carseriesService.getByCarbrandId(bid);
}
@Override
public List<Cartype> getCartypeList(Integer seriesId) {
// TODO Auto-generated method stub
return cartypeService.getBySeiesId(seriesId);
}
@Override
public Carbrand getCarbrandById(Integer bid) {
// TODO Auto-generated method stub
return carbrandService.findById(bid);
}
@Override
public Carseries getCarseriesById(Integer seriesId) {
// TODO Auto-generated method stub
return carseriesService.findById(seriesId);
}
@Override
public Cartype getCartypeById(Integer seriesId, Integer cartypeId) {
// TODO Auto-generated method stub
return cartypeService.get(seriesId, cartypeId);
}
@Override
public Cartype getCarTypeDetail( Integer cartypeId) {
return cartypeService.get( cartypeId);
}
}