LineInformationServiceImpl.java
1.12 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
package com.bsth.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bsth.entity.LineInformation;
import com.bsth.repository.LineInformationRepository;
import com.bsth.service.LineInformationService;
import com.google.common.base.Splitter;
/**
*
* @ClassName: LineInformationServiceImpl(线路标准信息service业务层实现类)
*
* @Extends : BaseService
*
* @Description: TODO(路段service业务层)
*
* @Author bsth@lq
*
* @Date 2016年05月03日 上午9:21:17
*
* @Version 公交调度系统BS版 0.1
*
*/
@Service
public class LineInformationServiceImpl extends BaseServiceImpl<LineInformation, Integer> implements LineInformationService{
@Autowired
LineInformationRepository lineInformationRepository;
@Override
public List<LineInformation> findByLine(String lineCodes) {
List<String> list = Splitter.on(",").omitEmptyStrings().splitToList(lineCodes);
if(list.size() == 0)
return null;
return lineInformationRepository.findByLine(list);
}
}