TTInfoDetailService.java
2.62 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package com.bsth.service.schedule;
import com.bsth.entity.schedule.TTInfoDetail;
import com.bsth.service.schedule.datatools.TTInfoDetailForEdit;
import com.bsth.service.schedule.datatools.TTinfoDetailDynamicData;
import com.bsth.service.schedule.exception.ScheduleException;
import com.bsth.service.schedule.timetable.ExcelFormatType;
import com.bsth.service.schedule.utils.DataToolsFile;
import com.bsth.service.schedule.utils.DataToolsFileType;
import java.util.List;
import java.util.Map;
/**
* Created by xu on 16/7/2.
*/
public interface TTInfoDetailService extends BService<TTInfoDetail, Long> {
/**
* 获取待编辑的数据。
* @param xlid 线路id
* @param ttid 时刻表id
* @param maxfcno 最大发车顺序号
* @return
*/
TTInfoDetailForEdit.EditInfo getEditInfo(Integer xlid, Long ttid, Long maxfcno) throws ScheduleException;
/**
* 导出动态时刻表。
* @param dtInfos
* @return
* @throws ScheduleException
*/
DataToolsFile exportDynamicTTinfo(TTinfoDetailDynamicData.DTInfos dtInfos, DataToolsFileType type) throws ScheduleException;
/**
* 导出班次发车间隔信息。
* @param lineHeadWayInfo
* @return
* @throws ScheduleException
*/
DataToolsFile exportHeadwayTTinfo(TTinfoDetailDynamicData.LineHeadWayInfo lineHeadWayInfo) throws ScheduleException;
/**
* 获取时刻表最大发车顺序号
* @param xlid 线路id
* @param ttinfoid 时刻表id
* @return
*/
Long findMaxFcno(Integer xlid, Long ttinfoid);
/**
* 验证sheet(以后放到规则引擎里去做)。
* @param filename excel文件全路径名
* @param sheetname sheet名字
* @param lineid 线路id
* @param lineversion 线路版本
* @param excelFormatType 版本
*/
void validateExcelSheet(
String filename,
String sheetname,
Integer lineid,
String linename,
Integer lineversion,
ExcelFormatType excelFormatType) throws ScheduleException;
/**
* 验证关联的线路标准信息(以后放到规则引擎里去做)。
* @param lineinfoid 线路id
*/
void validateAssoLineInfo(Integer lineinfoid) throws ScheduleException;
// TODO:这个方法可以用通用方法解决,以后改
List<TTInfoDetail> findBcdetails(Integer xlId, Long ttinfoId, Long lpId);
Map<String, Object> skbDetailMxSave(Map<String, Object> map);
List<Map<String, Object>> findZdAndTcc(int lineid, int xldir, int lineversion);
}