Commit 02362ca0791ed1517aa57d4c768001b5c1642717

Authored by youxiw2000
1 parent 90970423

line 增加字段 ticket_price decimal 长度10 小数2

business 增加字段 phone_num varcar 长度20 
stationroute ls_stationroute 增加字段 station_name_en 长度255

Too many changes to show.

To preserve performance only 11 of 13 files are displayed.

src/main/java/com/bsth/entity/Business.java
... ... @@ -43,6 +43,8 @@ public class Business {
43 43  
44 44 // 描述
45 45 private String descriptions;
  46 + // 描述
  47 + private String phoneNum;
46 48  
47 49 // 创建日期
48 50 @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
... ... @@ -106,4 +108,13 @@ public class Business {
106 108 public void setDescriptions(String descriptions) {
107 109 this.descriptions = descriptions;
108 110 }
  111 +
  112 + public String getPhoneNum() {
  113 + return phoneNum;
  114 + }
  115 +
  116 + public void setPhoneNum(String phoneNum) {
  117 + this.phoneNum = phoneNum;
  118 + }
  119 +
109 120 }
... ...
src/main/java/com/bsth/entity/Line.java
1   -package com.bsth.entity;
2   -
3   -import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4   -import org.hibernate.annotations.Formula;
5   -import org.springframework.format.annotation.DateTimeFormat;
6   -
7   -import javax.persistence.*;
8   -import java.io.Serializable;
9   -import java.util.Date;
10   -
11   -
12   -/**
13   - *
14   - * @ClassName: Line(线路实体类)
15   - *
16   - * @Description: TODO(线路)
17   - *
18   - * @Author bsth@lq
19   - *
20   - * @Date 2016-4-11 16:06:17
21   - *
22   - * @Version 公交调度系统BS版 0.1
23   - *
24   - */
25   -
26   -@Entity
27   -@Table(name = "bsth_c_line")
28   -@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
29   -public class Line implements Serializable {
30   -
31   - @Id
32   - /** 线路ID 主键(唯一标识符) int length(11) */
33   - private Integer id;
34   -
35   - /** 线路名称 varchar length(50) 不能为空 */
36   - private String name;
37   -
38   - /** 线路编码 varchar length(50) 不能为空 */
39   - private String lineCode;
40   -
41   - /** 英文名 varchar length(50) */
42   - private String es;
43   -
44   - /** 简称 varchar length(50) */
45   - private String shortName;
46   -
47   - /** 起始站名称 varchar length(50) 不能为空
48   - * 该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值 */
49   - private String startStationName;
50   -
51   - /** 终点站名称 varchar length(50) 不能为空
52   - * 该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值 */
53   - private String endStationName;
54   -
55   - /** 起始站首班车时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空 */
56   - private String startStationFirstTime;
57   -
58   - /** 起始站末班车时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空 */
59   - private String startStationEndTime;
60   -
61   - /** 终点站首班时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空*/
62   - private String endStationFirstTime;
63   -
64   - /** 终点站末班时间 00:00 上海公交APP中某个接口所需要的字段值 */
65   - private String endStationEndTime;
66   -
67   - /** 所属公司 varchar length(50) */
68   - private String company;
69   -
70   - /** 分公司 varchar length(50)*/
71   - private String brancheCompany;
72   -
73   - /** 组合公司分公司编码 */
74   - @Formula(" concat(company, '_', branche_company) ")
75   - private String cgsbm;
76   -
77   - /** 性质(线路类型) varchar length(50) */
78   - private String nature;
79   -
80   - /** 线路等级 varchar length(50) */
81   - private String level;
82   -
83   - /** 线路长度 */
84   - private double length;
85   -
86   - /** 线路负责人 varchar length(50) */
87   - private String chargeName;
88   -
89   - /** 负责人电话 varchar length(50) */
90   - private String telephone;
91   -
92   - /** 是否撤销 <1:是;0:否> bit length(50) */
93   - private Integer destroy;
94   -
95   - /** 是否夜宵线 <1:是;0:否> bit length(50)*/
96   - private Integer supperLine;
97   -
98   - /** 是否营运 <1:是;0:否> bit length(50)*/
99   - private Integer sfyy;
100   -
101   - /** 线路区域 <0:区内,1:区外> bit length(1)*/
102   - private Integer region;
103   -
104   - /** 起始调度电话 varchar length(50) */
105   - private String startPhone;
106   -
107   - /** 终点调度电话 varchar length(50) */
108   - private String endPhone;
109   -
110   - /** 开辟日期 date*/
111   - @DateTimeFormat(pattern ="yyyy-MM-dd")
112   - private Date openDate;
113   -
114   - /** 大间隔等级 */
115   - private Integer spacGrade;
116   -
117   - /** 线路沿革 varchar length(50) */
118   - private String history;
119   -
120   - /** 上海市线路编码 varchar length(50) */
121   - private String shanghaiLinecode;
122   -
123   - /** 设备线路编码 varchar length(50) */
124   - private String eqLinecode;
125   -
126   - /** 配置车辆总数 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11)*/
127   - private Integer carSumNumber;
128   -
129   - /** 空调车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
130   - private Integer hvacCarNumber;
131   -
132   - /** 普通车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
133   - private Integer ordCarNumber;
134   -
135   - /** 权证车辆数量 报表需要的字段值 */
136   - private Integer warrantCar;
137   -
138   - /** 权证配车启用日期 报表需要的字段值 */
139   - private Integer warrantDate;
140   -
141   - /** 停车场编码 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
142   - private String carParkCode;
143   -
144   - /** 线路规划类型 <0:双向;1:环线> int length(11) 运管处接口需要的字段 不能为空 */
145   - private Integer linePlayType;
146   -
147   - /** 描述 varchar length(255) */
148   - private String descriptions;
149   -
150   - /** 创建人 int length(11) */
151   - private Integer createBy;
152   -
153   - /** 修改人 int length(11) */
154   - private Integer updateBy;
155   -
156   - /** 创建日期 timestamp */
157   - @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
158   - private Date createDate;
159   -
160   - /** 修改日期 timestamp */
161   - @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
162   - private Date updateDate;
163   -
164   - /** 是否在使用 <1:是;0:否> bit length(50) */
165   - private Integer inUse;
166   -
167   - /**
168   - * 逻辑删除标记 为 1:标识已删除
169   - */
170   - private Integer remove = 0;
171   -
172   - public Integer getSpacGrade() {
173   - return spacGrade;
174   - }
175   -
176   - public void setSpacGrade(Integer spacGrade) {
177   - this.spacGrade = spacGrade;
178   - }
179   -
180   - public Integer getWarrantCar() {
181   - return warrantCar;
182   - }
183   -
184   - public void setWarrantCar(Integer warrantCar) {
185   - this.warrantCar = warrantCar;
186   - }
187   -
188   - public Integer getWarrantDate() {
189   - return warrantDate;
190   - }
191   -
192   - public void setWarrantDate(Integer warrantDate) {
193   - this.warrantDate = warrantDate;
194   - }
195   -
196   - public Integer getLinePlayType() {
197   - return linePlayType;
198   - }
199   -
200   - public void setLinePlayType(Integer linePlayType) {
201   - this.linePlayType = linePlayType;
202   - }
203   -
204   - public Integer getId() {
205   - return id;
206   - }
207   -
208   - public void setId(Integer id) {
209   - this.id = id;
210   - }
211   -
212   - public String getLineCode() {
213   - return lineCode;
214   - }
215   -
216   - public void setLineCode(String lineCode) {
217   - this.lineCode = lineCode;
218   - }
219   -
220   - public String getName() {
221   - return name;
222   - }
223   -
224   - public void setName(String name) {
225   - this.name = name;
226   - }
227   -
228   - public String getEs() {
229   - return es;
230   - }
231   -
232   - public void setEs(String es) {
233   - this.es = es;
234   - }
235   -
236   - public String getShortName() {
237   - return shortName;
238   - }
239   -
240   - public void setShortName(String shortName) {
241   - this.shortName = shortName;
242   - }
243   -
244   - public Integer getCarSumNumber() {
245   - return carSumNumber;
246   - }
247   -
248   - public void setCarSumNumber(Integer carSumNumber) {
249   - this.carSumNumber = carSumNumber;
250   - }
251   -
252   - public Integer getHvacCarNumber() {
253   - return hvacCarNumber;
254   - }
255   -
256   - public void setHvacCarNumber(Integer hvacCarNumber) {
257   - this.hvacCarNumber = hvacCarNumber;
258   - }
259   -
260   - public Integer getOrdCarNumber() {
261   - return ordCarNumber;
262   - }
263   -
264   - public void setOrdCarNumber(Integer ordCarNumber) {
265   - this.ordCarNumber = ordCarNumber;
266   - }
267   -
268   - public String getCarParkCode() {
269   - return carParkCode;
270   - }
271   -
272   - public void setCarParkCode(String carParkCode) {
273   - this.carParkCode = carParkCode;
274   - }
275   -
276   - public String getStartStationName() {
277   - return startStationName;
278   - }
279   -
280   - public void setStartStationName(String startStationName) {
281   - this.startStationName = startStationName;
282   - }
283   -
284   - public String getStartStationFirstTime() {
285   - return startStationFirstTime;
286   - }
287   -
288   - public void setStartStationFirstTime(String startStationFirstTime) {
289   - this.startStationFirstTime = startStationFirstTime;
290   - }
291   -
292   - public String getStartStationEndTime() {
293   - return startStationEndTime;
294   - }
295   -
296   - public void setStartStationEndTime(String startStationEndTime) {
297   - this.startStationEndTime = startStationEndTime;
298   - }
299   -
300   - public String getEndStationName() {
301   - return endStationName;
302   - }
303   -
304   - public void setEndStationName(String endStationName) {
305   - this.endStationName = endStationName;
306   - }
307   -
308   - public String getEndStationFirstTime() {
309   - return endStationFirstTime;
310   - }
311   -
312   - public void setEndStationFirstTime(String endStationFirstTime) {
313   - this.endStationFirstTime = endStationFirstTime;
314   - }
315   -
316   - public String getEndStationEndTime() {
317   - return endStationEndTime;
318   - }
319   -
320   - public void setEndStationEndTime(String endStationEndTime) {
321   - this.endStationEndTime = endStationEndTime;
322   - }
323   -
324   - public String getCompany() {
325   - return company;
326   - }
327   -
328   - public void setCompany(String company) {
329   - this.company = company;
330   - }
331   -
332   - public String getBrancheCompany() {
333   - return brancheCompany;
334   - }
335   -
336   - public void setBrancheCompany(String brancheCompany) {
337   - this.brancheCompany = brancheCompany;
338   - }
339   -
340   - public String getNature() {
341   - return nature;
342   - }
343   -
344   - public void setNature(String nature) {
345   - this.nature = nature;
346   - }
347   -
348   - public String getLevel() {
349   - return level;
350   - }
351   -
352   - public void setLevel(String level) {
353   - this.level = level;
354   - }
355   -
356   - public double getLength() {
357   - return length;
358   - }
359   -
360   - public void setLength(double length) {
361   - this.length = length;
362   - }
363   -
364   - public String getChargeName() {
365   - return chargeName;
366   - }
367   -
368   - public void setChargeName(String chargeName) {
369   - this.chargeName = chargeName;
370   - }
371   -
372   - public String getTelephone() {
373   - return telephone;
374   - }
375   -
376   - public void setTelephone(String telephone) {
377   - this.telephone = telephone;
378   - }
379   -
380   - public Integer getDestroy() {
381   - return destroy;
382   - }
383   -
384   - public void setDestroy(Integer destroy) {
385   - this.destroy = destroy;
386   - }
387   -
388   - public Integer getSupperLine() {
389   - return supperLine;
390   - }
391   -
392   - public void setSupperLine(Integer supperLine) {
393   - this.supperLine = supperLine;
394   - }
395   -
396   - public String getStartPhone() {
397   - return startPhone;
398   - }
399   -
400   - public void setStartPhone(String startPhone) {
401   - this.startPhone = startPhone;
402   - }
403   -
404   - public String getEndPhone() {
405   - return endPhone;
406   - }
407   -
408   - public void setEndPhone(String endPhone) {
409   - this.endPhone = endPhone;
410   - }
411   -
412   - public Date getOpenDate() {
413   - return openDate;
414   - }
415   -
416   - public void setOpenDate(Date openDate) {
417   - this.openDate = openDate;
418   - }
419   -
420   - public String getHistory() {
421   - return history;
422   - }
423   -
424   - public void setHistory(String history) {
425   - this.history = history;
426   - }
427   -
428   - public String getShanghaiLinecode() {
429   - return shanghaiLinecode;
430   - }
431   -
432   - public void setShanghaiLinecode(String shanghaiLinecode) {
433   - this.shanghaiLinecode = shanghaiLinecode;
434   - }
435   -
436   - public String getEqLinecode() {
437   - return eqLinecode;
438   - }
439   -
440   - public void setEqLinecode(String eqLinecode) {
441   - this.eqLinecode = eqLinecode;
442   - }
443   -
444   - public String getDescriptions() {
445   - return descriptions;
446   - }
447   -
448   - public void setDescriptions(String descriptions) {
449   - this.descriptions = descriptions;
450   - }
451   -
452   - public Integer getCreateBy() {
453   - return createBy;
454   - }
455   -
456   - public void setCreateBy(Integer createBy) {
457   - this.createBy = createBy;
458   - }
459   -
460   - public Integer getUpdateBy() {
461   - return updateBy;
462   - }
463   -
464   - public void setUpdateBy(Integer updateBy) {
465   - this.updateBy = updateBy;
466   - }
467   -
468   - public Date getCreateDate() {
469   - return createDate;
470   - }
471   -
472   - public void setCreateDate(Date createDate) {
473   - this.createDate = createDate;
474   - }
475   -
476   - public Date getUpdateDate() {
477   - return updateDate;
478   - }
479   -
480   - public void setUpdateDate(Date updateDate) {
481   - this.updateDate = updateDate;
482   - }
483   -
484   - public Integer getInUse() { return inUse; }
485   -
486   - public void setInUse(Integer inUse) { this.inUse = inUse; }
487   -
488   - public String getCgsbm() {
489   - return cgsbm;
490   - }
491   -
492   - public void setCgsbm(String cgsbm) {
493   - this.cgsbm = cgsbm;
494   - }
495   -
496   - public Integer getSfyy() {
497   - return sfyy;
498   - }
499   -
500   - public void setSfyy(Integer sfyy) {
501   - this.sfyy = sfyy;
502   - }
503   -
504   - public Integer getRegion() {
505   - return region;
506   - }
507   -
508   - public void setRegion(Integer region) {
509   - this.region = region;
510   - }
511   -
512   - public Integer getRemove() {
513   - return remove;
514   - }
515   -
516   - public void setRemove(Integer remove) {
517   - this.remove = remove;
518   - }
519   -}
  1 +package com.bsth.entity;
  2 +
  3 +import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  4 +import org.hibernate.annotations.Formula;
  5 +import org.springframework.format.annotation.DateTimeFormat;
  6 +
  7 +import javax.persistence.*;
  8 +import java.io.Serializable;
  9 +import java.util.Date;
  10 +
  11 +
  12 +/**
  13 + *
  14 + * @ClassName: Line(线路实体类)
  15 + *
  16 + * @Description: TODO(线路)
  17 + *
  18 + * @Author bsth@lq
  19 + *
  20 + * @Date 2016-4-11 16:06:17
  21 + *
  22 + * @Version 公交调度系统BS版 0.1
  23 + *
  24 + */
  25 +
  26 +@Entity
  27 +@Table(name = "bsth_c_line")
  28 +@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
  29 +public class Line implements Serializable {
  30 +
  31 + @Id
  32 + /** 线路ID 主键(唯一标识符) int length(11) */
  33 + private Integer id;
  34 +
  35 + /** 线路名称 varchar length(50) 不能为空 */
  36 + private String name;
  37 +
  38 + /** 线路编码 varchar length(50) 不能为空 */
  39 + private String lineCode;
  40 +
  41 + /** 英文名 varchar length(50) */
  42 + private String es;
  43 +
  44 + /** 简称 varchar length(50) */
  45 + private String shortName;
  46 +
  47 + /** 起始站名称 varchar length(50) 不能为空
  48 + * 该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值 */
  49 + private String startStationName;
  50 +
  51 + /** 终点站名称 varchar length(50) 不能为空
  52 + * 该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值 */
  53 + private String endStationName;
  54 +
  55 + /** 起始站首班车时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空 */
  56 + private String startStationFirstTime;
  57 +
  58 + /** 起始站末班车时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空 */
  59 + private String startStationEndTime;
  60 +
  61 + /** 终点站首班时间 00:00 上海公交APP中某个接口所需要的字段值 varchar length(50) 不能为空*/
  62 + private String endStationFirstTime;
  63 +
  64 + /** 终点站末班时间 00:00 上海公交APP中某个接口所需要的字段值 */
  65 + private String endStationEndTime;
  66 +
  67 + /** 所属公司 varchar length(50) */
  68 + private String company;
  69 +
  70 + /** 分公司 varchar length(50)*/
  71 + private String brancheCompany;
  72 +
  73 + /** 组合公司分公司编码 */
  74 + @Formula(" concat(company, '_', branche_company) ")
  75 + private String cgsbm;
  76 +
  77 + /** 性质(线路类型) varchar length(50) */
  78 + private String nature;
  79 +
  80 + /** 线路等级 varchar length(50) */
  81 + private String level;
  82 +
  83 + /** 线路长度 */
  84 + private double length;
  85 +
  86 + /** 线路负责人 varchar length(50) */
  87 + private String chargeName;
  88 +
  89 + /** 负责人电话 varchar length(50) */
  90 + private String telephone;
  91 +
  92 + /** 是否撤销 <1:是;0:否> bit length(50) */
  93 + private Integer destroy;
  94 +
  95 + /** 是否夜宵线 <1:是;0:否> bit length(50)*/
  96 + private Integer supperLine;
  97 +
  98 + /** 是否营运 <1:是;0:否> bit length(50)*/
  99 + private Integer sfyy;
  100 +
  101 + /** 线路区域 <0:区内,1:区外> bit length(1)*/
  102 + private Integer region;
  103 +
  104 + /** 起始调度电话 varchar length(50) */
  105 + private String startPhone;
  106 +
  107 + /** 终点调度电话 varchar length(50) */
  108 + private String endPhone;
  109 +
  110 + /** 开辟日期 date*/
  111 + @DateTimeFormat(pattern ="yyyy-MM-dd")
  112 + private Date openDate;
  113 +
  114 + /** 大间隔等级 */
  115 + private Integer spacGrade;
  116 +
  117 + /** 线路沿革 varchar length(50) */
  118 + private String history;
  119 +
  120 + /** 上海市线路编码 varchar length(50) */
  121 + private String shanghaiLinecode;
  122 +
  123 + /** 设备线路编码 varchar length(50) */
  124 + private String eqLinecode;
  125 +
  126 + /** 配置车辆总数 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11)*/
  127 + private Integer carSumNumber;
  128 +
  129 + /** 空调车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
  130 + private Integer hvacCarNumber;
  131 +
  132 + /** 普通车辆数量 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
  133 + private Integer ordCarNumber;
  134 +
  135 + /** 权证车辆数量 报表需要的字段值 */
  136 + private Integer warrantCar;
  137 +
  138 + /** 权证配车启用日期 报表需要的字段值 */
  139 + private Integer warrantDate;
  140 +
  141 + /** 停车场编码 老版本系统字段, 新版本系统业务需求暂时没用到该字段 ,这里暂时留着 int length(11) */
  142 + private String carParkCode;
  143 +
  144 + /** 线路规划类型 <0:双向;1:环线> int length(11) 运管处接口需要的字段 不能为空 */
  145 + private Integer linePlayType;
  146 +
  147 + /** 描述 varchar length(255) */
  148 + private String descriptions;
  149 +
  150 + /** 创建人 int length(11) */
  151 + private Integer createBy;
  152 +
  153 + /** 修改人 int length(11) */
  154 + private Integer updateBy;
  155 +
  156 + /** 创建日期 timestamp */
  157 + @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
  158 + private Date createDate;
  159 +
  160 + /** 修改日期 timestamp */
  161 + @Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
  162 + private Date updateDate;
  163 +
  164 + /** 是否在使用 <1:是;0:否> bit length(50) */
  165 + private Integer inUse;
  166 +
  167 + private Double ticketPrice;
  168 +
  169 + /**
  170 + * 逻辑删除标记 为 1:标识已删除
  171 + */
  172 + private Integer remove = 0;
  173 +
  174 + public Integer getSpacGrade() {
  175 + return spacGrade;
  176 + }
  177 +
  178 + public void setSpacGrade(Integer spacGrade) {
  179 + this.spacGrade = spacGrade;
  180 + }
  181 +
  182 + public Integer getWarrantCar() {
  183 + return warrantCar;
  184 + }
  185 +
  186 + public void setWarrantCar(Integer warrantCar) {
  187 + this.warrantCar = warrantCar;
  188 + }
  189 +
  190 + public Integer getWarrantDate() {
  191 + return warrantDate;
  192 + }
  193 +
  194 + public void setWarrantDate(Integer warrantDate) {
  195 + this.warrantDate = warrantDate;
  196 + }
  197 +
  198 + public Integer getLinePlayType() {
  199 + return linePlayType;
  200 + }
  201 +
  202 + public void setLinePlayType(Integer linePlayType) {
  203 + this.linePlayType = linePlayType;
  204 + }
  205 +
  206 + public Integer getId() {
  207 + return id;
  208 + }
  209 +
  210 + public void setId(Integer id) {
  211 + this.id = id;
  212 + }
  213 +
  214 + public String getLineCode() {
  215 + return lineCode;
  216 + }
  217 +
  218 + public void setLineCode(String lineCode) {
  219 + this.lineCode = lineCode;
  220 + }
  221 +
  222 + public String getName() {
  223 + return name;
  224 + }
  225 +
  226 + public void setName(String name) {
  227 + this.name = name;
  228 + }
  229 +
  230 + public String getEs() {
  231 + return es;
  232 + }
  233 +
  234 + public void setEs(String es) {
  235 + this.es = es;
  236 + }
  237 +
  238 + public String getShortName() {
  239 + return shortName;
  240 + }
  241 +
  242 + public void setShortName(String shortName) {
  243 + this.shortName = shortName;
  244 + }
  245 +
  246 + public Integer getCarSumNumber() {
  247 + return carSumNumber;
  248 + }
  249 +
  250 + public void setCarSumNumber(Integer carSumNumber) {
  251 + this.carSumNumber = carSumNumber;
  252 + }
  253 +
  254 + public Integer getHvacCarNumber() {
  255 + return hvacCarNumber;
  256 + }
  257 +
  258 + public void setHvacCarNumber(Integer hvacCarNumber) {
  259 + this.hvacCarNumber = hvacCarNumber;
  260 + }
  261 +
  262 + public Integer getOrdCarNumber() {
  263 + return ordCarNumber;
  264 + }
  265 +
  266 + public void setOrdCarNumber(Integer ordCarNumber) {
  267 + this.ordCarNumber = ordCarNumber;
  268 + }
  269 +
  270 + public String getCarParkCode() {
  271 + return carParkCode;
  272 + }
  273 +
  274 + public void setCarParkCode(String carParkCode) {
  275 + this.carParkCode = carParkCode;
  276 + }
  277 +
  278 + public String getStartStationName() {
  279 + return startStationName;
  280 + }
  281 +
  282 + public void setStartStationName(String startStationName) {
  283 + this.startStationName = startStationName;
  284 + }
  285 +
  286 + public String getStartStationFirstTime() {
  287 + return startStationFirstTime;
  288 + }
  289 +
  290 + public void setStartStationFirstTime(String startStationFirstTime) {
  291 + this.startStationFirstTime = startStationFirstTime;
  292 + }
  293 +
  294 + public String getStartStationEndTime() {
  295 + return startStationEndTime;
  296 + }
  297 +
  298 + public void setStartStationEndTime(String startStationEndTime) {
  299 + this.startStationEndTime = startStationEndTime;
  300 + }
  301 +
  302 + public String getEndStationName() {
  303 + return endStationName;
  304 + }
  305 +
  306 + public void setEndStationName(String endStationName) {
  307 + this.endStationName = endStationName;
  308 + }
  309 +
  310 + public String getEndStationFirstTime() {
  311 + return endStationFirstTime;
  312 + }
  313 +
  314 + public void setEndStationFirstTime(String endStationFirstTime) {
  315 + this.endStationFirstTime = endStationFirstTime;
  316 + }
  317 +
  318 + public String getEndStationEndTime() {
  319 + return endStationEndTime;
  320 + }
  321 +
  322 + public void setEndStationEndTime(String endStationEndTime) {
  323 + this.endStationEndTime = endStationEndTime;
  324 + }
  325 +
  326 + public String getCompany() {
  327 + return company;
  328 + }
  329 +
  330 + public void setCompany(String company) {
  331 + this.company = company;
  332 + }
  333 +
  334 + public String getBrancheCompany() {
  335 + return brancheCompany;
  336 + }
  337 +
  338 + public void setBrancheCompany(String brancheCompany) {
  339 + this.brancheCompany = brancheCompany;
  340 + }
  341 +
  342 + public String getNature() {
  343 + return nature;
  344 + }
  345 +
  346 + public void setNature(String nature) {
  347 + this.nature = nature;
  348 + }
  349 +
  350 + public String getLevel() {
  351 + return level;
  352 + }
  353 +
  354 + public void setLevel(String level) {
  355 + this.level = level;
  356 + }
  357 +
  358 + public double getLength() {
  359 + return length;
  360 + }
  361 +
  362 + public void setLength(double length) {
  363 + this.length = length;
  364 + }
  365 +
  366 + public String getChargeName() {
  367 + return chargeName;
  368 + }
  369 +
  370 + public void setChargeName(String chargeName) {
  371 + this.chargeName = chargeName;
  372 + }
  373 +
  374 + public String getTelephone() {
  375 + return telephone;
  376 + }
  377 +
  378 + public void setTelephone(String telephone) {
  379 + this.telephone = telephone;
  380 + }
  381 +
  382 + public Integer getDestroy() {
  383 + return destroy;
  384 + }
  385 +
  386 + public void setDestroy(Integer destroy) {
  387 + this.destroy = destroy;
  388 + }
  389 +
  390 + public Integer getSupperLine() {
  391 + return supperLine;
  392 + }
  393 +
  394 + public void setSupperLine(Integer supperLine) {
  395 + this.supperLine = supperLine;
  396 + }
  397 +
  398 + public String getStartPhone() {
  399 + return startPhone;
  400 + }
  401 +
  402 + public void setStartPhone(String startPhone) {
  403 + this.startPhone = startPhone;
  404 + }
  405 +
  406 + public String getEndPhone() {
  407 + return endPhone;
  408 + }
  409 +
  410 + public void setEndPhone(String endPhone) {
  411 + this.endPhone = endPhone;
  412 + }
  413 +
  414 + public Date getOpenDate() {
  415 + return openDate;
  416 + }
  417 +
  418 + public void setOpenDate(Date openDate) {
  419 + this.openDate = openDate;
  420 + }
  421 +
  422 + public String getHistory() {
  423 + return history;
  424 + }
  425 +
  426 + public void setHistory(String history) {
  427 + this.history = history;
  428 + }
  429 +
  430 + public String getShanghaiLinecode() {
  431 + return shanghaiLinecode;
  432 + }
  433 +
  434 + public void setShanghaiLinecode(String shanghaiLinecode) {
  435 + this.shanghaiLinecode = shanghaiLinecode;
  436 + }
  437 +
  438 + public String getEqLinecode() {
  439 + return eqLinecode;
  440 + }
  441 +
  442 + public void setEqLinecode(String eqLinecode) {
  443 + this.eqLinecode = eqLinecode;
  444 + }
  445 +
  446 + public String getDescriptions() {
  447 + return descriptions;
  448 + }
  449 +
  450 + public void setDescriptions(String descriptions) {
  451 + this.descriptions = descriptions;
  452 + }
  453 +
  454 + public Integer getCreateBy() {
  455 + return createBy;
  456 + }
  457 +
  458 + public void setCreateBy(Integer createBy) {
  459 + this.createBy = createBy;
  460 + }
  461 +
  462 + public Integer getUpdateBy() {
  463 + return updateBy;
  464 + }
  465 +
  466 + public void setUpdateBy(Integer updateBy) {
  467 + this.updateBy = updateBy;
  468 + }
  469 +
  470 + public Date getCreateDate() {
  471 + return createDate;
  472 + }
  473 +
  474 + public void setCreateDate(Date createDate) {
  475 + this.createDate = createDate;
  476 + }
  477 +
  478 + public Date getUpdateDate() {
  479 + return updateDate;
  480 + }
  481 +
  482 + public void setUpdateDate(Date updateDate) {
  483 + this.updateDate = updateDate;
  484 + }
  485 +
  486 + public Integer getInUse() { return inUse; }
  487 +
  488 + public void setInUse(Integer inUse) { this.inUse = inUse; }
  489 +
  490 + public String getCgsbm() {
  491 + return cgsbm;
  492 + }
  493 +
  494 + public void setCgsbm(String cgsbm) {
  495 + this.cgsbm = cgsbm;
  496 + }
  497 +
  498 + public Integer getSfyy() {
  499 + return sfyy;
  500 + }
  501 +
  502 + public void setSfyy(Integer sfyy) {
  503 + this.sfyy = sfyy;
  504 + }
  505 +
  506 + public Integer getRegion() {
  507 + return region;
  508 + }
  509 +
  510 + public void setRegion(Integer region) {
  511 + this.region = region;
  512 + }
  513 +
  514 + public Integer getRemove() {
  515 + return remove;
  516 + }
  517 +
  518 + public void setRemove(Integer remove) {
  519 + this.remove = remove;
  520 + }
  521 +
  522 + public Double getTicketPrice() {
  523 + return ticketPrice;
  524 + }
  525 +
  526 + public void setTicketPrice(Double ticketPrice) {
  527 + this.ticketPrice = ticketPrice;
  528 + }
  529 +
  530 +}
... ...
src/main/java/com/bsth/entity/LsStationRoute.java
... ... @@ -37,7 +37,9 @@ public class LsStationRoute {
37 37 private String stationCode;
38 38  
39 39 // 站点名称
40   - private String stationName;
  40 + private String stationName;
  41 + // 站点名称
  42 + private String stationNameEn;
41 43  
42 44 // 线路编码
43 45 private String lineCode;
... ... @@ -282,4 +284,13 @@ public class LsStationRoute {
282 284 public void setLine(Line line) {
283 285 this.line = line;
284 286 }
  287 +
  288 + public String getStationNameEn() {
  289 + return stationNameEn;
  290 + }
  291 +
  292 + public void setStationNameEn(String stationNameEn) {
  293 + this.stationNameEn = stationNameEn;
  294 + }
  295 +
285 296 }
286 297 \ No newline at end of file
... ...
src/main/java/com/bsth/entity/StationRoute.java
... ... @@ -40,7 +40,9 @@ public class StationRoute {
40 40  
41 41 // 站点名称
42 42 private String stationName;
43   -
  43 +
  44 + // 站点名称
  45 + private String stationNameEn;
44 46 // 线路编码
45 47 private String lineCode;
46 48  
... ... @@ -285,4 +287,13 @@ public class StationRoute {
285 287 public void setLine(Line line) {
286 288 this.line = line;
287 289 }
  290 +
  291 + public String getStationNameEn() {
  292 + return stationNameEn;
  293 + }
  294 +
  295 + public void setStationNameEn(String stationNameEn) {
  296 + this.stationNameEn = stationNameEn;
  297 + }
  298 +
288 299 }
289 300 \ No newline at end of file
... ...
src/main/java/com/bsth/repository/LineRepository.java
1   -package com.bsth.repository;
2   -
3   -import java.util.Date;
4   -import java.util.List;
5   -import java.util.Map;
6   -
7   -import org.springframework.data.jpa.repository.Modifying;
8   -import org.springframework.data.jpa.repository.Query;
9   -import org.springframework.stereotype.Repository;
10   -import org.springframework.transaction.annotation.Transactional;
11   -
12   -import com.bsth.entity.Line;
13   -
14   -/**
15   - *
16   - * @Interface: LineRepository(线路Repository数据持久层接口)
17   - *
18   - * @Extends : BaseRepository
19   - *
20   - * @Description: TODO(线路Repository数据持久层接口)
21   - *
22   - * @Author bsth@lq
23   - *
24   - * @Date 2016年4月28日 上午9:21:17
25   - *
26   - * @Version 公交调度系统BS版 0.1
27   - *
28   - */
29   -@Repository
30   -public interface LineRepository extends BaseRepository<Line, Integer> {
31   -
32   - /**
33   - * 获取线路编码
34   - *
35   - * @return int <lineCode:线路编码>
36   - */
37   - @Query(value = " SELECT IFNULL(num,0) as maxId from (SELECT MAX(id) as num FROM bsth_c_line) k ", nativeQuery = true)
38   - public long selectMaxIdToLineCode();
39   -
40   - @Query(value = " SELECT l FROM Line l where l.name like ?1")
41   - List<Line> findLine(String line);
42   -
43   - @Query(value = " SELECT l FROM Line l where l.lineCode = ?1")
44   - List<Line> findLineByCode(String lineCode);
45   -
46   - public Line findByLineCode(String string);
47   -
48   - @Query(value = " SELECT l FROM Line l where l.company like ?1 and l.brancheCompany like ?2 and l.lineCode like ?3")
49   - public List<Line> findLineBygsBm(String gsBm, String fgsBm, String line);
50   -
51   - @Query("SELECT L FROM Line L where L.destroy=0 and L.remove !=1")
52   - List<Line> findAllService();
53   -
54   - @Query("SELECT L FROM Line L")
55   - List<Line> findAll();
56   -
57   - @Modifying
58   - @Query(value = "UPDATE Line l set l.name=?1 , l.company=?2, l.brancheCompany=?3, "
59   - + "l.level=?4, l.nature=?5, l.startStationName=?6, l.endStationName=?7, l.startStationFirstTime=?8, "
60   - + "l.startStationEndTime=?9, l.endStationFirstTime=?10, l.endStationEndTime=?11, l.linePlayType=?12, "
61   - + "l.openDate=?13, l.es=?14, l.shortName=?15, l.shanghaiLinecode=?16, l.eqLinecode=?17, l.startPhone=?18, "
62   - + "l.endPhone=?19, l.carSumNumber=?20, l.hvacCarNumber=?21, l.ordCarNumber=?22, l.history=?23, "
63   - + "l.descriptions=?24, l.destroy=?25, l.supperLine=?26, l.spacGrade=?27, l.warrantCar=?28, l.region=?30 , l.inUse=?31 where "
64   - + "l.lineCode=?29")
65   - int update(String name, String company, String brancheCompany, String level, String nature,
66   - String startStationName, String endStationName, String startStationFirstTime, String startStationEndTime,
67   - String endStationFirstTime, String endStationEndTime, Integer linePlayType, Date openDate, String es,
68   - String shortName, String shanghaiLinecode, String eqLinecode, String startPhone, String endPhone,
69   - Integer carSumNumber, Integer hvacCarNumber, Integer ordCarNumber, String history, String descriptions,
70   - Integer destroy, Integer supperLine, Integer spacGrade, Integer warrantCar, String lineCode, Integer region, Integer inUser);
71   -
72   - /**
73   - * 查询线路版本文件
74   - * @param lineId
75   - * @return
76   - */
77   - @Query(value = "SELECT version_count FROM bsth_c_line_file_version where line = ?1", nativeQuery = true)
78   - Integer findfileVersions(Integer lineId);
79   -
80   - /**
81   - * 添加线路文件版本
82   - * @param lineId
83   - * @param line_code
84   - */
85   - @Transactional
86   - @Modifying
87   - @Query(value = "INSERT INTO bsth_c_line_file_version (line,line_code,version_count) VALUES (?1,?2,1)", nativeQuery = true)
88   - public void addFileVersions(Integer lineId, String line_code);
89   -
90   - /**
91   - * 线路文件版本修改
92   - * @param lineId
93   - * @param version_count
94   - */
95   - @Transactional
96   - @Modifying
97   - @Query(value = "UPDATE bsth_c_line_file_version set version_count=?2 WHERE line = ?1", nativeQuery = true)
98   - public void editFileVersions(Integer lineId, Integer version_count);
99   -
100   -}
  1 +package com.bsth.repository;
  2 +
  3 +import java.util.Date;
  4 +import java.util.List;
  5 +import java.util.Map;
  6 +
  7 +import org.springframework.data.jpa.repository.Modifying;
  8 +import org.springframework.data.jpa.repository.Query;
  9 +import org.springframework.stereotype.Repository;
  10 +import org.springframework.transaction.annotation.Transactional;
  11 +
  12 +import com.bsth.entity.Line;
  13 +
  14 +/**
  15 + *
  16 + * @Interface: LineRepository(线路Repository数据持久层接口)
  17 + *
  18 + * @Extends : BaseRepository
  19 + *
  20 + * @Description: TODO(线路Repository数据持久层接口)
  21 + *
  22 + * @Author bsth@lq
  23 + *
  24 + * @Date 2016年4月28日 上午9:21:17
  25 + *
  26 + * @Version 公交调度系统BS版 0.1
  27 + *
  28 + */
  29 +@Repository
  30 +public interface LineRepository extends BaseRepository<Line, Integer> {
  31 +
  32 + /**
  33 + * 获取线路编码
  34 + *
  35 + * @return int <lineCode:线路编码>
  36 + */
  37 + @Query(value = " SELECT IFNULL(num,0) as maxId from (SELECT MAX(id) as num FROM bsth_c_line) k ", nativeQuery = true)
  38 + public long selectMaxIdToLineCode();
  39 +
  40 + @Query(value = " SELECT l FROM Line l where l.name like ?1")
  41 + List<Line> findLine(String line);
  42 +
  43 + @Query(value = " SELECT l FROM Line l where l.lineCode = ?1")
  44 + List<Line> findLineByCode(String lineCode);
  45 +
  46 + public Line findByLineCode(String string);
  47 +
  48 + @Query(value = " SELECT l FROM Line l where l.company like ?1 and l.brancheCompany like ?2 and l.lineCode like ?3")
  49 + public List<Line> findLineBygsBm(String gsBm, String fgsBm, String line);
  50 +
  51 + @Query("SELECT L FROM Line L where L.destroy=0 and L.remove !=1")
  52 + List<Line> findAllService();
  53 +
  54 + @Query("SELECT L FROM Line L")
  55 + List<Line> findAll();
  56 +
  57 + @Modifying
  58 + @Query(value = "UPDATE Line l set l.name=?1 , l.company=?2, l.brancheCompany=?3, "
  59 + + "l.level=?4, l.nature=?5, l.startStationName=?6, l.endStationName=?7, l.startStationFirstTime=?8, "
  60 + + "l.startStationEndTime=?9, l.endStationFirstTime=?10, l.endStationEndTime=?11, l.linePlayType=?12, "
  61 + + "l.openDate=?13, l.es=?14, l.shortName=?15, l.shanghaiLinecode=?16, l.eqLinecode=?17, l.startPhone=?18, "
  62 + + "l.endPhone=?19, l.carSumNumber=?20, l.hvacCarNumber=?21, l.ordCarNumber=?22, l.history=?23, "
  63 + + "l.descriptions=?24, l.destroy=?25, l.supperLine=?26, l.spacGrade=?27, l.warrantCar=?28, l.region=?30 , l.inUse=?31 , l.ticketPrice=?32 where "
  64 + + "l.lineCode=?29")
  65 + int update(String name, String company, String brancheCompany, String level, String nature,
  66 + String startStationName, String endStationName, String startStationFirstTime, String startStationEndTime,
  67 + String endStationFirstTime, String endStationEndTime, Integer linePlayType, Date openDate, String es,
  68 + String shortName, String shanghaiLinecode, String eqLinecode, String startPhone, String endPhone,
  69 + Integer carSumNumber, Integer hvacCarNumber, Integer ordCarNumber, String history, String descriptions,
  70 + Integer destroy, Integer supperLine, Integer spacGrade, Integer warrantCar, String lineCode, Integer region, Integer inUser, Double ticketPrice);
  71 +
  72 + /**
  73 + * 查询线路版本文件
  74 + * @param lineId
  75 + * @return
  76 + */
  77 + @Query(value = "SELECT version_count FROM bsth_c_line_file_version where line = ?1", nativeQuery = true)
  78 + Integer findfileVersions(Integer lineId);
  79 +
  80 + /**
  81 + * 添加线路文件版本
  82 + * @param lineId
  83 + * @param line_code
  84 + */
  85 + @Transactional
  86 + @Modifying
  87 + @Query(value = "INSERT INTO bsth_c_line_file_version (line,line_code,version_count) VALUES (?1,?2,1)", nativeQuery = true)
  88 + public void addFileVersions(Integer lineId, String line_code);
  89 +
  90 + /**
  91 + * 线路文件版本修改
  92 + * @param lineId
  93 + * @param version_count
  94 + */
  95 + @Transactional
  96 + @Modifying
  97 + @Query(value = "UPDATE bsth_c_line_file_version set version_count=?2 WHERE line = ?1", nativeQuery = true)
  98 + public void editFileVersions(Integer lineId, Integer version_count);
  99 +
  100 +}
... ...
src/main/java/com/bsth/repository/StationRouteRepository.java
1   -package com.bsth.repository;
2   -
3   -import java.util.List;
4   -import java.util.Map;
5   -
6   -import org.springframework.data.domain.Page;
7   -import org.springframework.data.domain.Pageable;
8   -import org.springframework.data.domain.Sort;
9   -import org.springframework.data.jpa.domain.Specification;
10   -import org.springframework.data.jpa.repository.EntityGraph;
11   -import org.springframework.data.jpa.repository.Modifying;
12   -import org.springframework.data.jpa.repository.Query;
13   -import org.springframework.stereotype.Repository;
14   -import org.springframework.transaction.annotation.Transactional;
15   -
16   -import com.bsth.entity.Line;
17   -import com.bsth.entity.StationRoute;
18   -
19   -/**
20   - *
21   - * @Interface: StationRouteRepository(站点路由Repository数据持久层接口)
22   - *
23   - * @Extends : BaseRepository
24   - *
25   - * @Description: TODO(站点路由Repository数据持久层接口)
26   - *
27   - * @Author bsth@lq
28   - *
29   - * @Date 2016年5月03日 上午9:21:17
30   - *
31   - * @Version 公交调度系统BS版 0.1
32   - *
33   - */
34   -
35   -@Repository
36   -public interface StationRouteRepository extends BaseRepository<StationRoute, Integer> {
37   -
38   - @Query(value = "SELECT a.`stationRoute.id`," +
39   - "a.`stationRoute.line`," +
40   - "a.`stationRoute.station`," +
41   - "a.`stationRoute.stationName`," +
42   - "a.`stationRoute.stationRouteCode`," +
43   - "a.`stationRoute.lineCode`," +
44   - "a.`stationRoute.stationMark`," +
45   - "a.`stationRoute.outStationNmber`," +
46   - "a.`stationRoute.directions`," +
47   - "a.`stationRoute.distances`," +
48   - "a.`stationRoute.toTime`," +
49   - "a.`stationRoute.firstTime`," +
50   - "a.`stationRoute.endTime`," +
51   - "a.`stationRoute.descriptions`," +
52   - "a.`stationRoute.versions`," +
53   - "b.id AS 'station.id'," +
54   - "b.station_cod AS 'station.stationCod'," +
55   - "b.station_name AS 'station.stationName'," +
56   - "b.road_coding AS 'station.roadCoding'," +
57   - "b.db_type AS 'station.dbType'," +
58   - "b.b_jwpoints AS 'station.bJwpoints'," +
59   - "b.g_lonx AS 'station.gLonx'," +
60   - "b.g_lonx AS 'station.gLaty'," +
61   - "b.x AS 'station.x'," +
62   - "b.y AS 'station.y'," +
63   - "b.shapes_type AS 'station.shapesType'," +
64   - "b.radius AS 'station.radius'," +
65   - "ST_AsText(b.g_polygon_grid) AS 'station.gPolygonGrid'," +
66   - "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," +
67   - "b.destroy AS 'station.destroy'," +
68   - "b.versions AS 'station.versions'," +
69   - "b.descriptions AS 'station.descriptions', " +
70   - "a.`stationRoute.industryCode` " +
71   - " FROM (" +
72   - "SELECT r.id AS 'stationRoute.id'," +
73   - " r.line AS 'stationRoute.line'," +
74   - "r.station AS 'stationRoute.station'," +
75   - "r.station_name AS 'stationRoute.stationName'," +
76   - "r.station_route_code as 'stationRoute.stationRouteCode'," +
77   - "r.line_code AS 'stationRoute.lineCode'," +
78   - "r.station_mark AS 'stationRoute.stationMark'," +
79   - "r.out_station_nmber AS 'stationRoute.outStationNmber'," +
80   - "r.directions AS 'stationRoute.directions'," +
81   - "r.distances AS 'stationRoute.distances'," +
82   - "r.to_time AS 'stationRoute.toTime'," +
83   - "r.first_time AS 'stationRoute.firstTime'," +
84   - "r.end_time AS 'stationRoute.endTime'," +
85   - "r.descriptions AS 'stationRoute.descriptions'," +
86   - "r.versions AS 'stationRoute.versions', " +
87   - "r.industry_code AS 'stationRoute.industryCode' " +
88   - " FROM bsth_c_stationroute r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " +
89   - "LEFT JOIN bsth_c_station b " +
90   - "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true)
91   - List<Object[]> findPoints(int line,int directions);
92   -
93   - @Query("select r from StationRoute r where r.line.id=?1 and r.destroy=0 order by r.directions ASC ,r.stationRouteCode ASC")
94   - // @Query(value = "SELECT * from bsth_c_stationroute line = ?1 and destroy=0 bsth_c_station ORDER BY directions ASC, stationRouteCode ASC", nativeQuery=true)
95   - List<StationRoute> findStationExport(int line);
96   -
97   - /**
98   - * @Description :TODO(查询线路某方向下的站点序号与类型)
99   - *
100   - * @param map <lineId:线路ID; direction:方向;stationRouteCode:站点编码>
101   - *
102   - * @return List<Map<String, Object>>
103   - */
104   - @Query(value = "select t.station_route_code,t.station_mark from bsth_c_stationroute t where " +
105   - " t.station_route_code =(" +
106   - "select MAX(station_route_code) as stationRouteCode from bsth_c_stationroute r WHERE " +
107   - "r.line=?1 and r.directions =?2 and station_route_code< ?3 and r.destroy = 0 ) and t.line=?1 and t.directions = ?2 AND t.destroy = 0", nativeQuery=true)
108   - List<Object[]> findUpStationRouteCode(Integer lineId,Integer direction,Integer stationRouteCode);
109   -
110   - /**
111   - * @param version
112   - * @Description :TODO(查询下个站点)
113   - *
114   - * @param map <lineId:线路ID; direction:方向;stationRouteCode:站点编码>
115   - *
116   - * @return List<Map<String, Object>>
117   - */
118   - @Query(value = "SELECT a.stationRouteLine," +
119   - " a.stationRouteStation," +
120   - " a.stationRouteCode," +
121   - " a.stationRouteLIneCode," +
122   - " a.stationRouteStationMark," +
123   - " a.stationOutStationNmber," +
124   - " a.stationRoutedirections," +
125   - " a.stationRouteDistances," +
126   - " a.stationRouteToTime," +
127   - " a.staitonRouteFirstTime," +
128   - " a.stationRouteEndTime," +
129   - " a.stationRouteDescriptions," +
130   - " a.stationRouteDestroy," +
131   - " a.stationRouteVersions," +
132   - " a.stationRouteCreateBy," +
133   - " a.stationRouteCreateDate," +
134   - " a.stationRouteUpdateBy," +
135   - " a.stationRouteUpdateDate," +
136   - " b.id AS stationId," +
137   - " b.station_cod AS stationCode," +
138   - " a.stationRouteName," +
139   - " b.road_coding AS stationRoadCoding," +
140   - " b.db_type AS stationDbType," +
141   - " b.b_jwpoints AS stationJwpoints," +
142   - " b.g_lonx AS stationGlonx," +
143   - " b.g_laty AS stationGlaty," +
144   - " b.x AS stationX," +
145   - " b.y AS stationY," +
146   - " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
147   - " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
148   - " b.destroy AS stationDestroy," +
149   - " b.radius AS stationRadius," +
150   - " b.shapes_type AS stationShapesType," +
151   - " b.versions AS stationVersions," +
152   - " b.descriptions AS sttationDescriptions," +
153   - " b.create_by AS stationCreateBy," +
154   - " b.create_date AS stationCreateDate," +
155   - " b.update_by AS stationUpdateBy," +
156   - " b.update_date AS stationUpdateDate," +
157   - " a.stationRouteId, " +
158   - " b.station_name as zdmc, " +
159   - " a.industryCode"+
160   - " FROM " +
161   - "( SELECT s.id AS stationRouteId," +
162   - " s.line AS stationRouteLine," +
163   - " s.station as stationRouteStation," +
164   - " s.station_name AS stationRouteName," +
165   - " s.station_route_code as stationRouteCode," +
166   - " s.industry_code as industryCode," +
167   - " s.line_code AS stationRouteLIneCode," +
168   - " s.station_mark AS stationRouteStationMark," +
169   - " s.out_station_nmber AS stationOutStationNmber," +
170   - " s.directions AS stationRoutedirections," +
171   - " s.distances AS stationRouteDistances," +
172   - " s.to_time AS stationRouteToTime," +
173   - " s.first_time AS staitonRouteFirstTime," +
174   - " s.end_time AS stationRouteEndTime," +
175   - " s.descriptions AS stationRouteDescriptions," +
176   - " s.destroy AS stationRouteDestroy," +
177   - " s.versions AS stationRouteVersions," +
178   - " s.create_by AS stationRouteCreateBy," +
179   - " s.create_date AS stationRouteCreateDate," +
180   - " s.update_by AS stationRouteUpdateBy," +
181   - " s.update_date AS stationRouteUpdateDate FROM bsth_c_ls_stationroute s WHERE s.versions = ?4 and s.station_route_code =(" +
182   - "select MIN(station_route_code) as stationRouteCode from bsth_c_ls_stationroute r WHERE " +
183   - "r.line=?1 and r.directions =?2 and station_route_code > ?3 and r.destroy = 0 and versions = ?4 ) and s.line=?1 and s.directions = ?2 AND s.destroy = 0) a " +
184   - " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true)
185   - List<Object[]> findDownStationRoute(Integer id,Integer direction,Integer stationRouteCode, Integer version);
186   -
187   - /**
188   - * @Description :TODO(站点中心点坐标查询)
189   - *
190   - * @param map <lineId:线路ID; direction:方向>
191   - *
192   - * @return List<Object[]>
193   - */
194   - /*@Query(value = "SELECT s.b_jwpoints,s.station_name FROM (" +
195   - "SELECT b.station FROM bsth_c_stationroute b where b.line =?1 and b.directions = ?2 and b.destroy=0) r " +
196   - "LEFT JOIN bsth_c_station s on r.station = s.id", nativeQuery=true)*/
197   - @Query(value = "SELECT s.b_jwpoints,r.station_name,r.station_route_code FROM (" +
198   - "SELECT b.station,b.station_route_code,b.station_name FROM bsth_c_stationroute b where b.line =?1 and b.directions = ?2 and b.destroy=0) r " +
199   - "LEFT JOIN bsth_c_station s on r.station = s.id order by r.station_route_code asc", nativeQuery=true)
200   - List<Object[]> getSelectStationRouteCenterPoints(Integer lineId,Integer direction);
201   -
202   - /**
203   - * @Description :TODO(撤销站点)
204   - *
205   - * @param map <lineId:线路ID; destroy:是否撤销(0:否;1:是)>
206   - *
207   - */
208   - @Transactional
209   - @Modifying
210   - @Query(value="UPDATE bsth_c_stationroute SET " +
211   - "destroy = ?2 WHERE id = ?1", nativeQuery=true)
212   - void stationRouteIsDestroyUpd(Integer stationRouteId, Integer destroy);
213   -
214   -
215   - /**
216   - * @Description : TODO(根据线路ID生成行单)
217   - *
218   - * @param lineId:线路ID
219   - *
220   - * @return List<Object[]>:{[0]:g_lonx(GPS经度);[1]:g_laty(GPS纬度);[2]:b_jwpoints(百度经纬度坐标)
221   - *
222   - * [3]:station_mark(站点类型);[4]:station_route_code(站点序号);[5]:station_cod(站点编码);
223   - *
224   - * [6]:distances(站点距离);[7]:station_name(站点名称);[8]:directions(方向)}
225   - */
226   - @Query(value = "SELECT * FROM ("+
227   - "SELECT b.g_lonx," +
228   - "b.g_laty,b.b_jwpoints," +
229   - "a.station_mark," +
230   - "a.station_route_code," +
231   - "b.station_cod," +
232   - "a.distances,"+
233   - "a.station_name," +
234   - "a.directions FROM (SELECT " +
235   - "s.station_mark," +
236   - "s.station_route_code," +
237   - "s.directions," +
238   - "s.distances,"+
239   - "s.station_name,"+
240   - "s.station FROM bsth_c_stationroute s where s.line = ?1 and s.destroy=0) a " +
241   - "LEFT JOIN bsth_c_station b " +
242   - " on a.station = b.id ORDER BY a.directions ASC ) k ORDER BY k.directions,k.station_route_code ASC", nativeQuery=true)
243   - List<Object[]> usingSingle(Integer lineId);
244   -
245   - /**
246   - * @Description : TODO(根据站点路由Id查询详情)
247   - *
248   - * @param id:站点路由ID
249   - *
250   - * @return List<Object[]>
251   - */
252   - @Query(value = "SELECT a.stationRouteLine," +
253   - " a.stationRouteStation," +
254   - " a.stationRouteCode," +
255   - " a.stationRouteLIneCode," +
256   - " a.stationRouteStationMark," +
257   - " a.stationOutStationNmber," +
258   - " a.stationRoutedirections," +
259   - " a.stationRouteDistances," +
260   - " a.stationRouteToTime," +
261   - " a.staitonRouteFirstTime," +
262   - " a.stationRouteEndTime," +
263   - " a.stationRouteDescriptions," +
264   - " a.stationRouteDestroy," +
265   - " a.stationRouteVersions," +
266   - " a.stationRouteCreateBy," +
267   - " a.stationRouteCreateDate," +
268   - " a.stationRouteUpdateBy," +
269   - " a.stationRouteUpdateDate," +
270   - " b.id AS stationId," +
271   - " b.station_cod AS stationCode," +
272   - " a.stationRouteName," +
273   - " b.road_coding AS stationRoadCoding," +
274   - " b.db_type AS stationDbType," +
275   - " b.b_jwpoints AS stationJwpoints," +
276   - " b.g_lonx AS stationGlonx," +
277   - " b.g_laty AS stationGlaty," +
278   - " b.x AS stationX," +
279   - " b.y AS stationY," +
280   - " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
281   - " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
282   - " b.destroy AS stationDestroy," +
283   - " b.radius AS stationRadius," +
284   - " b.shapes_type AS stationShapesType," +
285   - " b.versions AS stationVersions," +
286   - " b.descriptions AS sttationDescriptions," +
287   - " b.create_by AS stationCreateBy," +
288   - " b.create_date AS stationCreateDate," +
289   - " b.update_by AS stationUpdateBy," +
290   - " b.update_date AS stationUpdateDate," +
291   - " a.stationRouteId,b.station_name as zdmc, " +
292   - " a.industryCode "+
293   - " FROM " +
294   - "( SELECT s.id AS stationRouteId," +
295   - " s.line AS stationRouteLine," +
296   - " s.station as stationRouteStation," +
297   - " s.station_name AS stationRouteName," +
298   - " s.station_route_code as stationRouteCode," +
299   - " s.industry_code as industryCode," +
300   - " s.line_code AS stationRouteLIneCode," +
301   - " s.station_mark AS stationRouteStationMark," +
302   - " s.out_station_nmber AS stationOutStationNmber," +
303   - " s.directions AS stationRoutedirections," +
304   - " s.distances AS stationRouteDistances," +
305   - " s.to_time AS stationRouteToTime," +
306   - " s.first_time AS staitonRouteFirstTime," +
307   - " s.end_time AS stationRouteEndTime," +
308   - " s.descriptions AS stationRouteDescriptions," +
309   - " s.destroy AS stationRouteDestroy," +
310   - " s.versions AS stationRouteVersions," +
311   - " s.create_by AS stationRouteCreateBy," +
312   - " s.create_date AS stationRouteCreateDate," +
313   - " s.update_by AS stationRouteUpdateBy," +
314   - " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.id = ?1 ) a " +
315   - " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true)
316   - List<Object[]> findStationRouteInfo(Integer id);
317   -
318   - /**
319   - * @Description : TODO(根据站点路由Id查询详情)
320   - *
321   - * @param id:站点路由ID
322   - *
323   - * @return List<Object[]>
324   - */
325   - @Query(value = "SELECT a.stationRouteLine," +
326   - " a.stationRouteStation," +
327   - " a.stationRouteCode," +
328   - " a.stationRouteLIneCode," +
329   - " a.stationRouteStationMark," +
330   - " a.stationOutStationNmber," +
331   - " a.stationRoutedirections," +
332   - " a.stationRouteDistances," +
333   - " a.stationRouteToTime," +
334   - " a.staitonRouteFirstTime," +
335   - " a.stationRouteEndTime," +
336   - " a.stationRouteDescriptions," +
337   - " a.stationRouteDestroy," +
338   - " a.stationRouteVersions," +
339   - " a.stationRouteCreateBy," +
340   - " a.stationRouteCreateDate," +
341   - " a.stationRouteUpdateBy," +
342   - " a.stationRouteUpdateDate," +
343   - " b.id AS stationId," +
344   - " b.station_cod AS stationCode," +
345   - " a.stationRouteName," +
346   - " b.road_coding AS stationRoadCoding," +
347   - " b.db_type AS stationDbType," +
348   - " b.b_jwpoints AS stationJwpoints," +
349   - " b.g_lonx AS stationGlonx," +
350   - " b.g_laty AS stationGlaty," +
351   - " b.x AS stationX," +
352   - " b.y AS stationY," +
353   - " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
354   - " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
355   - " b.destroy AS stationDestroy," +
356   - " b.radius AS stationRadius," +
357   - " b.shapes_type AS stationShapesType," +
358   - " b.versions AS stationVersions," +
359   - " b.descriptions AS sttationDescriptions," +
360   - " b.create_by AS stationCreateBy," +
361   - " b.create_date AS stationCreateDate," +
362   - " b.update_by AS stationUpdateBy," +
363   - " b.update_date AS stationUpdateDate," +
364   - " a.stationRouteId," +
365   - "b.station_name as zdmc, "+
366   - "a.industryCode "+
367   - " FROM ( SELECT s.id AS stationRouteId," +
368   - " s.line AS stationRouteLine," +
369   - " s.station as stationRouteStation," +
370   - " s.station_name AS stationRouteName," +
371   - " s.station_route_code as stationRouteCode," +
372   - " s.industry_code as industryCode," +
373   - " s.line_code AS stationRouteLIneCode," +
374   - " s.station_mark AS stationRouteStationMark," +
375   - " s.out_station_nmber AS stationOutStationNmber," +
376   - " s.directions AS stationRoutedirections," +
377   - " s.distances AS stationRouteDistances," +
378   - " s.to_time AS stationRouteToTime," +
379   - " s.first_time AS staitonRouteFirstTime," +
380   - " s.end_time AS stationRouteEndTime," +
381   - " s.descriptions AS stationRouteDescriptions," +
382   - " s.destroy AS stationRouteDestroy," +
383   - " s.versions AS stationRouteVersions," +
384   - " s.create_by AS stationRouteCreateBy," +
385   - " s.create_date AS stationRouteCreateDate," +
386   - " s.update_by AS stationRouteUpdateBy," +
387   - " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.line = ?1 and s.directions = ?2 and s.destroy = 0) a " +
388   - " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id order by a.stationRouteCode", nativeQuery=true)
389   - List<Object[]> getStationRouteList(Integer lineId, Integer dir);
390   -
391   - List<StationRoute> findByLine(Line line);
392   -
393   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
394   - @Query("select s from StationRoute s where s.destroy=0")
395   - List<StationRoute> findAllEffective();
396   -
397   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
398   - @Override
399   - Page<StationRoute> findAll(Specification<StationRoute> spec, Pageable pageable);
400   -
401   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
402   - @Override
403   - List<StationRoute> findAll(Specification<StationRoute> spec);
404   -
405   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
406   - @Override
407   - List<StationRoute> findAll(Specification<StationRoute> spec, Sort sort);
408   -
409   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
410   - @Override
411   - @Query(value = "select r from StationRoute r where r.destroy=0")
412   - List<StationRoute> findAll();
413   -
414   - @Query("select new map(sr.station.id as stationid, sr.stationName as stationname) from StationRoute sr where sr.line.id=?1 and sr.directions=?2")
415   - List<Map<String, Object>> findStations(Integer xlid, Integer xldir);
416   -
417   - @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode")
418   - List<StationRoute> findByLine(String lineCode, int updown);
419   -
420   - @Query("select r from StationRoute r where r.line.id=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode")
421   - List<StationRoute> findByLine(Integer lineId, Integer dir);
422   -
423   - @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 and versions is not null order by r.destroy, r.stationRouteCode")
424   - List<StationRoute> findAllByLine(String lineCode, int updown);
425   -
426   - @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
427   - @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1")
428   - List<StationRoute> findByLineCode(String lineCode);
429   -
430   - @Query("SELECT new map(" +
431   - "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
432   - "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
433   - "FROM " +
434   - "StationRoute s " +
435   - "WHERE " +
436   - "s.destroy = 0 " +
437   - "and s.lineCode in(select lineCode from Line where inUse = 1) " +
438   - "ORDER BY " +
439   - "lineCode,directions,stationRouteCode")
440   - List<Map<String, String>> findLineWithYgcAndInuse();
441   -
442   - @Query("SELECT new map(" +
443   - "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
444   - "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
445   - "FROM " +
446   - "StationRoute s " +
447   - "WHERE " +
448   - "s.destroy = 0 " +
449   - "ORDER BY " +
450   - "lineCode,directions,stationRouteCode")
451   - List<Map<String, String>> findAllLineWithYgc();
452   -
453   - @Query("SELECT new map(" +
454   - "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
455   - "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
456   - "FROM " +
457   - "StationRoute s " +
458   - "WHERE " +
459   - "s.destroy = 0 and s.lineCode = ?1 " +
460   - "ORDER BY " +
461   - "lineCode,directions,stationRouteCode")
462   - List<Map<String, String>> findLineWithYgcByLine(String lineCode);
463   -
464   - @Modifying
465   - @Query(value="update bsth_c_stationroute set directions = case directions when 1 then 0 when 0 then 1 end where line = ?1 ", nativeQuery=true)
466   - void stationRouteDir(Integer line);
467   -
468   - @Modifying
469   - @Query(value="update bsth_c_stationroute set distances =?2 where id = ?1 ", nativeQuery=true)
470   - void upddis(Integer id,Double dis);
471   -
472   - @Modifying
473   - @Query(value="UPDATE bsth_c_stationroute set station_route_code = (station_route_code+10) where line = ?1 and directions = ?2 and station_route_code >=?3 and destroy = 0", nativeQuery=true)
474   - void stationUpdStationRouteCode(Integer line,Integer dir,Integer routeCod);
475   -
476   - /**
477   - * 更新路线前撤销线路原有站点
478   - *
479   - * @param line
480   - * @param dir
481   - */
482   - @Modifying
483   - @Query(value="UPDATE bsth_c_stationroute set destroy = 1 where line = ?1 and directions = ?2", nativeQuery=true)
484   - void stationRouteUpdDestroy(Integer line,Integer dir);
485   -
486   - @Modifying
487   - @Query(value="UPDATE bsth_c_stationroute set destroy = 1 where id = ?1", nativeQuery=true)
488   - void stationRouteIsDestroyUpdBatch(Integer ids);
489   -
490   - /**
491   - *
492   - *
493   - * @param line
494   - * @param dir
495   - */
496   - @Modifying
497   - @Query(value="insert into (select * from bsth_c_stationroute_cache where line = ?1 and directions = ?2) bsth_c_stationroute", nativeQuery=true)
498   - void stationRouteUpdate(Integer line,Integer dir);
499   -
500   - // 更具线路批量撤销
501   - @Modifying
502   - @Query(value="UPDATE StationRoute sr set sr.destroy = 1 where sr.line.id = ?1 and sr.lineCode = ?2")
503   - void batchUpdate(Integer lineId, String lineCode);
504   -
505   - // 批量删除
506   - @Modifying
507   - @Query(value="delete from StationRoute sr where sr.line.id = ?1 and sr.lineCode = ?2")
508   - void batchDelete(Integer lineId, String lineCode);
509   -
510   -
511   - // 批量修改站点行业编码
512   - @Modifying
513   - @Query(value="update bsth_c_stationroute set industry_code =?2 where id = ?1 ", nativeQuery=true)
514   - void updIndustryCode(Integer id,String IndustryCode);
515   -}
  1 +package com.bsth.repository;
  2 +
  3 +import java.util.List;
  4 +import java.util.Map;
  5 +
  6 +import org.springframework.data.domain.Page;
  7 +import org.springframework.data.domain.Pageable;
  8 +import org.springframework.data.domain.Sort;
  9 +import org.springframework.data.jpa.domain.Specification;
  10 +import org.springframework.data.jpa.repository.EntityGraph;
  11 +import org.springframework.data.jpa.repository.Modifying;
  12 +import org.springframework.data.jpa.repository.Query;
  13 +import org.springframework.stereotype.Repository;
  14 +import org.springframework.transaction.annotation.Transactional;
  15 +
  16 +import com.bsth.entity.Line;
  17 +import com.bsth.entity.StationRoute;
  18 +
  19 +/**
  20 + *
  21 + * @Interface: StationRouteRepository(站点路由Repository数据持久层接口)
  22 + *
  23 + * @Extends : BaseRepository
  24 + *
  25 + * @Description: TODO(站点路由Repository数据持久层接口)
  26 + *
  27 + * @Author bsth@lq
  28 + *
  29 + * @Date 2016年5月03日 上午9:21:17
  30 + *
  31 + * @Version 公交调度系统BS版 0.1
  32 + *
  33 + */
  34 +
  35 +@Repository
  36 +public interface StationRouteRepository extends BaseRepository<StationRoute, Integer> {
  37 +
  38 + @Query(value = "SELECT a.`stationRoute.id`," +
  39 + "a.`stationRoute.line`," +
  40 + "a.`stationRoute.station`," +
  41 + "a.`stationRoute.stationName`," +
  42 + "a.`stationRoute.stationRouteCode`," +
  43 + "a.`stationRoute.lineCode`," +
  44 + "a.`stationRoute.stationMark`," +
  45 + "a.`stationRoute.outStationNmber`," +
  46 + "a.`stationRoute.directions`," +
  47 + "a.`stationRoute.distances`," +
  48 + "a.`stationRoute.toTime`," +
  49 + "a.`stationRoute.firstTime`," +
  50 + "a.`stationRoute.endTime`," +
  51 + "a.`stationRoute.descriptions`," +
  52 + "a.`stationRoute.versions`," +
  53 + "b.id AS 'station.id'," +
  54 + "b.station_cod AS 'station.stationCod'," +
  55 + "b.station_name AS 'station.stationName'," +
  56 + "b.road_coding AS 'station.roadCoding'," +
  57 + "b.db_type AS 'station.dbType'," +
  58 + "b.b_jwpoints AS 'station.bJwpoints'," +
  59 + "b.g_lonx AS 'station.gLonx'," +
  60 + "b.g_lonx AS 'station.gLaty'," +
  61 + "b.x AS 'station.x'," +
  62 + "b.y AS 'station.y'," +
  63 + "b.shapes_type AS 'station.shapesType'," +
  64 + "b.radius AS 'station.radius'," +
  65 + "ST_AsText(b.g_polygon_grid) AS 'station.gPolygonGrid'," +
  66 + "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," +
  67 + "b.destroy AS 'station.destroy'," +
  68 + "b.versions AS 'station.versions'," +
  69 + "b.descriptions AS 'station.descriptions', " +
  70 + "a.`stationRoute.industryCode` " +
  71 + " FROM (" +
  72 + "SELECT r.id AS 'stationRoute.id'," +
  73 + " r.line AS 'stationRoute.line'," +
  74 + "r.station AS 'stationRoute.station'," +
  75 + "r.station_name AS 'stationRoute.stationName'," +
  76 + "r.station_route_code as 'stationRoute.stationRouteCode'," +
  77 + "r.line_code AS 'stationRoute.lineCode'," +
  78 + "r.station_mark AS 'stationRoute.stationMark'," +
  79 + "r.out_station_nmber AS 'stationRoute.outStationNmber'," +
  80 + "r.directions AS 'stationRoute.directions'," +
  81 + "r.distances AS 'stationRoute.distances'," +
  82 + "r.to_time AS 'stationRoute.toTime'," +
  83 + "r.first_time AS 'stationRoute.firstTime'," +
  84 + "r.end_time AS 'stationRoute.endTime'," +
  85 + "r.descriptions AS 'stationRoute.descriptions'," +
  86 + "r.versions AS 'stationRoute.versions', " +
  87 + "r.industry_code AS 'stationRoute.industryCode' " +
  88 + " FROM bsth_c_stationroute r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " +
  89 + "LEFT JOIN bsth_c_station b " +
  90 + "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true)
  91 + List<Object[]> findPoints(int line,int directions);
  92 +
  93 + @Query("select r from StationRoute r where r.line.id=?1 and r.destroy=0 order by r.directions ASC ,r.stationRouteCode ASC")
  94 + // @Query(value = "SELECT * from bsth_c_stationroute line = ?1 and destroy=0 bsth_c_station ORDER BY directions ASC, stationRouteCode ASC", nativeQuery=true)
  95 + List<StationRoute> findStationExport(int line);
  96 +
  97 + /**
  98 + * @Description :TODO(查询线路某方向下的站点序号与类型)
  99 + *
  100 + * @param map <lineId:线路ID; direction:方向;stationRouteCode:站点编码>
  101 + *
  102 + * @return List<Map<String, Object>>
  103 + */
  104 + @Query(value = "select t.station_route_code,t.station_mark from bsth_c_stationroute t where " +
  105 + " t.station_route_code =(" +
  106 + "select MAX(station_route_code) as stationRouteCode from bsth_c_stationroute r WHERE " +
  107 + "r.line=?1 and r.directions =?2 and station_route_code< ?3 and r.destroy = 0 ) and t.line=?1 and t.directions = ?2 AND t.destroy = 0", nativeQuery=true)
  108 + List<Object[]> findUpStationRouteCode(Integer lineId,Integer direction,Integer stationRouteCode);
  109 +
  110 + /**
  111 + * @param version
  112 + * @Description :TODO(查询下个站点)
  113 + *
  114 + * @param map <lineId:线路ID; direction:方向;stationRouteCode:站点编码>
  115 + *
  116 + * @return List<Map<String, Object>>
  117 + */
  118 + @Query(value = "SELECT a.stationRouteLine," +
  119 + " a.stationRouteStation," +
  120 + " a.stationRouteCode," +
  121 + " a.stationRouteLIneCode," +
  122 + " a.stationRouteStationMark," +
  123 + " a.stationOutStationNmber," +
  124 + " a.stationRoutedirections," +
  125 + " a.stationRouteDistances," +
  126 + " a.stationRouteToTime," +
  127 + " a.staitonRouteFirstTime," +
  128 + " a.stationRouteEndTime," +
  129 + " a.stationRouteDescriptions," +
  130 + " a.stationRouteDestroy," +
  131 + " a.stationRouteVersions," +
  132 + " a.stationRouteCreateBy," +
  133 + " a.stationRouteCreateDate," +
  134 + " a.stationRouteUpdateBy," +
  135 + " a.stationRouteUpdateDate," +
  136 + " b.id AS stationId," +
  137 + " b.station_cod AS stationCode," +
  138 + " a.stationRouteName," +
  139 + " b.road_coding AS stationRoadCoding," +
  140 + " b.db_type AS stationDbType," +
  141 + " b.b_jwpoints AS stationJwpoints," +
  142 + " b.g_lonx AS stationGlonx," +
  143 + " b.g_laty AS stationGlaty," +
  144 + " b.x AS stationX," +
  145 + " b.y AS stationY," +
  146 + " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
  147 + " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
  148 + " b.destroy AS stationDestroy," +
  149 + " b.radius AS stationRadius," +
  150 + " b.shapes_type AS stationShapesType," +
  151 + " b.versions AS stationVersions," +
  152 + " b.descriptions AS sttationDescriptions," +
  153 + " b.create_by AS stationCreateBy," +
  154 + " b.create_date AS stationCreateDate," +
  155 + " b.update_by AS stationUpdateBy," +
  156 + " b.update_date AS stationUpdateDate," +
  157 + " a.stationRouteId, " +
  158 + " b.station_name as zdmc, " +
  159 + " a.industryCode"+
  160 + " FROM " +
  161 + "( SELECT s.id AS stationRouteId," +
  162 + " s.line AS stationRouteLine," +
  163 + " s.station as stationRouteStation," +
  164 + " s.station_name AS stationRouteName," +
  165 + " s.station_route_code as stationRouteCode," +
  166 + " s.industry_code as industryCode," +
  167 + " s.line_code AS stationRouteLIneCode," +
  168 + " s.station_mark AS stationRouteStationMark," +
  169 + " s.out_station_nmber AS stationOutStationNmber," +
  170 + " s.directions AS stationRoutedirections," +
  171 + " s.distances AS stationRouteDistances," +
  172 + " s.to_time AS stationRouteToTime," +
  173 + " s.first_time AS staitonRouteFirstTime," +
  174 + " s.end_time AS stationRouteEndTime," +
  175 + " s.descriptions AS stationRouteDescriptions," +
  176 + " s.destroy AS stationRouteDestroy," +
  177 + " s.versions AS stationRouteVersions," +
  178 + " s.create_by AS stationRouteCreateBy," +
  179 + " s.create_date AS stationRouteCreateDate," +
  180 + " s.update_by AS stationRouteUpdateBy," +
  181 + " s.update_date AS stationRouteUpdateDate FROM bsth_c_ls_stationroute s WHERE s.versions = ?4 and s.station_route_code =(" +
  182 + "select MIN(station_route_code) as stationRouteCode from bsth_c_ls_stationroute r WHERE " +
  183 + "r.line=?1 and r.directions =?2 and station_route_code > ?3 and r.destroy = 0 and versions = ?4 ) and s.line=?1 and s.directions = ?2 AND s.destroy = 0) a " +
  184 + " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true)
  185 + List<Object[]> findDownStationRoute(Integer id,Integer direction,Integer stationRouteCode, Integer version);
  186 +
  187 + /**
  188 + * @Description :TODO(站点中心点坐标查询)
  189 + *
  190 + * @param map <lineId:线路ID; direction:方向>
  191 + *
  192 + * @return List<Object[]>
  193 + */
  194 + /*@Query(value = "SELECT s.b_jwpoints,s.station_name FROM (" +
  195 + "SELECT b.station FROM bsth_c_stationroute b where b.line =?1 and b.directions = ?2 and b.destroy=0) r " +
  196 + "LEFT JOIN bsth_c_station s on r.station = s.id", nativeQuery=true)*/
  197 + @Query(value = "SELECT s.b_jwpoints,r.station_name,r.station_route_code FROM (" +
  198 + "SELECT b.station,b.station_route_code,b.station_name FROM bsth_c_stationroute b where b.line =?1 and b.directions = ?2 and b.destroy=0) r " +
  199 + "LEFT JOIN bsth_c_station s on r.station = s.id order by r.station_route_code asc", nativeQuery=true)
  200 + List<Object[]> getSelectStationRouteCenterPoints(Integer lineId,Integer direction);
  201 +
  202 + /**
  203 + * @Description :TODO(撤销站点)
  204 + *
  205 + * @param map <lineId:线路ID; destroy:是否撤销(0:否;1:是)>
  206 + *
  207 + */
  208 + @Transactional
  209 + @Modifying
  210 + @Query(value="UPDATE bsth_c_stationroute SET " +
  211 + "destroy = ?2 WHERE id = ?1", nativeQuery=true)
  212 + void stationRouteIsDestroyUpd(Integer stationRouteId, Integer destroy);
  213 +
  214 +
  215 + /**
  216 + * @Description : TODO(根据线路ID生成行单)
  217 + *
  218 + * @param lineId:线路ID
  219 + *
  220 + * @return List<Object[]>:{[0]:g_lonx(GPS经度);[1]:g_laty(GPS纬度);[2]:b_jwpoints(百度经纬度坐标)
  221 + *
  222 + * [3]:station_mark(站点类型);[4]:station_route_code(站点序号);[5]:station_cod(站点编码);
  223 + *
  224 + * [6]:distances(站点距离);[7]:station_name(站点名称);[8]:directions(方向)}
  225 + */
  226 + @Query(value = "SELECT * FROM ("+
  227 + "SELECT b.g_lonx," +
  228 + "b.g_laty,b.b_jwpoints," +
  229 + "a.station_mark," +
  230 + "a.station_route_code," +
  231 + "b.station_cod," +
  232 + "a.distances,"+
  233 + "a.station_name," +
  234 + "a.directions," +
  235 + "a.station_name_en FROM (SELECT " +
  236 + "s.station_mark," +
  237 + "s.station_route_code," +
  238 + "s.directions," +
  239 + "s.distances,"+
  240 + "s.station_name,"+
  241 + "s.station_name_en,"+
  242 + "s.station FROM bsth_c_stationroute s where s.line = ?1 and s.destroy=0) a " +
  243 + "LEFT JOIN bsth_c_station b " +
  244 + " on a.station = b.id ORDER BY a.directions ASC ) k ORDER BY k.directions,k.station_route_code ASC", nativeQuery=true)
  245 + List<Object[]> usingSingle(Integer lineId);
  246 +
  247 + /**
  248 + * @Description : TODO(根据站点路由Id查询详情)
  249 + *
  250 + * @param id:站点路由ID
  251 + *
  252 + * @return List<Object[]>
  253 + */
  254 + @Query(value = "SELECT a.stationRouteLine," +
  255 + " a.stationRouteStation," +
  256 + " a.stationRouteCode," +
  257 + " a.stationRouteLIneCode," +
  258 + " a.stationRouteStationMark," +
  259 + " a.stationOutStationNmber," +
  260 + " a.stationRoutedirections," +
  261 + " a.stationRouteDistances," +
  262 + " a.stationRouteToTime," +
  263 + " a.staitonRouteFirstTime," +
  264 + " a.stationRouteEndTime," +
  265 + " a.stationRouteDescriptions," +
  266 + " a.stationRouteDestroy," +
  267 + " a.stationRouteVersions," +
  268 + " a.stationRouteCreateBy," +
  269 + " a.stationRouteCreateDate," +
  270 + " a.stationRouteUpdateBy," +
  271 + " a.stationRouteUpdateDate," +
  272 + " b.id AS stationId," +
  273 + " b.station_cod AS stationCode," +
  274 + " a.stationRouteName," +
  275 + " b.road_coding AS stationRoadCoding," +
  276 + " b.db_type AS stationDbType," +
  277 + " b.b_jwpoints AS stationJwpoints," +
  278 + " b.g_lonx AS stationGlonx," +
  279 + " b.g_laty AS stationGlaty," +
  280 + " b.x AS stationX," +
  281 + " b.y AS stationY," +
  282 + " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
  283 + " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
  284 + " b.destroy AS stationDestroy," +
  285 + " b.radius AS stationRadius," +
  286 + " b.shapes_type AS stationShapesType," +
  287 + " b.versions AS stationVersions," +
  288 + " b.descriptions AS sttationDescriptions," +
  289 + " b.create_by AS stationCreateBy," +
  290 + " b.create_date AS stationCreateDate," +
  291 + " b.update_by AS stationUpdateBy," +
  292 + " b.update_date AS stationUpdateDate," +
  293 + " a.stationRouteId,b.station_name as zdmc, " +
  294 + " a.industryCode "+
  295 + " FROM " +
  296 + "( SELECT s.id AS stationRouteId," +
  297 + " s.line AS stationRouteLine," +
  298 + " s.station as stationRouteStation," +
  299 + " s.station_name AS stationRouteName," +
  300 + " s.station_route_code as stationRouteCode," +
  301 + " s.industry_code as industryCode," +
  302 + " s.line_code AS stationRouteLIneCode," +
  303 + " s.station_mark AS stationRouteStationMark," +
  304 + " s.out_station_nmber AS stationOutStationNmber," +
  305 + " s.directions AS stationRoutedirections," +
  306 + " s.distances AS stationRouteDistances," +
  307 + " s.to_time AS stationRouteToTime," +
  308 + " s.first_time AS staitonRouteFirstTime," +
  309 + " s.end_time AS stationRouteEndTime," +
  310 + " s.descriptions AS stationRouteDescriptions," +
  311 + " s.destroy AS stationRouteDestroy," +
  312 + " s.versions AS stationRouteVersions," +
  313 + " s.create_by AS stationRouteCreateBy," +
  314 + " s.create_date AS stationRouteCreateDate," +
  315 + " s.update_by AS stationRouteUpdateBy," +
  316 + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.id = ?1 ) a " +
  317 + " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true)
  318 + List<Object[]> findStationRouteInfo(Integer id);
  319 +
  320 + /**
  321 + * @Description : TODO(根据站点路由Id查询详情)
  322 + *
  323 + * @param id:站点路由ID
  324 + *
  325 + * @return List<Object[]>
  326 + */
  327 + @Query(value = "SELECT a.stationRouteLine," +
  328 + " a.stationRouteStation," +
  329 + " a.stationRouteCode," +
  330 + " a.stationRouteLIneCode," +
  331 + " a.stationRouteStationMark," +
  332 + " a.stationOutStationNmber," +
  333 + " a.stationRoutedirections," +
  334 + " a.stationRouteDistances," +
  335 + " a.stationRouteToTime," +
  336 + " a.staitonRouteFirstTime," +
  337 + " a.stationRouteEndTime," +
  338 + " a.stationRouteDescriptions," +
  339 + " a.stationRouteDestroy," +
  340 + " a.stationRouteVersions," +
  341 + " a.stationRouteCreateBy," +
  342 + " a.stationRouteCreateDate," +
  343 + " a.stationRouteUpdateBy," +
  344 + " a.stationRouteUpdateDate," +
  345 + " b.id AS stationId," +
  346 + " b.station_cod AS stationCode," +
  347 + " a.stationRouteName," +
  348 + " b.road_coding AS stationRoadCoding," +
  349 + " b.db_type AS stationDbType," +
  350 + " b.b_jwpoints AS stationJwpoints," +
  351 + " b.g_lonx AS stationGlonx," +
  352 + " b.g_laty AS stationGlaty," +
  353 + " b.x AS stationX," +
  354 + " b.y AS stationY," +
  355 + " ST_AsText(b.b_polygon_grid) as stationBPolyonGrid," +
  356 + " ST_AsText(b.g_polygon_grid) AS stationGPloyonGrid, " +
  357 + " b.destroy AS stationDestroy," +
  358 + " b.radius AS stationRadius," +
  359 + " b.shapes_type AS stationShapesType," +
  360 + " b.versions AS stationVersions," +
  361 + " b.descriptions AS sttationDescriptions," +
  362 + " b.create_by AS stationCreateBy," +
  363 + " b.create_date AS stationCreateDate," +
  364 + " b.update_by AS stationUpdateBy," +
  365 + " b.update_date AS stationUpdateDate," +
  366 + " a.stationRouteId," +
  367 + "b.station_name as zdmc, "+
  368 + "a.industryCode "+
  369 + " FROM ( SELECT s.id AS stationRouteId," +
  370 + " s.line AS stationRouteLine," +
  371 + " s.station as stationRouteStation," +
  372 + " s.station_name AS stationRouteName," +
  373 + " s.station_route_code as stationRouteCode," +
  374 + " s.industry_code as industryCode," +
  375 + " s.line_code AS stationRouteLIneCode," +
  376 + " s.station_mark AS stationRouteStationMark," +
  377 + " s.out_station_nmber AS stationOutStationNmber," +
  378 + " s.directions AS stationRoutedirections," +
  379 + " s.distances AS stationRouteDistances," +
  380 + " s.to_time AS stationRouteToTime," +
  381 + " s.first_time AS staitonRouteFirstTime," +
  382 + " s.end_time AS stationRouteEndTime," +
  383 + " s.descriptions AS stationRouteDescriptions," +
  384 + " s.destroy AS stationRouteDestroy," +
  385 + " s.versions AS stationRouteVersions," +
  386 + " s.create_by AS stationRouteCreateBy," +
  387 + " s.create_date AS stationRouteCreateDate," +
  388 + " s.update_by AS stationRouteUpdateBy," +
  389 + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.line = ?1 and s.directions = ?2 and s.destroy = 0) a " +
  390 + " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id order by a.stationRouteCode", nativeQuery=true)
  391 + List<Object[]> getStationRouteList(Integer lineId, Integer dir);
  392 +
  393 + List<StationRoute> findByLine(Line line);
  394 +
  395 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  396 + @Query("select s from StationRoute s where s.destroy=0")
  397 + List<StationRoute> findAllEffective();
  398 +
  399 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  400 + @Override
  401 + Page<StationRoute> findAll(Specification<StationRoute> spec, Pageable pageable);
  402 +
  403 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  404 + @Override
  405 + List<StationRoute> findAll(Specification<StationRoute> spec);
  406 +
  407 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  408 + @Override
  409 + List<StationRoute> findAll(Specification<StationRoute> spec, Sort sort);
  410 +
  411 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  412 + @Override
  413 + @Query(value = "select r from StationRoute r where r.destroy=0")
  414 + List<StationRoute> findAll();
  415 +
  416 + @Query("select new map(sr.station.id as stationid, sr.stationName as stationname) from StationRoute sr where sr.line.id=?1 and sr.directions=?2")
  417 + List<Map<String, Object>> findStations(Integer xlid, Integer xldir);
  418 +
  419 + @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode")
  420 + List<StationRoute> findByLine(String lineCode, int updown);
  421 +
  422 + @Query("select r from StationRoute r where r.line.id=?1 and r.directions=?2 and r.destroy=0 order by r.stationRouteCode")
  423 + List<StationRoute> findByLine(Integer lineId, Integer dir);
  424 +
  425 + @Query("select r from StationRoute r where r.lineCode=?1 and r.directions=?2 and versions is not null order by r.destroy, r.stationRouteCode")
  426 + List<StationRoute> findAllByLine(String lineCode, int updown);
  427 +
  428 + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH)
  429 + @Query("select s from StationRoute s where s.destroy=0 and s.lineCode=?1")
  430 + List<StationRoute> findByLineCode(String lineCode);
  431 +
  432 + @Query("SELECT new map(" +
  433 + "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
  434 + "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
  435 + "FROM " +
  436 + "StationRoute s " +
  437 + "WHERE " +
  438 + "s.destroy = 0 " +
  439 + "and s.lineCode in(select lineCode from Line where inUse = 1) " +
  440 + "ORDER BY " +
  441 + "lineCode,directions,stationRouteCode")
  442 + List<Map<String, String>> findLineWithYgcAndInuse();
  443 +
  444 + @Query("SELECT new map(" +
  445 + "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
  446 + "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
  447 + "FROM " +
  448 + "StationRoute s " +
  449 + "WHERE " +
  450 + "s.destroy = 0 " +
  451 + "ORDER BY " +
  452 + "lineCode,directions,stationRouteCode")
  453 + List<Map<String, String>> findAllLineWithYgc();
  454 +
  455 + @Query("SELECT new map(" +
  456 + "lineCode as lineCode,directions as directions,stationName as stationName,stationCode as stationCode," +
  457 + "line.linePlayType as linePlayType,s.stationMark as stationMark) " +
  458 + "FROM " +
  459 + "StationRoute s " +
  460 + "WHERE " +
  461 + "s.destroy = 0 and s.lineCode = ?1 " +
  462 + "ORDER BY " +
  463 + "lineCode,directions,stationRouteCode")
  464 + List<Map<String, String>> findLineWithYgcByLine(String lineCode);
  465 +
  466 + @Modifying
  467 + @Query(value="update bsth_c_stationroute set directions = case directions when 1 then 0 when 0 then 1 end where line = ?1 ", nativeQuery=true)
  468 + void stationRouteDir(Integer line);
  469 +
  470 + @Modifying
  471 + @Query(value="update bsth_c_stationroute set distances =?2 where id = ?1 ", nativeQuery=true)
  472 + void upddis(Integer id,Double dis);
  473 +
  474 + @Modifying
  475 + @Query(value="UPDATE bsth_c_stationroute set station_route_code = (station_route_code+10) where line = ?1 and directions = ?2 and station_route_code >=?3 and destroy = 0", nativeQuery=true)
  476 + void stationUpdStationRouteCode(Integer line,Integer dir,Integer routeCod);
  477 +
  478 + /**
  479 + * 更新路线前撤销线路原有站点
  480 + *
  481 + * @param line
  482 + * @param dir
  483 + */
  484 + @Modifying
  485 + @Query(value="UPDATE bsth_c_stationroute set destroy = 1 where line = ?1 and directions = ?2", nativeQuery=true)
  486 + void stationRouteUpdDestroy(Integer line,Integer dir);
  487 +
  488 + @Modifying
  489 + @Query(value="UPDATE bsth_c_stationroute set destroy = 1 where id = ?1", nativeQuery=true)
  490 + void stationRouteIsDestroyUpdBatch(Integer ids);
  491 +
  492 + /**
  493 + *
  494 + *
  495 + * @param line
  496 + * @param dir
  497 + */
  498 + @Modifying
  499 + @Query(value="insert into (select * from bsth_c_stationroute_cache where line = ?1 and directions = ?2) bsth_c_stationroute", nativeQuery=true)
  500 + void stationRouteUpdate(Integer line,Integer dir);
  501 +
  502 + // 更具线路批量撤销
  503 + @Modifying
  504 + @Query(value="UPDATE StationRoute sr set sr.destroy = 1 where sr.line.id = ?1 and sr.lineCode = ?2")
  505 + void batchUpdate(Integer lineId, String lineCode);
  506 +
  507 + // 批量删除
  508 + @Modifying
  509 + @Query(value="delete from StationRoute sr where sr.line.id = ?1 and sr.lineCode = ?2")
  510 + void batchDelete(Integer lineId, String lineCode);
  511 +
  512 +
  513 + // 批量修改站点行业编码
  514 + @Modifying
  515 + @Query(value="update bsth_c_stationroute set industry_code =?2 where id = ?1 ", nativeQuery=true)
  516 + void updIndustryCode(Integer id,String IndustryCode);
  517 +}
... ...
src/main/java/com/bsth/service/impl/LineServiceImpl.java
... ... @@ -94,7 +94,7 @@ public class LineServiceImpl extends BaseServiceImpl&lt;Line, Integer&gt; implements L
94 94 l.getOpenDate(), l.getEs(), l.getShortName(), l.getShanghaiLinecode(), l.getEqLinecode(),
95 95 l.getStartPhone(), l.getEndPhone(), l.getCarSumNumber(), l.getHvacCarNumber(), l.getOrdCarNumber(),
96 96 l.getHistory(), l.getDescriptions(), l.getDestroy(), l.getSupperLine(), l.getSpacGrade(),
97   - l.getWarrantCar(), l.getLineCode(), l.getRegion(),l.getInUse());
  97 + l.getWarrantCar(), l.getLineCode(), l.getRegion(),l.getInUse(),l.getTicketPrice());
98 98 if (status==1) {
99 99 map.put("status", ResponseCode.SUCCESS);
100 100 } else {
... ...
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
1 1 package com.bsth.service.impl;
2 2  
3 3 import com.bsth.common.ResponseCode;
  4 +import com.bsth.entity.Business;
4 5 import com.bsth.entity.Line;
5 6 import com.bsth.entity.LsStationRoute;
6 7 import com.bsth.entity.Station;
... ... @@ -8,6 +9,7 @@ import com.bsth.entity.StationMatchData;
8 9 import com.bsth.entity.StationRoute;
9 10 import com.bsth.entity.StationRouteCache;
10 11 import com.bsth.entity.search.CustomerSpecs;
  12 +import com.bsth.repository.BusinessRepository;
11 13 import com.bsth.repository.LineRepository;
12 14 import com.bsth.repository.LsSectionRouteRepository;
13 15 import com.bsth.repository.LsStationRouteRepository;
... ... @@ -88,6 +90,9 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
88 90 @Autowired
89 91 private StationRepository stationRepository;
90 92  
  93 + @Autowired
  94 + private BusinessRepository businessRepository;
  95 +
91 96 @Autowired
92 97 private LsStationRouteRepository lsStationRouteRepository;
93 98  
... ... @@ -851,6 +856,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
851 856 Integer lineId = map.get("lineId").equals("") ? 0 : Integer.parseInt(map.get("lineId").toString());
852 857 /** 查询线路信息 @param:<lineId:线路ID> */
853 858 Line line = lineRepository.findById(lineId).get();
  859 +
  860 +
  861 + Business company = businessRepository.findByBusinessCode(line.getBrancheCompany()).get(0);
  862 +
854 863 Integer fileVersions = lineRepository.findfileVersions(lineId);
855 864 if(fileVersions == null) {
856 865 lineRepository.addFileVersions(line.getId(), line.getLineCode());
... ... @@ -884,6 +893,7 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
884 893 /** 如果已存在相同行单文件名则先删除 */
885 894 clientUtils.deleteFtpFile(url, port, username, password, remotePath, odlGzFileName);
886 895 clientUtils.deleteFtpFile(url, port, username, password, remotePath, textFileName);
  896 + clientUtils.deleteFtpFile(url, port, username, password, remotePath + "/voice/", textFileName);
887 897 String textStr = "";
888 898 // boolean tempTag = ishxType(objects);
889 899 Integer linePlayType = line.getLinePlayType() == null ? -1:line.getLinePlayType();
... ... @@ -893,7 +903,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
893 903 textStr = newTextFileToFTP(objects,lineId);/** 双向行单文件内容 @param:<objects:站点路由;lineId:线路ID>*/
894 904 else
895 905 resultMap.put("status","NOLinePlayType");// 线路无线路规划类型
896   - textStr = line.getName() + " " + fileVersions + "\r" + textStr;
  906 +
  907 + textStr = line.getName() + " " + fileVersions + "\r\n" + textStr;
897 908 InputStream input = new ByteArrayInputStream(textStr.getBytes("gbk"));
898 909 /** 生成txt文件,上传ftp */
899 910 clientUtils.uploadFile(url, port, username, password, remotePath, textFileName, input);
... ... @@ -908,6 +919,21 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
908 919 // 删除文件
909 920 textFile.delete();
910 921 targetFile.delete();
  922 +
  923 +
  924 + textStr = newTextVoiceFileToFTP(objects,lineId);
  925 +
  926 + String head = line.getName() + " " + fileVersions + " " + line.getStartStationFirstTime() + "-" + line.getStartStationEndTime() + " " + line.getEndStationFirstTime() + "-" + line.getEndStationEndTime() + " " + (line.getTicketPrice() == null ? "-" : line.getTicketPrice()) + " " + company.getBusinessName() + " " + (company.getPhoneNum()== null ? "-" : company.getPhoneNum());
  927 +
  928 + textStr = head +"\r\n" + textStr;
  929 +
  930 + input = new ByteArrayInputStream(textStr.getBytes("gbk"));
  931 +
  932 + clientUtils.uploadFile(url, port, username, password, remotePath + "/voice/", textFileName, input);
  933 +
  934 +// textFile.delete();
  935 +
  936 +
911 937 resultMap.put("status", ResponseCode.SUCCESS);
912 938 }else {
913 939 resultMap.put("status","NOTDATA");
... ... @@ -959,9 +985,9 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
959 985 // 返回值String
960 986 String stationRStr = "";
961 987 // windows下的文本文件换行符
962   - //String enterStr = "\r\n";
  988 + String enterStr = "\r\n";
963 989 // linux/unix下的文本文件换行符
964   - String enterStr = "\r";
  990 +// String enterStr = "\r";
965 991 int defaultZdxh = 0;
966 992 if(objects.size()>0) {
967 993 for(int i = 0; i<objects.size();i++) {
... ... @@ -1064,12 +1090,129 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
1064 1090  
1065 1091 }
1066 1092  
  1093 + public String newTextVoiceFileToFTP(List<Object[]> objects,Integer lineId) {
  1094 +
  1095 + // 返回值String
  1096 + String stationRStr = "";
  1097 + // windows下的文本文件换行符
  1098 + String enterStr = "\r\n";
  1099 + // linux/unix下的文本文件换行符
  1100 +// String enterStr = "\r";
  1101 + int defaultZdxh = 0;
  1102 + if(objects.size()>0) {
  1103 + for(int i = 0; i<objects.size();i++) {
  1104 + defaultZdxh ++ ;
  1105 + // 经度
  1106 + String lng = objects.get(i)[0].equals("") ? "0" : objects.get(i)[0].toString();
  1107 +
  1108 + // 纬度
  1109 + String lat = objects.get(i)[1].equals("") ? "0" : objects.get(i)[1].toString();
  1110 +
  1111 + Point point = new Point(Double.valueOf(lng), Double.valueOf(lat));
  1112 +
  1113 + lat = "\t" + lat;
  1114 +
  1115 + // 站点类型
  1116 + String stationMakeStr = objects.get(i)[3].equals("") ? "" : objects.get(i)[3].toString();
  1117 +
  1118 + String stationMake = "";
  1119 +
  1120 + if(stationMakeStr.equals("E")) {
  1121 + stationMake = "\t2";
  1122 + }else {
  1123 + stationMake ="\t1";
  1124 + }
  1125 +
  1126 + // 站点序号
  1127 + // String stationNo = objects.get(i)[4].equals("") ? "" : objects.get(i)[4].toString();
  1128 + String stationNo = String.valueOf(defaultZdxh);
  1129 +
  1130 + stationNo = "\t" + stationNo;
  1131 +
  1132 + // 站点编码
  1133 + String stationCode = objects.get(i)[5].equals("") ? "" : objects.get(i)[5].toString();
  1134 +
  1135 + int len = stationCode.length();
  1136 + if(len<8) {
  1137 + int dx = 8 - len;
  1138 + String addStr = "";
  1139 + for(int p =0;p<dx;p++) {
  1140 + addStr = addStr + "0";
  1141 + }
  1142 + stationCode = addStr + stationCode;
  1143 + }else if(len>8){
  1144 + stationCode = stationCode.substring(8);
  1145 + }
  1146 +
  1147 + stationCode = "\t" +stationCode;
  1148 +
  1149 + double dis = objects.get(i)[6]==null ? 0.0 : Double.parseDouble(objects.get(i)[6].toString())*1000;
  1150 +
  1151 + String tempDistc = String.valueOf((int) dis);
  1152 +
  1153 + // 站点距离
  1154 + String staitondistance = "\t" + tempDistc;
  1155 +
  1156 + // 站点名称
  1157 + String stationName = objects.get(i)[7].equals("") ? "" : objects.get(i)[7].toString();
  1158 +
  1159 + String stationNameEn = " ";
  1160 + if(objects.get(i)[9] != null){
  1161 + stationNameEn = objects.get(i)[9].equals("") ? "" : objects.get(i)[9].toString();
  1162 + }
  1163 +
  1164 +
  1165 + stationName = "\t" +stationName;
  1166 + stationNameEn = "\t" +stationNameEn;
  1167 +
  1168 + // 限速
  1169 + // String sleepStr = " " + "60";
  1170 +
  1171 + // 限速
  1172 + String sleepStr = "";
  1173 + // 方向
  1174 + int directions = objects.get(i)[8]==null ? null : Integer.valueOf(objects.get(i)[8].toString());
  1175 + /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */
  1176 + List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions);
  1177 + if(sobje.size()==1) {
  1178 + double dsleepStrt = sobje.get(0)[2] == null ? 60d : Double.valueOf(sobje.get(0)[2].toString());
  1179 + sleepStr = "\t" + new DecimalFormat("0").format(dsleepStrt);
  1180 +// int dsleepStr = sobje.get(0)[2] == null || sobje.get(0)[2].equals("") ? 60 : Integer.valueOf(sobje.get(0)[2].toString());
  1181 +// sleepStr = "\t" + String.valueOf(dsleepStr);
  1182 + }else if(sobje.size()>1){
  1183 + for(int j =0;j<sobje.size();j++) {
  1184 + double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString());
  1185 + String pointsStr = sobje.get(j)[1]==null || sobje.get(j)[1].equals("") ? null : sobje.get(j)[1].toString();
  1186 + pointsStr = pointsStr.substring(11, pointsStr.length()-1);
  1187 + List<Point> ps = new ArrayList<>();
  1188 + String[] pArray = pointsStr.split(",");
  1189 + for(int a = 0; a <pArray.length; a++) {
  1190 + String[] tmepA = pArray[a].split(" ");
  1191 + Point temp = new Point(Double.valueOf(tmepA[0]), Double.valueOf(tmepA[1]));
  1192 + ps.add(temp);
  1193 + }
  1194 + if(GeoUtils.isInSection(ps, point)) {
  1195 + sleepStr = "\t" + String.valueOf((int)dsleepStrt);
  1196 + break;
  1197 + }
  1198 + }
  1199 + }
  1200 + if(sleepStr.equals(""))
  1201 + sleepStr = "\t" + "60";
  1202 + stationRStr = stationRStr + lng + lat + stationMake + stationNo + stationCode + staitondistance + sleepStr + stationName + stationNameEn + enterStr;
  1203 + }
  1204 +
  1205 + }
  1206 + return stationRStr;
  1207 +
  1208 + }
  1209 +
1067 1210 public String hxTextFileToFtp(List<Object[]> objects,Integer lineId) {
1068 1211 String restStr = "";
1069 1212 // windows下的文本文件换行符
1070   - //String enterStr = "\r\n";
  1213 + String enterStr = "\r\n";
1071 1214 // linux/unix下的文本文件换行符
1072   - String enterStr = "\r";
  1215 +// String enterStr = "\r";
1073 1216 int xh = 1 ;
1074 1217 for(int x =0;x<2;x++) {
1075 1218 for(int i = 0; i<objects.size();i++) {
... ...
src/main/java/com/bsth/service/impl/StationServiceImpl.java
... ... @@ -843,6 +843,9 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
843 843 Integer destroy = map.get("destroy").equals("") ? null : Integer.parseInt(map.get("destroy").toString());
844 844 // 版本
845 845 Integer versions = map.get("versions").equals("") ? null : Integer.parseInt(map.get("versions").toString());
  846 +
  847 + String stationNameEn = map.get("stationNameEn").equals("") ? null : map.get("stationNameEn").toString();
  848 +
846 849 // 说明
847 850 String descriptions = map.get("descriptions").equals("") ? "" : map.get("descriptions").toString();
848 851 // 站点编码
... ... @@ -935,6 +938,7 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
935 938 arg0.setLine(resultLine);
936 939 arg0.setLineCode(resultLine.getLineCode());
937 940 arg0.setIndustryCode(industryCode);
  941 + arg0.setStationNameEn(stationNameEn);
938 942 // 站点
939 943 arg0.setStation(station);
940 944 // 站点路由名称
... ... @@ -968,6 +972,7 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
968 972 Double toTime = map.get("toTime").equals("") ? 0.0d : Double.parseDouble(map.get("toTime").toString());
969 973 // 站点路由名称
970 974 String stationName = map.get("stationName").equals("") ? "" : map.get("stationName").toString();
  975 + arg0.setStationNameEn(stationNameEn);
971 976 // 线路ID
972 977 int line = map.get("lineId").equals("") ? 0 : Integer.parseInt(map.get("lineId").toString());
973 978 // 线路信息
... ... @@ -1210,6 +1215,8 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
1210 1215 String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString();
1211 1216 // 站点名称
1212 1217 String stationRouteName = map.get("stationName").equals("") ? "" : map.get("stationName").toString();
  1218 + // 站点名称
  1219 + String stationNameEn = map.get("stationNameEn").equals("") ? "" : map.get("stationNameEn").toString();
1213 1220 // 所在道路编码
1214 1221 String roadCoding = map.get("roadCoding").equals("") ? "" : map.get("roadCoding").toString();
1215 1222 // 经纬坐标类型
... ... @@ -1307,6 +1314,7 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
1307 1314  
1308 1315 StationRoute stationRoute = new StationRoute();
1309 1316 stationRoute.setStationName(stationRouteName);
  1317 + stationRoute.setStationNameEn(stationNameEn);
1310 1318 stationRoute.setId(stationRouteId);
1311 1319 stationRoute.setStationRouteCode(stationRouteCode);
1312 1320 stationRoute.setStation(station);
... ... @@ -1345,6 +1353,7 @@ public class StationServiceImpl extends BaseServiceImpl&lt;Station, Integer&gt; implem
1345 1353  
1346 1354 LsStationRoute stationRoute = new LsStationRoute();
1347 1355 stationRoute.setStationName(stationRouteName);
  1356 + stationRoute.setStationNameEn(stationNameEn);
1348 1357 stationRoute.setId(stationRouteId);
1349 1358 stationRoute.setStationRouteCode(stationRouteCode);
1350 1359 stationRoute.setStation(station);
... ...
src/main/resources/static/pages/base/line/add.html
1   -<!-- 片段标题 START -->
2   -<div class="page-head">
3   - <div class="page-title">
4   - <h1>添加线路</h1>
5   - </div>
6   -</div>
7   -<!-- 片段标题 END -->
8   -
9   -<!-- 线路信息导航栏组件 START -->
10   -<ul class="page-breadcrumb breadcrumb">
11   - <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
12   - <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
13   - <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
14   - <li><span class="active">添加线路</span></li>
15   -</ul>
16   -<!-- 线路信息导航栏组件 END -->
17   -
18   -<!-- 信息容器组件 START -->
19   -<div class="portlet light bordered">
20   -
21   - <!-- 信息容器组件标题 START -->
22   - <div class="portlet-title">
23   - <div class="caption">
24   - <i class="icon-equalizer font-red-sunglo"></i>
25   - <span class="caption-subject font-red-sunglo bold uppercase">添加线路</span>
26   - </div>
27   - </div>
28   - <!-- 信息容器组件标题 END -->
29   -
30   - <!-- 表单容器组件 START -->
31   - <div class="portlet-body form">
32   -
33   - <!-- line_add_form FORM START -->
34   - <form action="/line" class="form-horizontal" id="line_add_form">
35   -
36   - <!-- 表单验证错误提示组件 START -->
37   - <div class="alert alert-danger display-hide">
38   - <button class="close" data-close="alert"></button>
39   - 您的输入有误,请检查下面的输入项
40   - </div>
41   - <!-- 表单验证错误提示组件 END -->
42   -
43   - <!-- 表单字段内容 START -->
44   - <div class="form-body">
45   -
46   - <!-- 表单分组组件 form-group START -->
47   - <div class="form-group">
48   - <!-- 线路编码 (* 必填项) START -->
49   - <div class="col-md-6">
50   - <label class="control-label col-md-5">
51   - <span class="required"> * </span>线路编码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
52   - </label>
53   - <div class="col-md-4">
54   - <input type="text" class="form-control" name="lineCode" id="lineCodeInput"
55   - placeholder="线路编码">
56   - </div>
57   - </div>
58   - <!-- 线路编码 (* 必填项) END -->
59   -
60   - <!-- 线路名称 (* 必填项) START -->
61   - <div class="col-md-6">
62   - <label class="control-label col-md-5">
63   - <span class="required"> * </span>线路名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
64   - </label>
65   - <div class="col-md-4">
66   - <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称"/>
67   - <span class="help-block"> 例如 :浦东88路 </span>
68   - </div>
69   - </div>
70   - <!-- 线路名称 (* 必填项) END -->
71   - </div>
72   -
73   - <!-- 表单分组组件 form-group START -->
74   - <div class="form-group">
75   - <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
76   - <div class="col-md-6">
77   - <label class="control-label col-md-5">
78   - <span class="required"> * </span>所属公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
79   - </label>
80   - <div class="col-md-4">
81   - <select name="company" class="form-control" id="companySelect"></select>
82   - </div>
83   - </div>
84   - <!-- 所属公司 END -->
85   -
86   - <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
87   - <div class="col-md-6">
88   - <label class="control-label col-md-5">
89   - <span class="required"> * </span>所属分公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
90   - </label>
91   - <div class="col-md-4">
92   - <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
93   - </div>
94   - </div>
95   - <!-- 所属分公司 END -->
96   - </div>
97   - <!-- 表单分组组件 form-group END -->
98   -
99   - <!-- 表单分组组件 form-group START -->
100   - <div class="form-group">
101   - <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
102   - <div class="col-md-6">
103   - <label class="control-label col-md-5">
104   - <span class="required"> * </span>线路等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
105   - </label>
106   - <div class="col-md-4">
107   - <select name="level" class="form-control" id="levelSelect">
108   - <option value="">-- 请选择线路等级 --</option>
109   - <option value="1">一级线路</option>
110   - <option value="2">二级线路</option>
111   - <option value="0">未知等级</option>
112   - </select>
113   - </div>
114   - </div>
115   - <!-- 线路等级 END -->
116   -
117   - <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
118   - <div class="col-md-6">
119   - <label class="control-label col-md-5">
120   - <span class="required"> * </span>线路性质&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
121   - </label>
122   - <div class="col-md-4">
123   - <select name="nature" class="form-control" id="natureSelect">
124   - <option value="">-- 请选择线路性质 --</option>
125   - <option value="lj">路救</option>
126   - <option value="bc">备车</option>
127   - <option value="dbc">定班车</option>
128   - <option value="yxl">夜宵路</option>
129   - <option value="cgxl">常规线路</option>
130   - <option value="gjxl">过江线路</option>
131   - <option value="csbs">穿梭巴士</option>
132   - <option value="tyxl">特约线路</option>
133   - <option value="cctxl">村村通线路</option>
134   - <option value="hlwgj">互联网公交</option>
135   - <option value="qt">其他</option>
136   - </select>
137   - </div>
138   - </div>
139   - <!-- 线路性质 END -->
140   - </div>
141   - <!-- 表单分组组件 form-group END -->
142   -
143   - <!-- 表单分组组件 form-group START -->
144   - <div class="form-group">
145   - <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
146   - <div class="col-md-6">
147   - <label class="control-label col-md-5">
148   - <span class="required"> * </span>是否宵夜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
149   - </label>
150   - <div class="col-md-4">
151   - <div class="md-radio-inline">
152   - <div class="md-radio">
153   - <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1"
154   - data-title="是">
155   - <label for="radio16">
156   - <span></span>
157   - <span class="check"></span>
158   - <span class="box"></span> 是
159   - </label>
160   - </div>
161   - <div class="md-radio has-error">
162   - <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0"
163   - data-title="否" checked="checked">
164   - <label for="radio17" style="color:#FFC0CB">
165   - <span></span>
166   - <span class="check"></span>
167   - <span class="box"></span> 否
168   - </label>
169   - </div>
170   - </div>
171   - </div>
172   - </div>
173   - <!-- 是否宵夜 END -->
174   -
175   - <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
176   - <div class="col-md-6">
177   - <label class="control-label col-md-5">
178   - <span class="required"> * </span>是否撤销&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
179   - </label>
180   - <div class="col-md-4">
181   - <div class="md-radio-inline">
182   - <div class="md-radio">
183   - <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn"
184   - value="1">
185   - <label for="radio14">
186   - <span></span>
187   - <span class="check"></span>
188   - <span class="box"></span> 是
189   - </label>
190   - </div>
191   - <div class="md-radio has-error">
192   - <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否"
193   - value="0" checked="checked">
194   - <label for="radio15" style="color:#FFC0CB">
195   - <span></span>
196   - <span class="check"></span>
197   - <span class="box"></span> 否
198   - </label>
199   - </div>
200   - </div>
201   - </div>
202   - </div>
203   - <!-- 是否撤销 START -->
204   - </div>
205   - <!-- 表单分组组件 form-group END -->
206   -
207   - <!-- 表单分组组件 form-group START -->
208   - <div class="form-group">
209   - <!-- 是否营运START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
210   - <div class="col-md-6">
211   - <label class="control-label col-md-5">
212   - <span class="required"> * </span>是否营运线路&nbsp;&nbsp;&nbsp;&nbsp;:
213   - </label>
214   - <div class="col-md-4">
215   - <div class="md-radio-inline">
216   - <div class="md-radio">
217   - <input type="radio" id="radio18" name="sfyy" class="md-radiobtn" value="1"
218   - data-title="是" checked="checked">
219   - <label for="radio18">
220   - <span></span>
221   - <span class="check"></span>
222   - <span class="box"></span> 是
223   - </label>
224   - </div>
225   - <div class="md-radio has-error">
226   - <input type="radio" id="radio19" name="sfyy" class="md-radiobtn" value="0"
227   - data-title="否">
228   - <label for="radio19" style="color:#FFC0CB">
229   - <span></span>
230   - <span class="check"></span>
231   - <span class="box"></span> 否
232   - </label>
233   - </div>
234   - </div>
235   - </div>
236   - </div>
237   - <!-- 是否营运 END -->
238   - <!-- 权证车辆数 START -->
239   - <div class="col-md-6">
240   - <label class="control-label col-md-5">
241   - 权证车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
242   - <div class="col-md-4">
243   - <input type="text" class="form-control" name="warrantCar" id="warrantCarInput"
244   - placeholder="权证车辆数">
245   - </div>
246   - </div>
247   - <!-- 权证车辆数 END -->
248   -
249   - </div>
250   - <!-- 表单分组组件 form-group END -->
251   -
252   - <!-- 表单分组组件 form-group START -->
253   - <div class="form-group">
254   - <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
255   - <div class="col-md-6">
256   - <label class="control-label col-md-5"><span class="required"> * </span>
257   - 起始站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
258   - </label>
259   - <div class="col-md-4">
260   - <input type="text" class="form-control" name="startStationName" id="startStationNameInput"
261   - placeholder="起始站名称">
262   - <span class="help-block"> 说明 :上行起始站名称 </span>
263   - </div>
264   - </div>
265   - <!-- 起始站名称 END -->
266   -
267   - <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
268   - <div class="col-md-6">
269   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
270   - </label>
271   - <div class="col-md-4">
272   - <input type="text" class="form-control" name="endStationName" id="endStationNameInput"
273   - placeholder="终点站名称">
274   - <span class="help-block"> 说明 :上行终点站名称 </span>
275   - </div>
276   - </div>
277   - <!-- 终点站名称 END -->
278   - </div>
279   - <!-- 表单分组组件 form-group END -->
280   -
281   - <!-- 表单分组组件 form-group START -->
282   - <div class="form-group">
283   - <!-- 起始站首班车时间 (* 必填项) START -->
284   - <div class="col-md-6">
285   - <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
286   - <div class="col-md-4">
287   - <input type="text" class="form-control" name="startStationFirstTime"
288   - id="startStationFirstTimeInput" placeholder="起始站首班车时间">
289   - <span class="help-block"> 例如 :06:00 </span>
290   - </div>
291   - </div>
292   - <!-- 起始站首班车时间 END -->
293   -
294   - <!-- 起始站末班车时间 (* 必填项) START -->
295   - <div class="col-md-6">
296   - <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
297   - <div class="col-md-4">
298   - <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
299   - <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput"
300   - placeholder="起始站末班车时间">
301   - <span class="help-block"> 例如 :17:00 </span>
302   - </div>
303   - </div>
304   - <!-- 起始站末班车时间 END -->
305   - </div>
306   - <!-- 表单分组组件 form-group END -->
307   -
308   - <!-- 表单分组组件 form-group START -->
309   - <div class="form-group">
310   - <!-- 终点站首班车时间 (* 必填项) START -->
311   - <div class="col-md-6">
312   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
313   - <div class="col-md-4">
314   - <input type="text" class="form-control" name="endStationFirstTime"
315   - id="endStationFirstTimeInput" placeholder="终点站首班车时间">
316   - <span class="help-block"> 例如 :05:00 </span>
317   - </div>
318   - </div>
319   - <!-- 终点站首班车时间 END -->
320   -
321   - <!-- 终点站末班车时间 (* 必填项) START -->
322   - <div class="col-md-6">
323   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
324   - <div class="col-md-4">
325   - <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput"
326   - placeholder="终点站末班车时间 ">
327   - <span class="help-block"> 例如 :18:00 </span>
328   - </div>
329   - </div>
330   - <!-- 终点站末班车时间 END -->
331   - </div>
332   - <!-- 表单分组组件 form-group END -->
333   -
334   - <!-- 表单分组组件 form-group START -->
335   - <div class="form-group">
336   - <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
337   - <div class="col-md-6">
338   - <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型&nbsp;&nbsp;&nbsp;:</label>
339   - <div class="col-md-4">
340   - <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
341   - <!--<option value="">&#45;&#45; 请选择线路类型 &#45;&#45;</option>-->
342   - <option value="0">双向(包括双环线)</option>
343   - <option value="1">单环线</option>
344   - </select>
345   - </div>
346   - </div>
347   - <!-- 线路规划类型 (* 必填项) END -->
348   -
349   - <!--车辆区域 START -->
350   - <div class="col-md-6">
351   - <label class="control-label col-md-5"> <span class="required"> * </span>线路区域&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
352   - </label>
353   - <div class="col-md-4">
354   - <select name="region" class="form-control" id="regionSelect">
355   - <!--<option value="">&#45;&#45; 请选择车辆区域 &#45;&#45;</option>-->
356   - <option value="0">区内</option>
357   - <option value="1">区外</option>
358   - </select>
359   - </div>
360   - </div>
361   - <!--车辆区域END -->
362   -
363   - </div>
364   - <!-- 表单分组组件 form-group START -->
365   -
366   -
367   - <div class="form-group">
368   - <!--大间隔等级 START -->
369   - <div class="col-md-6">
370   - <label class="control-label col-md-5"> 大间隔等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
371   - <div class="col-md-4">
372   - <select name="spacGrade" class="form-control" id="spacGradeSelect">
373   - <option value="">-- 请选择大间隔等级 --</option>
374   - <option value="1">一级</option>
375   - <option value="2">二级</option>
376   - <option value="3">三级</option>
377   - <option value="4">四级</option>
378   - <option value="5">五级</option>
379   - </select>
380   - </div>
381   - </div>
382   - <!-- 大间隔等级END -->
383   - </div>
384   -
385   - <!-- 表单分组组件 form-group START -->
386   - <div class="form-group">
387   - <!-- 线路简称 START -->
388   - <div class="col-md-6">
389   - <label class="control-label col-md-5"> 线路简称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
390   - <div class="col-md-4">
391   - <input type="text" class="form-control" name="shortName" id="shortNameInput"
392   - placeholder="线路简称">
393   - </div>
394   - </div>
395   - <!-- 线路简称 END -->
396   -
397   - <!-- 英文名称 START -->
398   - <div class="col-md-6">
399   - <label class="control-label col-md-5"> 英文名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
400   - <div class="col-md-4">
401   - <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
402   - </div>
403   - </div>
404   - <!-- 英文名称 END -->
405   - </div>
406   - <!-- 表单分组组件 form-group END -->
407   -
408   - <!-- 表单分组组件 form-group START -->
409   - <div class="form-group">
410   - <!-- 上海市线路编码 START -->
411   - <div class="col-md-6">
412   - <label class="control-label col-md-5"> 上海市线路编码: </label>
413   - <div class="col-md-4">
414   - <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput"
415   - placeholder="上海市线路编码">
416   - </div>
417   - </div>
418   - <!-- 上海市线路编码 END -->
419   -
420   - <!--设备线路编码 START -->
421   - <div class="col-md-6">
422   - <label class="control-label col-md-5"> 设备线路编码&nbsp;&nbsp;&nbsp;: </label>
423   - <div class="col-md-4">
424   - <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput"
425   - placeholder="设备线路编码">
426   - </div>
427   - </div>
428   - <!--设备线路编码 END -->
429   - </div>
430   - <!-- 表单分组组件 form-group END -->
431   -
432   - <!-- 表单分组组件 form-group START -->
433   - <div class="form-group">
434   - <!-- 起始站调度电话 START -->
435   - <div class="col-md-6">
436   - <label class="control-label col-md-5"> 起始站调度电话: </label>
437   - <div class="col-md-4">
438   - <input type="text" class="form-control" name="startPhone" id="startPhoneInput"
439   - placeholder="起始站调度电话">
440   - </div>
441   - </div>
442   - <!-- 起始站调度电话 END -->
443   -
444   - <!-- 终点站调度电话 START -->
445   - <div class="col-md-6">
446   - <label class="control-label col-md-5"> 终点站调度电话: </label>
447   - <div class="col-md-4">
448   - <input type="text" class="form-control" name="endPhone" id="startPhoneInput"
449   - placeholder="终点站调度电话">
450   - </div>
451   - </div>
452   - <!-- 终点站调度电话 START -->
453   - </div>
454   - <!-- 表单分组组件 form-group END -->
455   -
456   - <!-- 表单分组组件 form-group START -->
457   - <div class="form-group">
458   - <!-- 车辆总数 START -->
459   - <div class="col-md-6">
460   - <label class="control-label col-md-5"> 车辆总数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
461   - <div class="col-md-4">
462   - <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput"
463   - placeholder="车辆总数">
464   - </div>
465   - </div>
466   - <!-- 车辆总数 END -->
467   -
468   - <!-- 普通车辆数 START -->
469   - <div class="col-md-6">
470   - <label class="control-label col-md-5"> 普通车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
471   - <div class="col-md-4">
472   - <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput"
473   - placeholder="普通车辆数">
474   - </div>
475   - </div>
476   - <!-- 普通车辆数 END -->
477   - </div>
478   - <!-- 表单分组组件 form-group END -->
479   -
480   - <!-- 表单分组组件 form-group START -->
481   - <div class="form-group">
482   - <!-- 空调车辆数 START -->
483   - <div class="col-md-6">
484   - <label class="control-label col-md-5"> 空调车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
485   - <div class="col-md-4">
486   - <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput"
487   - placeholder="空调车辆数">
488   - </div>
489   - </div>
490   - <!-- 空调车辆数 END -->
491   -
492   - <!-- 开辟日期 START -->
493   - <div class="col-md-6">
494   - <label class="control-label col-md-5"> 开辟日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
495   - <div class="col-md-4">
496   - <input type="text" class="form-control" name="openDate" id="openDateInput"
497   - placeholder="开辟日期">
498   - </div>
499   - </div>
500   - <!-- 开辟日期 END -->
501   - </div>
502   - <!-- 表单分组组件 form-group END -->
503   -
504   - <!-- 表单分组组件 form-group START -->
505   - <div class="form-group">
506   - <!-- 线路沿革 START -->
507   - <div class="col-md-6">
508   - <label class="control-label col-md-5"> 线路沿革&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
509   - <div class="col-md-4">
510   - <textarea class="form-control" rows="3" name="history" id="historyTextarea"
511   - placeholder="线路沿革"></textarea>
512   - <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
513   - </div>
514   - </div>
515   - <!-- 线路沿革 END -->
516   -
517   - <!-- 描述/说明 START -->
518   - <div class="col-md-6">
519   - <label class="control-label col-md-5"> 描述/说明&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
520   - <div class="col-md-4">
521   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea"
522   - placeholder="描述/说明"></textarea>
523   - </div>
524   - </div>
525   - <!-- 描述/说明 END -->
526   - </div>
527   - <!-- 表单分组组件 form-group END -->
528   - </div>
529   - <!-- 表单字段内容 END -->
530   -
531   - <!-- 表单按钮组件 START -->
532   - <div class="form-actions">
533   - <div class="row">
534   - <div class="col-md-offset-5 col-md-7">
535   - <button type="submit" class="btn green" id="submintBtn"><i class="fa fa-check"></i> 提交</button>
536   - <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i>
537   - 取消</a>
538   - </div>
539   - </div>
540   - </div>
541   - <!-- 表单按钮组件 END -->
542   -
543   - </form>
544   - <!-- line_add_form FORM END -->
545   -
546   - </div>
547   - <!-- 表单组件 END -->
548   -
549   -</div>
550   -<!-- 信息容器组件 END -->
551   -
552   -<!-- 线路信息添加片段JS模块 -->
  1 +<!-- 片段标题 START -->
  2 +<div class="page-head">
  3 + <div class="page-title">
  4 + <h1>添加线路</h1>
  5 + </div>
  6 +</div>
  7 +<!-- 片段标题 END -->
  8 +
  9 +<!-- 线路信息导航栏组件 START -->
  10 +<ul class="page-breadcrumb breadcrumb">
  11 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  12 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  13 + <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">添加线路</span></li>
  15 +</ul>
  16 +<!-- 线路信息导航栏组件 END -->
  17 +
  18 +<!-- 信息容器组件 START -->
  19 +<div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
  22 + <div class="portlet-title">
  23 + <div class="caption">
  24 + <i class="icon-equalizer font-red-sunglo"></i>
  25 + <span class="caption-subject font-red-sunglo bold uppercase">添加线路</span>
  26 + </div>
  27 + </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
  31 + <div class="portlet-body form">
  32 +
  33 + <!-- line_add_form FORM START -->
  34 + <form action="/line" class="form-horizontal" id="line_add_form">
  35 +
  36 + <!-- 表单验证错误提示组件 START -->
  37 + <div class="alert alert-danger display-hide">
  38 + <button class="close" data-close="alert"></button>
  39 + 您的输入有误,请检查下面的输入项
  40 + </div>
  41 + <!-- 表单验证错误提示组件 END -->
  42 +
  43 + <!-- 表单字段内容 START -->
  44 + <div class="form-body">
  45 +
  46 + <!-- 表单分组组件 form-group START -->
  47 + <div class="form-group">
  48 + <!-- 线路编码 (* 必填项) START -->
  49 + <div class="col-md-6">
  50 + <label class="control-label col-md-5">
  51 + <span class="required"> * </span>线路编码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  52 + </label>
  53 + <div class="col-md-4">
  54 + <input type="text" class="form-control" name="lineCode" id="lineCodeInput"
  55 + placeholder="线路编码">
  56 + </div>
  57 + </div>
  58 + <!-- 线路编码 (* 必填项) END -->
  59 +
  60 + <!-- 线路名称 (* 必填项) START -->
  61 + <div class="col-md-6">
  62 + <label class="control-label col-md-5">
  63 + <span class="required"> * </span>线路名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  64 + </label>
  65 + <div class="col-md-4">
  66 + <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称"/>
  67 + <span class="help-block"> 例如 :浦东88路 </span>
  68 + </div>
  69 + </div>
  70 + <!-- 线路名称 (* 必填项) END -->
  71 + </div>
  72 +
  73 + <!-- 表单分组组件 form-group START -->
  74 + <div class="form-group">
  75 + <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  76 + <div class="col-md-6">
  77 + <label class="control-label col-md-5">
  78 + <span class="required"> * </span>所属公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  79 + </label>
  80 + <div class="col-md-4">
  81 + <select name="company" class="form-control" id="companySelect"></select>
  82 + </div>
  83 + </div>
  84 + <!-- 所属公司 END -->
  85 +
  86 + <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  87 + <div class="col-md-6">
  88 + <label class="control-label col-md-5">
  89 + <span class="required"> * </span>所属分公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  90 + </label>
  91 + <div class="col-md-4">
  92 + <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
  93 + </div>
  94 + </div>
  95 + <!-- 所属分公司 END -->
  96 + </div>
  97 + <!-- 表单分组组件 form-group END -->
  98 +
  99 + <!-- 表单分组组件 form-group START -->
  100 + <div class="form-group">
  101 + <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  102 + <div class="col-md-6">
  103 + <label class="control-label col-md-5">
  104 + <span class="required"> * </span>线路等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  105 + </label>
  106 + <div class="col-md-4">
  107 + <select name="level" class="form-control" id="levelSelect">
  108 + <option value="">-- 请选择线路等级 --</option>
  109 + <option value="1">一级线路</option>
  110 + <option value="2">二级线路</option>
  111 + <option value="0">未知等级</option>
  112 + </select>
  113 + </div>
  114 + </div>
  115 + <!-- 线路等级 END -->
  116 +
  117 + <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  118 + <div class="col-md-6">
  119 + <label class="control-label col-md-5">
  120 + <span class="required"> * </span>线路性质&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  121 + </label>
  122 + <div class="col-md-4">
  123 + <select name="nature" class="form-control" id="natureSelect">
  124 + <option value="">-- 请选择线路性质 --</option>
  125 + <option value="lj">路救</option>
  126 + <option value="bc">备车</option>
  127 + <option value="dbc">定班车</option>
  128 + <option value="yxl">夜宵路</option>
  129 + <option value="cgxl">常规线路</option>
  130 + <option value="gjxl">过江线路</option>
  131 + <option value="csbs">穿梭巴士</option>
  132 + <option value="tyxl">特约线路</option>
  133 + <option value="cctxl">村村通线路</option>
  134 + <option value="hlwgj">互联网公交</option>
  135 + <option value="qt">其他</option>
  136 + </select>
  137 + </div>
  138 + </div>
  139 + <!-- 线路性质 END -->
  140 + </div>
  141 + <!-- 表单分组组件 form-group END -->
  142 +
  143 + <!-- 表单分组组件 form-group START -->
  144 + <div class="form-group">
  145 + <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  146 + <div class="col-md-6">
  147 + <label class="control-label col-md-5">
  148 + <span class="required"> * </span>是否宵夜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  149 + </label>
  150 + <div class="col-md-4">
  151 + <div class="md-radio-inline">
  152 + <div class="md-radio">
  153 + <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1"
  154 + data-title="是">
  155 + <label for="radio16">
  156 + <span></span>
  157 + <span class="check"></span>
  158 + <span class="box"></span> 是
  159 + </label>
  160 + </div>
  161 + <div class="md-radio has-error">
  162 + <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0"
  163 + data-title="否" checked="checked">
  164 + <label for="radio17" style="color:#FFC0CB">
  165 + <span></span>
  166 + <span class="check"></span>
  167 + <span class="box"></span> 否
  168 + </label>
  169 + </div>
  170 + </div>
  171 + </div>
  172 + </div>
  173 + <!-- 是否宵夜 END -->
  174 +
  175 + <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  176 + <div class="col-md-6">
  177 + <label class="control-label col-md-5">
  178 + <span class="required"> * </span>是否撤销&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  179 + </label>
  180 + <div class="col-md-4">
  181 + <div class="md-radio-inline">
  182 + <div class="md-radio">
  183 + <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn"
  184 + value="1">
  185 + <label for="radio14">
  186 + <span></span>
  187 + <span class="check"></span>
  188 + <span class="box"></span> 是
  189 + </label>
  190 + </div>
  191 + <div class="md-radio has-error">
  192 + <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否"
  193 + value="0" checked="checked">
  194 + <label for="radio15" style="color:#FFC0CB">
  195 + <span></span>
  196 + <span class="check"></span>
  197 + <span class="box"></span> 否
  198 + </label>
  199 + </div>
  200 + </div>
  201 + </div>
  202 + </div>
  203 + <!-- 是否撤销 START -->
  204 + </div>
  205 + <!-- 表单分组组件 form-group END -->
  206 +
  207 + <!-- 表单分组组件 form-group START -->
  208 + <div class="form-group">
  209 + <!-- 是否营运START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  210 + <div class="col-md-6">
  211 + <label class="control-label col-md-5">
  212 + <span class="required"> * </span>是否营运线路&nbsp;&nbsp;&nbsp;&nbsp;:
  213 + </label>
  214 + <div class="col-md-4">
  215 + <div class="md-radio-inline">
  216 + <div class="md-radio">
  217 + <input type="radio" id="radio18" name="sfyy" class="md-radiobtn" value="1"
  218 + data-title="是" checked="checked">
  219 + <label for="radio18">
  220 + <span></span>
  221 + <span class="check"></span>
  222 + <span class="box"></span> 是
  223 + </label>
  224 + </div>
  225 + <div class="md-radio has-error">
  226 + <input type="radio" id="radio19" name="sfyy" class="md-radiobtn" value="0"
  227 + data-title="否">
  228 + <label for="radio19" style="color:#FFC0CB">
  229 + <span></span>
  230 + <span class="check"></span>
  231 + <span class="box"></span> 否
  232 + </label>
  233 + </div>
  234 + </div>
  235 + </div>
  236 + </div>
  237 + <!-- 是否营运 END -->
  238 + <!-- 权证车辆数 START -->
  239 + <div class="col-md-6">
  240 + <label class="control-label col-md-5">
  241 + 权证车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  242 + <div class="col-md-4">
  243 + <input type="text" class="form-control" name="warrantCar" id="warrantCarInput"
  244 + placeholder="权证车辆数">
  245 + </div>
  246 + </div>
  247 + <!-- 权证车辆数 END -->
  248 +
  249 + </div>
  250 + <!-- 表单分组组件 form-group END -->
  251 +
  252 + <!-- 表单分组组件 form-group START -->
  253 + <div class="form-group">
  254 + <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
  255 + <div class="col-md-6">
  256 + <label class="control-label col-md-5"><span class="required"> * </span>
  257 + 起始站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  258 + </label>
  259 + <div class="col-md-4">
  260 + <input type="text" class="form-control" name="startStationName" id="startStationNameInput"
  261 + placeholder="起始站名称">
  262 + <span class="help-block"> 说明 :上行起始站名称 </span>
  263 + </div>
  264 + </div>
  265 + <!-- 起始站名称 END -->
  266 +
  267 + <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
  268 + <div class="col-md-6">
  269 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  270 + </label>
  271 + <div class="col-md-4">
  272 + <input type="text" class="form-control" name="endStationName" id="endStationNameInput"
  273 + placeholder="终点站名称">
  274 + <span class="help-block"> 说明 :上行终点站名称 </span>
  275 + </div>
  276 + </div>
  277 + <!-- 终点站名称 END -->
  278 + </div>
  279 + <!-- 表单分组组件 form-group END -->
  280 +
  281 + <!-- 表单分组组件 form-group START -->
  282 + <div class="form-group">
  283 + <!-- 起始站首班车时间 (* 必填项) START -->
  284 + <div class="col-md-6">
  285 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
  286 + <div class="col-md-4">
  287 + <input type="text" class="form-control" name="startStationFirstTime"
  288 + id="startStationFirstTimeInput" placeholder="起始站首班车时间">
  289 + <span class="help-block"> 例如 :06:00 </span>
  290 + </div>
  291 + </div>
  292 + <!-- 起始站首班车时间 END -->
  293 +
  294 + <!-- 起始站末班车时间 (* 必填项) START -->
  295 + <div class="col-md-6">
  296 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
  297 + <div class="col-md-4">
  298 + <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
  299 + <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput"
  300 + placeholder="起始站末班车时间">
  301 + <span class="help-block"> 例如 :17:00 </span>
  302 + </div>
  303 + </div>
  304 + <!-- 起始站末班车时间 END -->
  305 + </div>
  306 + <!-- 表单分组组件 form-group END -->
  307 +
  308 + <!-- 表单分组组件 form-group START -->
  309 + <div class="form-group">
  310 + <!-- 终点站首班车时间 (* 必填项) START -->
  311 + <div class="col-md-6">
  312 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
  313 + <div class="col-md-4">
  314 + <input type="text" class="form-control" name="endStationFirstTime"
  315 + id="endStationFirstTimeInput" placeholder="终点站首班车时间">
  316 + <span class="help-block"> 例如 :05:00 </span>
  317 + </div>
  318 + </div>
  319 + <!-- 终点站首班车时间 END -->
  320 +
  321 + <!-- 终点站末班车时间 (* 必填项) START -->
  322 + <div class="col-md-6">
  323 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
  324 + <div class="col-md-4">
  325 + <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput"
  326 + placeholder="终点站末班车时间 ">
  327 + <span class="help-block"> 例如 :18:00 </span>
  328 + </div>
  329 + </div>
  330 + <!-- 终点站末班车时间 END -->
  331 + </div>
  332 + <!-- 表单分组组件 form-group END -->
  333 +
  334 + <!-- 表单分组组件 form-group START -->
  335 + <div class="form-group">
  336 + <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  337 + <div class="col-md-6">
  338 + <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型&nbsp;&nbsp;&nbsp;:</label>
  339 + <div class="col-md-4">
  340 + <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
  341 + <!--<option value="">&#45;&#45; 请选择线路类型 &#45;&#45;</option>-->
  342 + <option value="0">双向(包括双环线)</option>
  343 + <option value="1">单环线</option>
  344 + </select>
  345 + </div>
  346 + </div>
  347 + <!-- 线路规划类型 (* 必填项) END -->
  348 +
  349 + <!--车辆区域 START -->
  350 + <div class="col-md-6">
  351 + <label class="control-label col-md-5"> <span class="required"> * </span>线路区域&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  352 + </label>
  353 + <div class="col-md-4">
  354 + <select name="region" class="form-control" id="regionSelect">
  355 + <!--<option value="">&#45;&#45; 请选择车辆区域 &#45;&#45;</option>-->
  356 + <option value="0">区内</option>
  357 + <option value="1">区外</option>
  358 + </select>
  359 + </div>
  360 + </div>
  361 + <!--车辆区域END -->
  362 +
  363 + </div>
  364 + <!-- 表单分组组件 form-group START -->
  365 +
  366 +
  367 + <div class="form-group">
  368 + <!--大间隔等级 START -->
  369 + <div class="col-md-6">
  370 + <label class="control-label col-md-5"> 大间隔等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  371 + <div class="col-md-4">
  372 + <select name="spacGrade" class="form-control" id="spacGradeSelect">
  373 + <option value="">-- 请选择大间隔等级 --</option>
  374 + <option value="1">一级</option>
  375 + <option value="2">二级</option>
  376 + <option value="3">三级</option>
  377 + <option value="4">四级</option>
  378 + <option value="5">五级</option>
  379 + </select>
  380 + </div>
  381 + </div>
  382 + <!-- 大间隔等级END -->
  383 +
  384 + <!-- 线路票价 START -->
  385 + <div class="col-md-6">
  386 + <label class="control-label col-md-5"> 票价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
  387 + <div class="col-md-4">
  388 + <input type="text" class="form-control" name="ticketPrice" id="ticketPriceInput"
  389 + placeholder="票价">
  390 + </div>
  391 + </div>
  392 +
  393 + <!-- 线路简称 END -->
  394 + </div>
  395 +
  396 + <!-- 表单分组组件 form-group START -->
  397 + <div class="form-group">
  398 + <!-- 线路简称 START -->
  399 + <div class="col-md-6">
  400 + <label class="control-label col-md-5"> 线路简称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
  401 + <div class="col-md-4">
  402 + <input type="text" class="form-control" name="shortName" id="shortNameInput"
  403 + placeholder="线路简称">
  404 + </div>
  405 + </div>
  406 + <!-- 线路简称 END -->
  407 +
  408 + <!-- 英文名称 START -->
  409 + <div class="col-md-6">
  410 + <label class="control-label col-md-5"> 英文名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  411 + <div class="col-md-4">
  412 + <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
  413 + </div>
  414 + </div>
  415 + <!-- 英文名称 END -->
  416 + </div>
  417 + <!-- 表单分组组件 form-group END -->
  418 +
  419 + <!-- 表单分组组件 form-group START -->
  420 + <div class="form-group">
  421 + <!-- 上海市线路编码 START -->
  422 + <div class="col-md-6">
  423 + <label class="control-label col-md-5"> 上海市线路编码: </label>
  424 + <div class="col-md-4">
  425 + <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput"
  426 + placeholder="上海市线路编码">
  427 + </div>
  428 + </div>
  429 + <!-- 上海市线路编码 END -->
  430 +
  431 + <!--设备线路编码 START -->
  432 + <div class="col-md-6">
  433 + <label class="control-label col-md-5"> 设备线路编码&nbsp;&nbsp;&nbsp;: </label>
  434 + <div class="col-md-4">
  435 + <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput"
  436 + placeholder="设备线路编码">
  437 + </div>
  438 + </div>
  439 + <!--设备线路编码 END -->
  440 + </div>
  441 + <!-- 表单分组组件 form-group END -->
  442 +
  443 + <!-- 表单分组组件 form-group START -->
  444 + <div class="form-group">
  445 + <!-- 起始站调度电话 START -->
  446 + <div class="col-md-6">
  447 + <label class="control-label col-md-5"> 起始站调度电话: </label>
  448 + <div class="col-md-4">
  449 + <input type="text" class="form-control" name="startPhone" id="startPhoneInput"
  450 + placeholder="起始站调度电话">
  451 + </div>
  452 + </div>
  453 + <!-- 起始站调度电话 END -->
  454 +
  455 + <!-- 终点站调度电话 START -->
  456 + <div class="col-md-6">
  457 + <label class="control-label col-md-5"> 终点站调度电话: </label>
  458 + <div class="col-md-4">
  459 + <input type="text" class="form-control" name="endPhone" id="startPhoneInput"
  460 + placeholder="终点站调度电话">
  461 + </div>
  462 + </div>
  463 + <!-- 终点站调度电话 START -->
  464 + </div>
  465 + <!-- 表单分组组件 form-group END -->
  466 +
  467 + <!-- 表单分组组件 form-group START -->
  468 + <div class="form-group">
  469 + <!-- 车辆总数 START -->
  470 + <div class="col-md-6">
  471 + <label class="control-label col-md-5"> 车辆总数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  472 + <div class="col-md-4">
  473 + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput"
  474 + placeholder="车辆总数">
  475 + </div>
  476 + </div>
  477 + <!-- 车辆总数 END -->
  478 +
  479 + <!-- 普通车辆数 START -->
  480 + <div class="col-md-6">
  481 + <label class="control-label col-md-5"> 普通车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  482 + <div class="col-md-4">
  483 + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput"
  484 + placeholder="普通车辆数">
  485 + </div>
  486 + </div>
  487 + <!-- 普通车辆数 END -->
  488 + </div>
  489 + <!-- 表单分组组件 form-group END -->
  490 +
  491 + <!-- 表单分组组件 form-group START -->
  492 + <div class="form-group">
  493 + <!-- 空调车辆数 START -->
  494 + <div class="col-md-6">
  495 + <label class="control-label col-md-5"> 空调车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  496 + <div class="col-md-4">
  497 + <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput"
  498 + placeholder="空调车辆数">
  499 + </div>
  500 + </div>
  501 + <!-- 空调车辆数 END -->
  502 +
  503 + <!-- 开辟日期 START -->
  504 + <div class="col-md-6">
  505 + <label class="control-label col-md-5"> 开辟日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  506 + <div class="col-md-4">
  507 + <input type="text" class="form-control" name="openDate" id="openDateInput"
  508 + placeholder="开辟日期">
  509 + </div>
  510 + </div>
  511 + <!-- 开辟日期 END -->
  512 + </div>
  513 + <!-- 表单分组组件 form-group END -->
  514 +
  515 + <!-- 表单分组组件 form-group START -->
  516 + <div class="form-group">
  517 + <!-- 线路沿革 START -->
  518 + <div class="col-md-6">
  519 + <label class="control-label col-md-5"> 线路沿革&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  520 + <div class="col-md-4">
  521 + <textarea class="form-control" rows="3" name="history" id="historyTextarea"
  522 + placeholder="线路沿革"></textarea>
  523 + <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
  524 + </div>
  525 + </div>
  526 + <!-- 线路沿革 END -->
  527 +
  528 + <!-- 描述/说明 START -->
  529 + <div class="col-md-6">
  530 + <label class="control-label col-md-5"> 描述/说明&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  531 + <div class="col-md-4">
  532 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea"
  533 + placeholder="描述/说明"></textarea>
  534 + </div>
  535 + </div>
  536 + <!-- 描述/说明 END -->
  537 + </div>
  538 + <!-- 表单分组组件 form-group END -->
  539 + </div>
  540 + <!-- 表单字段内容 END -->
  541 +
  542 + <!-- 表单按钮组件 START -->
  543 + <div class="form-actions">
  544 + <div class="row">
  545 + <div class="col-md-offset-5 col-md-7">
  546 + <button type="submit" class="btn green" id="submintBtn"><i class="fa fa-check"></i> 提交</button>
  547 + <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i>
  548 + 取消</a>
  549 + </div>
  550 + </div>
  551 + </div>
  552 + <!-- 表单按钮组件 END -->
  553 +
  554 + </form>
  555 + <!-- line_add_form FORM END -->
  556 +
  557 + </div>
  558 + <!-- 表单组件 END -->
  559 +
  560 +</div>
  561 +<!-- 信息容器组件 END -->
  562 +
  563 +<!-- 线路信息添加片段JS模块 -->
553 564 <script src="/pages/base/line/js/line-add-form.js"></script>
554 565 \ No newline at end of file
... ...
src/main/resources/static/pages/base/line/edit.html
1   -<!-- 片段标题 START -->
2   -<div class="page-head">
3   - <div class="page-title">
4   - <h1>修改线路信息</h1>
5   - </div>
6   -</div>
7   -<!-- 片段标题 END -->
8   -
9   -<!-- 线路信息导航栏组件 START -->
10   -<ul class="page-breadcrumb breadcrumb">
11   - <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
12   - <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
13   - <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
14   - <li><span class="active">修改线路信息</span></li>
15   -</ul>
16   -<!-- 线路信息导航栏组件 END -->
17   -
18   -<!-- 信息容器组件 START -->
19   -<div class="portlet light bordered">
20   -
21   - <!-- 信息容器组件标题 START -->
22   - <div class="portlet-title">
23   - <div class="caption">
24   - <i class="icon-equalizer font-red-sunglo"></i>
25   - <span class="caption-subject font-red-sunglo bold uppercase">修改线路信息</span>
26   - </div>
27   - </div>
28   - <!-- 信息容器组件标题 END -->
29   -
30   - <!-- 表单容器组件 START -->
31   - <div class="portlet-body form" id="lineEditForm">
32   -
33   - <!-- START FORM -->
34   - <form action="/" class="form-horizontal" id="line_edit_form" >
35   -
36   - <!-- 错误提示信息组件 START -->
37   - <div class="alert alert-danger display-hide">
38   - <button class="close" data-close="alert"></button>
39   - 您的输入有误,请检查下面的输入项
40   - </div>
41   - <!-- 错误提示信息组件 END -->
42   -
43   - <!-- 表单内容 START -->
44   -
45   -
46   - <!-- 表单内容 -->
47   - <div class="form-body">
48   -
49   - <!-- 表单分组组件 form-group START -->
50   - <div class="form-group">
51   - <input type="hidden" name="id" id="lineId">
52   - <!-- in_use字段 START -->
53   - <input type="hidden" name="inUse" id="inUseInput" placeholder="隐藏字段" readonly="readonly">
54   - <!-- in_use字段 END -->
55   - <!-- 线路编码 (* 必填项) START -->
56   - <div class="col-md-6">
57   - <label class="control-label col-md-5">
58   - <span class="required"> * </span>线路编码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
59   - </label>
60   - <div class="col-md-4">
61   - <input type="text" class="form-control" name="lineCode" id="lineCodeInput"
62   - placeholder="线路编码" readonly="readonly">
63   - </div>
64   - </div>
65   - <!-- 线路编码 (* 必填项) END -->
66   -
67   - <!-- 线路名称 (* 必填项) START -->
68   - <div class="col-md-6">
69   - <label class="control-label col-md-5">
70   - <span class="required"> * </span>线路名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
71   - </label>
72   - <div class="col-md-4">
73   - <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称"/>
74   - <span class="help-block"> 例如 :浦东88路 </span>
75   - </div>
76   - </div>
77   - <!-- 线路名称 (* 必填项) END -->
78   - </div>
79   - <!-- 表单分组组件 form-group END -->
80   -
81   - <!-- 表单分组组件 form-group START -->
82   - <div class="form-group">
83   - <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
84   - <div class="col-md-6">
85   - <label class="control-label col-md-5">
86   - <span class="required"> * </span>所属公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
87   - </label>
88   - <div class="col-md-4">
89   - <select name="company" class="form-control" id="companySelect"></select>
90   - </div>
91   - </div>
92   - <!-- 所属公司 END -->
93   -
94   - <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
95   - <div class="col-md-6">
96   - <label class="control-label col-md-5">
97   - <span class="required"> * </span>所属分公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
98   - </label>
99   - <div class="col-md-4">
100   - <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
101   - </div>
102   - </div>
103   - <!-- 所属分公司 END -->
104   - </div>
105   - <!-- 表单分组组件 form-group END -->
106   -
107   - <!-- 表单分组组件 form-group START -->
108   - <div class="form-group">
109   - <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
110   - <div class="col-md-6">
111   - <label class="control-label col-md-5">
112   - <span class="required"> * </span>线路等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
113   - </label>
114   - <div class="col-md-4">
115   - <select name="level" class="form-control" id="levelSelect">
116   - <option value="">-- 请选择线路等级 --</option>
117   - <option value="1">一级线路</option>
118   - <option value="2">二级线路</option>
119   - <option value="0">未知等级</option>
120   - </select>
121   - </div>
122   - </div>
123   - <!-- 线路等级 END -->
124   -
125   - <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
126   - <div class="col-md-6">
127   - <label class="control-label col-md-5">
128   - <span class="required"> * </span>线路性质&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
129   - </label>
130   - <div class="col-md-4">
131   - <select name="nature" class="form-control" id="natureSelect">
132   - <option value="">-- 请选择线路性质 --</option>
133   - <option value="lj">路救</option>
134   - <option value="bc">备车</option>
135   - <option value="dbc">定班车</option>
136   - <option value="yxl">夜宵路</option>
137   - <option value="cgxl">常规线路</option>
138   - <option value="gjxl">过江线路</option>
139   - <option value="csbs">穿梭巴士</option>
140   - <option value="tyxl">特约线路</option>
141   - <option value="cctxl">村村通线路</option>
142   - <option value="hlwgj">互联网公交</option>
143   - <option value="qt">其他</option>
144   - </select>
145   - </div>
146   - </div>
147   - <!-- 线路性质 END -->
148   - </div>
149   - <!-- 表单分组组件 form-group END -->
150   -
151   - <!-- 表单分组组件 form-group START -->
152   - <div class="form-group">
153   - <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
154   - <div class="col-md-6">
155   - <label class="control-label col-md-5">
156   - <span class="required"> * </span>是否宵夜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
157   - </label>
158   - <div class="col-md-4">
159   - <div class="md-radio-inline">
160   - <div class="md-radio">
161   - <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1"
162   - data-title="是">
163   - <label for="radio16">
164   - <span></span>
165   - <span class="check"></span>
166   - <span class="box"></span> 是
167   - </label>
168   - </div>
169   - <div class="md-radio has-error">
170   - <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0"
171   - data-title="否" checked="checked">
172   - <label for="radio17" style="color:#FFC0CB">
173   - <span></span>
174   - <span class="check"></span>
175   - <span class="box"></span> 否
176   - </label>
177   - </div>
178   - </div>
179   - </div>
180   - </div>
181   - <!-- 是否宵夜 END -->
182   -
183   - <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
184   - <div class="col-md-6">
185   - <label class="control-label col-md-5">
186   - <span class="required"> * </span>是否撤销&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
187   - </label>
188   - <div class="col-md-4">
189   - <div class="md-radio-inline">
190   - <div class="md-radio">
191   - <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn"
192   - value="1">
193   - <label for="radio14">
194   - <span></span>
195   - <span class="check"></span>
196   - <span class="box"></span> 是
197   - </label>
198   - </div>
199   - <div class="md-radio has-error">
200   - <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否"
201   - value="0" checked="checked">
202   - <label for="radio15" style="color:#FFC0CB">
203   - <span></span>
204   - <span class="check"></span>
205   - <span class="box"></span> 否
206   - </label>
207   - </div>
208   - </div>
209   - </div>
210   - </div>
211   - <!-- 是否撤销 START -->
212   - </div>
213   - <!-- 表单分组组件 form-group END -->
214   -
215   - <!-- 表单分组组件 form-group START -->
216   - <div class="form-group">
217   - <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
218   - <div class="col-md-6">
219   - <label class="control-label col-md-5"><span class="required"> * </span>
220   - 起始站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
221   - </label>
222   - <div class="col-md-4">
223   - <input type="text" class="form-control" name="startStationName" id="startStationNameInput"
224   - placeholder="起始站名称">
225   - <span class="help-block"> 说明 :上行起始站名称 </span>
226   - </div>
227   - </div>
228   - <!-- 起始站名称 END -->
229   -
230   - <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
231   - <div class="col-md-6">
232   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
233   - </label>
234   - <div class="col-md-4">
235   - <input type="text" class="form-control" name="endStationName" id="endStationNameInput"
236   - placeholder="终点站名称">
237   - <span class="help-block"> 说明 :上行终点站名称 </span>
238   - </div>
239   - </div>
240   - <!-- 终点站名称 END -->
241   - </div>
242   - <!-- 表单分组组件 form-group END -->
243   -
244   - <!-- 表单分组组件 form-group START -->
245   - <div class="form-group">
246   - <!-- 起始站首班车时间 (* 必填项) START -->
247   - <div class="col-md-6">
248   - <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
249   - <div class="col-md-4">
250   - <input type="text" class="form-control" name="startStationFirstTime"
251   - id="startStationFirstTimeInput" placeholder="起始站首班车时间">
252   - <span class="help-block"> 例如 :06:00 </span>
253   - </div>
254   - </div>
255   - <!-- 起始站首班车时间 END -->
256   -
257   - <!-- 起始站末班车时间 (* 必填项) START -->
258   - <div class="col-md-6">
259   - <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
260   - <div class="col-md-4">
261   - <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
262   - <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput"
263   - placeholder="起始站末班车时间">
264   - <span class="help-block"> 例如 :17:00 </span>
265   - </div>
266   - </div>
267   - <!-- 起始站末班车时间 END -->
268   - </div>
269   - <!-- 表单分组组件 form-group END -->
270   -
271   - <!-- 表单分组组件 form-group START -->
272   - <div class="form-group">
273   - <!-- 终点站首班车时间 (* 必填项) START -->
274   - <div class="col-md-6">
275   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
276   - <div class="col-md-4">
277   - <input type="text" class="form-control" name="endStationFirstTime"
278   - id="endStationFirstTimeInput" placeholder="终点站首班车时间">
279   - <span class="help-block"> 例如 :05:00 </span>
280   - </div>
281   - </div>
282   - <!-- 终点站首班车时间 END -->
283   -
284   - <!-- 终点站末班车时间 (* 必填项) START -->
285   - <div class="col-md-6">
286   - <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
287   - <div class="col-md-4">
288   - <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput"
289   - placeholder="终点站末班车时间 ">
290   - <span class="help-block"> 例如 :18:00 </span>
291   - </div>
292   - </div>
293   - <!-- 终点站末班车时间 END -->
294   - </div>
295   - <!-- 表单分组组件 form-group END -->
296   -
297   - <!-- 表单分组组件 form-group START -->
298   - <div class="form-group">
299   - <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
300   - <div class="col-md-6">
301   - <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型&nbsp;&nbsp;&nbsp;:</label>
302   - <div class="col-md-4">
303   - <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
304   - <option value="">-- 请选择线路类型 --</option>
305   - <option value="0">双向(包括双环线)</option>
306   - <option value="1">单环线</option>
307   - </select>
308   - </div>
309   - </div>
310   - <!-- 线路规划类型 (* 必填项) END -->
311   -
312   - <!--车辆区域 START -->
313   - <div class="col-md-6">
314   - <label class="control-label col-md-5"> <span class="required"> * </span>线路区域&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
315   - </label>
316   - <div class="col-md-4">
317   - <select name="region" class="form-control" id="regionSelect">
318   - <option value="">-- 请选择车辆区域 --</option>
319   - <option value="0">区内</option>
320   - <option value="1">区外</option>
321   - </select>
322   - </div>
323   - </div>
324   - <!--车辆区域END -->
325   -
326   - </div>
327   - <!-- 表单分组组件 form-group START -->
328   -
329   - <!-- 表单分组组件 form-group START -->
330   - <div class="form-group">
331   - <!--大间隔等级 START -->
332   - <div class="col-md-6">
333   - <label class="control-label col-md-5"> 大间隔等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
334   - <div class="col-md-4">
335   - <select name="spacGrade" class="form-control" id="spacGradeSelect">
336   - <option value="">-- 请选择大间隔等级 --</option>
337   - <option value="1">一级</option>
338   - <option value="2">二级</option>
339   - <option value="3">三级</option>
340   - <option value="4">四级</option>
341   - <option value="5">五级</option>
342   - </select>
343   - </div>
344   - </div>
345   - <!-- 大间隔等级END -->
346   - <!-- 权证车辆数 START -->
347   - <div class="col-md-6">
348   - <label class="control-label col-md-5"> 权证车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
349   - <div class="col-md-4">
350   - <input type="text" class="form-control" name="warrantCar" id="warrantCarInput"
351   - placeholder="权证车辆数">
352   - </div>
353   - </div>
354   - <!-- 权证车辆数 END -->
355   - </div>
356   -
357   - <!-- 表单分组组件 form-group START -->
358   - <div class="form-group">
359   - <!-- 线路简称 START -->
360   - <div class="col-md-6">
361   - <label class="control-label col-md-5"> 线路简称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
362   - <div class="col-md-4">
363   - <input type="text" class="form-control" name="shortName" id="shortNameInput"
364   - placeholder="线路简称">
365   - </div>
366   - </div>
367   - <!-- 线路简称 END -->
368   -
369   - <!-- 英文名称 START -->
370   - <div class="col-md-6">
371   - <label class="control-label col-md-5"> 英文名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
372   - <div class="col-md-4">
373   - <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
374   - </div>
375   - </div>
376   - <!-- 英文名称 END -->
377   - </div>
378   - <!-- 表单分组组件 form-group END -->
379   -
380   - <!-- 表单分组组件 form-group START -->
381   - <div class="form-group">
382   - <!-- 上海市线路编码 START -->
383   - <div class="col-md-6">
384   - <label class="control-label col-md-5"> 上海市线路编码: </label>
385   - <div class="col-md-4">
386   - <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput"
387   - placeholder="上海市线路编码">
388   - </div>
389   - </div>
390   - <!-- 上海市线路编码 END -->
391   -
392   - <!--设备线路编码 START -->
393   - <div class="col-md-6">
394   - <label class="control-label col-md-5"> 设备线路编码&nbsp;&nbsp;&nbsp;: </label>
395   - <div class="col-md-4">
396   - <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput"
397   - placeholder="设备线路编码">
398   - </div>
399   - </div>
400   - <!--设备线路编码 END -->
401   - </div>
402   - <!-- 表单分组组件 form-group END -->
403   -
404   - <!-- 表单分组组件 form-group START -->
405   - <div class="form-group">
406   - <!-- 起始站调度电话 START -->
407   - <div class="col-md-6">
408   - <label class="control-label col-md-5"> 起始站调度电话: </label>
409   - <div class="col-md-4">
410   - <input type="text" class="form-control" name="startPhone" id="startPhoneInput"
411   - placeholder="起始站调度电话">
412   - </div>
413   - </div>
414   - <!-- 起始站调度电话 END -->
415   -
416   - <!-- 终点站调度电话 START -->
417   - <div class="col-md-6">
418   - <label class="control-label col-md-5"> 终点站调度电话: </label>
419   - <div class="col-md-4">
420   - <input type="text" class="form-control" name="endPhone" id="startPhoneInput"
421   - placeholder="终点站调度电话">
422   - </div>
423   - </div>
424   - <!-- 终点站调度电话 START -->
425   - </div>
426   - <!-- 表单分组组件 form-group END -->
427   -
428   - <!-- 表单分组组件 form-group START -->
429   - <div class="form-group">
430   - <!-- 车辆总数 START -->
431   - <div class="col-md-6">
432   - <label class="control-label col-md-5"> 车辆总数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
433   - <div class="col-md-4">
434   - <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput"
435   - placeholder="车辆总数">
436   - </div>
437   - </div>
438   - <!-- 车辆总数 END -->
439   -
440   - <!-- 普通车辆数 START -->
441   - <div class="col-md-6">
442   - <label class="control-label col-md-5"> 普通车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
443   - <div class="col-md-4">
444   - <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput"
445   - placeholder="普通车辆数">
446   - </div>
447   - </div>
448   - <!-- 普通车辆数 END -->
449   - </div>
450   - <!-- 表单分组组件 form-group END -->
451   -
452   - <!-- 表单分组组件 form-group START -->
453   - <div class="form-group">
454   - <!-- 空调车辆数 START -->
455   - <div class="col-md-6">
456   - <label class="control-label col-md-5"> 空调车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
457   - <div class="col-md-4">
458   - <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput"
459   - placeholder="空调车辆数">
460   - </div>
461   - </div>
462   - <!-- 空调车辆数 END -->
463   - <!-- 开辟日期 START -->
464   - <div class="col-md-6">
465   - <label class="control-label col-md-5"> 开辟日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
466   - <div class="col-md-4">
467   - <input type="text" class="form-control" name="openDate" id="openDateInput"
468   - placeholder="开辟日期">
469   - </div>
470   - </div>
471   - <!-- 开辟日期 END -->
472   - </div>
473   - <!-- 表单分组组件 form-group END -->
474   - <!-- 表单分组组件 form-group START -->
475   - <div class="form-group">
476   - <!-- 线路沿革 START -->
477   - <div class="col-md-6">
478   - <label class="control-label col-md-5"> 线路沿革&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
479   - <div class="col-md-4">
480   - <textarea class="form-control" rows="3" name="history" id="historyTextarea"
481   - placeholder="线路沿革"></textarea>
482   - <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
483   - </div>
484   - </div>
485   - <!-- 线路沿革 END -->
486   -
487   - <!-- 描述/说明 START -->
488   - <div class="col-md-6">
489   - <label class="control-label col-md-5"> 描述/说明&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
490   - <div class="col-md-4">
491   - <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea"
492   - placeholder="描述/说明"></textarea>
493   - </div>
494   - </div>
495   - <!-- 描述/说明 END -->
496   - </div>
497   - <!-- 表单分组组件 form-group END -->
498   - </div>
499   -
500   - <!-- 表单按钮组件 START -->
501   - <div class="form-actions">
502   - <div class="row">
503   - <div class="col-md-offset-5 col-md-7">
504   - <button type="submit" class="btn green" ><i class="fa fa-check"></i> 提交</button>
505   - <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i> 取消</a>
506   - </div>
507   - </div>
508   - </div>
509   - <!-- 表单按钮组件 END -->
510   - </form>
511   - <!-- END FORM-->
512   - </div>
513   - <!-- 表单组件 END -->
514   -</div>
515   -<!-- 信息容器组件 END -->
516   -
517   -<!-- 线路信息修改片段JS模块 -->
  1 +<!-- 片段标题 START -->
  2 +<div class="page-head">
  3 + <div class="page-title">
  4 + <h1>修改线路信息</h1>
  5 + </div>
  6 +</div>
  7 +<!-- 片段标题 END -->
  8 +
  9 +<!-- 线路信息导航栏组件 START -->
  10 +<ul class="page-breadcrumb breadcrumb">
  11 + <li><a href="/pages/home.html" data-pjax>首页</a> <i class="fa fa-circle"></i></li>
  12 + <li><span class="active">基础信息</span> <i class="fa fa-circle"></i></li>
  13 + <li><a href="/pages/base/line/list.html" data-pjax>线路信息</a> <i class="fa fa-circle"></i></li>
  14 + <li><span class="active">修改线路信息</span></li>
  15 +</ul>
  16 +<!-- 线路信息导航栏组件 END -->
  17 +
  18 +<!-- 信息容器组件 START -->
  19 +<div class="portlet light bordered">
  20 +
  21 + <!-- 信息容器组件标题 START -->
  22 + <div class="portlet-title">
  23 + <div class="caption">
  24 + <i class="icon-equalizer font-red-sunglo"></i>
  25 + <span class="caption-subject font-red-sunglo bold uppercase">修改线路信息</span>
  26 + </div>
  27 + </div>
  28 + <!-- 信息容器组件标题 END -->
  29 +
  30 + <!-- 表单容器组件 START -->
  31 + <div class="portlet-body form" id="lineEditForm">
  32 +
  33 + <!-- START FORM -->
  34 + <form action="/" class="form-horizontal" id="line_edit_form" >
  35 +
  36 + <!-- 错误提示信息组件 START -->
  37 + <div class="alert alert-danger display-hide">
  38 + <button class="close" data-close="alert"></button>
  39 + 您的输入有误,请检查下面的输入项
  40 + </div>
  41 + <!-- 错误提示信息组件 END -->
  42 +
  43 + <!-- 表单内容 START -->
  44 +
  45 +
  46 + <!-- 表单内容 -->
  47 + <div class="form-body">
  48 +
  49 + <!-- 表单分组组件 form-group START -->
  50 + <div class="form-group">
  51 + <input type="hidden" name="id" id="lineId">
  52 + <!-- in_use字段 START -->
  53 + <input type="hidden" name="inUse" id="inUseInput" placeholder="隐藏字段" readonly="readonly">
  54 + <!-- in_use字段 END -->
  55 + <!-- 线路编码 (* 必填项) START -->
  56 + <div class="col-md-6">
  57 + <label class="control-label col-md-5">
  58 + <span class="required"> * </span>线路编码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  59 + </label>
  60 + <div class="col-md-4">
  61 + <input type="text" class="form-control" name="lineCode" id="lineCodeInput"
  62 + placeholder="线路编码" readonly="readonly">
  63 + </div>
  64 + </div>
  65 + <!-- 线路编码 (* 必填项) END -->
  66 +
  67 + <!-- 线路名称 (* 必填项) START -->
  68 + <div class="col-md-6">
  69 + <label class="control-label col-md-5">
  70 + <span class="required"> * </span>线路名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  71 + </label>
  72 + <div class="col-md-4">
  73 + <input type="text" class="form-control" name="name" id="nameInput" placeholder="线路名称"/>
  74 + <span class="help-block"> 例如 :浦东88路 </span>
  75 + </div>
  76 + </div>
  77 + <!-- 线路名称 (* 必填项) END -->
  78 + </div>
  79 + <!-- 表单分组组件 form-group END -->
  80 +
  81 + <!-- 表单分组组件 form-group START -->
  82 + <div class="form-group">
  83 + <!-- 所属公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  84 + <div class="col-md-6">
  85 + <label class="control-label col-md-5">
  86 + <span class="required"> * </span>所属公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  87 + </label>
  88 + <div class="col-md-4">
  89 + <select name="company" class="form-control" id="companySelect"></select>
  90 + </div>
  91 + </div>
  92 + <!-- 所属公司 END -->
  93 +
  94 + <!-- 所属分公司 START 在片段线路添加JS模块里初始化select(options值查询的公司表) -->
  95 + <div class="col-md-6">
  96 + <label class="control-label col-md-5">
  97 + <span class="required"> * </span>所属分公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  98 + </label>
  99 + <div class="col-md-4">
  100 + <select name="brancheCompany" class="form-control" id="brancheCompanySelect"></select>
  101 + </div>
  102 + </div>
  103 + <!-- 所属分公司 END -->
  104 + </div>
  105 + <!-- 表单分组组件 form-group END -->
  106 +
  107 + <!-- 表单分组组件 form-group START -->
  108 + <div class="form-group">
  109 + <!-- 线路等级 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  110 + <div class="col-md-6">
  111 + <label class="control-label col-md-5">
  112 + <span class="required"> * </span>线路等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  113 + </label>
  114 + <div class="col-md-4">
  115 + <select name="level" class="form-control" id="levelSelect">
  116 + <option value="">-- 请选择线路等级 --</option>
  117 + <option value="1">一级线路</option>
  118 + <option value="2">二级线路</option>
  119 + <option value="0">未知等级</option>
  120 + </select>
  121 + </div>
  122 + </div>
  123 + <!-- 线路等级 END -->
  124 +
  125 + <!-- 线路性质 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  126 + <div class="col-md-6">
  127 + <label class="control-label col-md-5">
  128 + <span class="required"> * </span>线路性质&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  129 + </label>
  130 + <div class="col-md-4">
  131 + <select name="nature" class="form-control" id="natureSelect">
  132 + <option value="">-- 请选择线路性质 --</option>
  133 + <option value="lj">路救</option>
  134 + <option value="bc">备车</option>
  135 + <option value="dbc">定班车</option>
  136 + <option value="yxl">夜宵路</option>
  137 + <option value="cgxl">常规线路</option>
  138 + <option value="gjxl">过江线路</option>
  139 + <option value="csbs">穿梭巴士</option>
  140 + <option value="tyxl">特约线路</option>
  141 + <option value="cctxl">村村通线路</option>
  142 + <option value="hlwgj">互联网公交</option>
  143 + <option value="qt">其他</option>
  144 + </select>
  145 + </div>
  146 + </div>
  147 + <!-- 线路性质 END -->
  148 + </div>
  149 + <!-- 表单分组组件 form-group END -->
  150 +
  151 + <!-- 表单分组组件 form-group START -->
  152 + <div class="form-group">
  153 + <!-- 是否宵夜 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  154 + <div class="col-md-6">
  155 + <label class="control-label col-md-5">
  156 + <span class="required"> * </span>是否宵夜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  157 + </label>
  158 + <div class="col-md-4">
  159 + <div class="md-radio-inline">
  160 + <div class="md-radio">
  161 + <input type="radio" id="radio16" name="supperLine" class="md-radiobtn" value="1"
  162 + data-title="是">
  163 + <label for="radio16">
  164 + <span></span>
  165 + <span class="check"></span>
  166 + <span class="box"></span> 是
  167 + </label>
  168 + </div>
  169 + <div class="md-radio has-error">
  170 + <input type="radio" id="radio17" name="supperLine" class="md-radiobtn" value="0"
  171 + data-title="否" checked="checked">
  172 + <label for="radio17" style="color:#FFC0CB">
  173 + <span></span>
  174 + <span class="check"></span>
  175 + <span class="box"></span> 否
  176 + </label>
  177 + </div>
  178 + </div>
  179 + </div>
  180 + </div>
  181 + <!-- 是否宵夜 END -->
  182 +
  183 + <!-- 是否撤销 START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  184 + <div class="col-md-6">
  185 + <label class="control-label col-md-5">
  186 + <span class="required"> * </span>是否撤销&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  187 + </label>
  188 + <div class="col-md-4">
  189 + <div class="md-radio-inline">
  190 + <div class="md-radio">
  191 + <input type="radio" id="radio14" name="destroy" data-title="是" class="md-radiobtn"
  192 + value="1">
  193 + <label for="radio14">
  194 + <span></span>
  195 + <span class="check"></span>
  196 + <span class="box"></span> 是
  197 + </label>
  198 + </div>
  199 + <div class="md-radio has-error">
  200 + <input type="radio" id="radio15" name="destroy" class="md-radiobtn" data-title="否"
  201 + value="0" checked="checked">
  202 + <label for="radio15" style="color:#FFC0CB">
  203 + <span></span>
  204 + <span class="check"></span>
  205 + <span class="box"></span> 否
  206 + </label>
  207 + </div>
  208 + </div>
  209 + </div>
  210 + </div>
  211 + <!-- 是否撤销 START -->
  212 + </div>
  213 + <!-- 表单分组组件 form-group END -->
  214 +
  215 + <!-- 表单分组组件 form-group START -->
  216 + <div class="form-group">
  217 + <!-- 起始站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的起点站。默认使用该字段填写值) -->
  218 + <div class="col-md-6">
  219 + <label class="control-label col-md-5"><span class="required"> * </span>
  220 + 起始站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  221 + </label>
  222 + <div class="col-md-4">
  223 + <input type="text" class="form-control" name="startStationName" id="startStationNameInput"
  224 + placeholder="起始站名称">
  225 + <span class="help-block"> 说明 :上行起始站名称 </span>
  226 + </div>
  227 + </div>
  228 + <!-- 起始站名称 END -->
  229 +
  230 + <!-- 终点站名称 START (该字段值会在规划线路站点操作时会去验证是否有值。如果为空,则用线路规划站点的终点站。默认使用该字段填写值) -->
  231 + <div class="col-md-6">
  232 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  233 + </label>
  234 + <div class="col-md-4">
  235 + <input type="text" class="form-control" name="endStationName" id="endStationNameInput"
  236 + placeholder="终点站名称">
  237 + <span class="help-block"> 说明 :上行终点站名称 </span>
  238 + </div>
  239 + </div>
  240 + <!-- 终点站名称 END -->
  241 + </div>
  242 + <!-- 表单分组组件 form-group END -->
  243 +
  244 + <!-- 表单分组组件 form-group START -->
  245 + <div class="form-group">
  246 + <!-- 起始站首班车时间 (* 必填项) START -->
  247 + <div class="col-md-6">
  248 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站首班时间: </label>
  249 + <div class="col-md-4">
  250 + <input type="text" class="form-control" name="startStationFirstTime"
  251 + id="startStationFirstTimeInput" placeholder="起始站首班车时间">
  252 + <span class="help-block"> 例如 :06:00 </span>
  253 + </div>
  254 + </div>
  255 + <!-- 起始站首班车时间 END -->
  256 +
  257 + <!-- 起始站末班车时间 (* 必填项) START -->
  258 + <div class="col-md-6">
  259 + <label class="control-label col-md-5"><span class="required"> * </span> 起始站末班时间: </label>
  260 + <div class="col-md-4">
  261 + <!-- <input type="text" class="form-control" name="StartStationEndTime" id="StartStationEndTimeInput" placeholder="起始站末班车时间 "> -->
  262 + <input type="text" class="form-control" name="startStationEndTime" id="endTimeInput"
  263 + placeholder="起始站末班车时间">
  264 + <span class="help-block"> 例如 :17:00 </span>
  265 + </div>
  266 + </div>
  267 + <!-- 起始站末班车时间 END -->
  268 + </div>
  269 + <!-- 表单分组组件 form-group END -->
  270 +
  271 + <!-- 表单分组组件 form-group START -->
  272 + <div class="form-group">
  273 + <!-- 终点站首班车时间 (* 必填项) START -->
  274 + <div class="col-md-6">
  275 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站首班时间: </label>
  276 + <div class="col-md-4">
  277 + <input type="text" class="form-control" name="endStationFirstTime"
  278 + id="endStationFirstTimeInput" placeholder="终点站首班车时间">
  279 + <span class="help-block"> 例如 :05:00 </span>
  280 + </div>
  281 + </div>
  282 + <!-- 终点站首班车时间 END -->
  283 +
  284 + <!-- 终点站末班车时间 (* 必填项) START -->
  285 + <div class="col-md-6">
  286 + <label class="control-label col-md-5"><span class="required"> * </span> 终点站末班时间: </label>
  287 + <div class="col-md-4">
  288 + <input type="text" class="form-control" name="endStationEndTime" id="endStationEndTimeInput"
  289 + placeholder="终点站末班车时间 ">
  290 + <span class="help-block"> 例如 :18:00 </span>
  291 + </div>
  292 + </div>
  293 + <!-- 终点站末班车时间 END -->
  294 + </div>
  295 + <!-- 表单分组组件 form-group END -->
  296 +
  297 + <!-- 表单分组组件 form-group START -->
  298 + <div class="form-group">
  299 + <!-- 线路规划类型 (* 必填项) START (因为options值基本固定,所以在页面固定。【以后可以根具需求修改成使用字典表实现】) -->
  300 + <div class="col-md-6">
  301 + <label class="control-label col-md-5"><span class="required"> * </span> 线路规划类型&nbsp;&nbsp;&nbsp;:</label>
  302 + <div class="col-md-4">
  303 + <select name="linePlayType" class="form-control" id="linePlayTypeSelect">
  304 + <option value="">-- 请选择线路类型 --</option>
  305 + <option value="0">双向(包括双环线)</option>
  306 + <option value="1">单环线</option>
  307 + </select>
  308 + </div>
  309 + </div>
  310 + <!-- 线路规划类型 (* 必填项) END -->
  311 +
  312 + <!--车辆区域 START -->
  313 + <div class="col-md-6">
  314 + <label class="control-label col-md-5"> <span class="required"> * </span>线路区域&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:
  315 + </label>
  316 + <div class="col-md-4">
  317 + <select name="region" class="form-control" id="regionSelect">
  318 + <option value="">-- 请选择车辆区域 --</option>
  319 + <option value="0">区内</option>
  320 + <option value="1">区外</option>
  321 + </select>
  322 + </div>
  323 + </div>
  324 + <!--车辆区域END -->
  325 +
  326 + </div>
  327 + <!-- 表单分组组件 form-group START -->
  328 +
  329 + <!-- 表单分组组件 form-group START -->
  330 + <div class="form-group">
  331 + <!--大间隔等级 START -->
  332 + <div class="col-md-6">
  333 + <label class="control-label col-md-5"> 大间隔等级&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  334 + <div class="col-md-4">
  335 + <select name="spacGrade" class="form-control" id="spacGradeSelect">
  336 + <option value="">-- 请选择大间隔等级 --</option>
  337 + <option value="1">一级</option>
  338 + <option value="2">二级</option>
  339 + <option value="3">三级</option>
  340 + <option value="4">四级</option>
  341 + <option value="5">五级</option>
  342 + </select>
  343 + </div>
  344 + </div>
  345 + <!-- 大间隔等级END -->
  346 + <!-- 线路票价 START -->
  347 + <div class="col-md-6">
  348 + <label class="control-label col-md-5"> 票价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
  349 + <div class="col-md-4">
  350 + <input type="text" class="form-control" name="ticketPrice" id="ticketPriceInput"
  351 + placeholder="票价">
  352 + </div>
  353 + </div>
  354 + <!-- 线路简称 END -->
  355 + </div>
  356 +
  357 + <!-- 表单分组组件 form-group START -->
  358 + <div class="form-group">
  359 + <!-- 线路简称 START -->
  360 + <div class="col-md-6">
  361 + <label class="control-label col-md-5"> 线路简称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</label>
  362 + <div class="col-md-4">
  363 + <input type="text" class="form-control" name="shortName" id="shortNameInput"
  364 + placeholder="线路简称">
  365 + </div>
  366 + </div>
  367 + <!-- 线路简称 END -->
  368 +
  369 + <!-- 英文名称 START -->
  370 + <div class="col-md-6">
  371 + <label class="control-label col-md-5"> 英文名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  372 + <div class="col-md-4">
  373 + <input type="text" class="form-control" name="es" id="esInput" placeholder="英文名称">
  374 + </div>
  375 + </div>
  376 + <!-- 英文名称 END -->
  377 + </div>
  378 + <!-- 表单分组组件 form-group END -->
  379 +
  380 + <!-- 表单分组组件 form-group START -->
  381 + <div class="form-group">
  382 + <!-- 上海市线路编码 START -->
  383 + <div class="col-md-6">
  384 + <label class="control-label col-md-5"> 上海市线路编码: </label>
  385 + <div class="col-md-4">
  386 + <input type="text" class="form-control" name="shanghaiLinecode" id="shanghaiLinecodeInput"
  387 + placeholder="上海市线路编码">
  388 + </div>
  389 + </div>
  390 + <!-- 上海市线路编码 END -->
  391 +
  392 + <!--设备线路编码 START -->
  393 + <div class="col-md-6">
  394 + <label class="control-label col-md-5"> 设备线路编码&nbsp;&nbsp;&nbsp;: </label>
  395 + <div class="col-md-4">
  396 + <input type="text" class="form-control" name="eqLinecode" id="eqLinecodeInput"
  397 + placeholder="设备线路编码">
  398 + </div>
  399 + </div>
  400 + <!--设备线路编码 END -->
  401 + </div>
  402 + <!-- 表单分组组件 form-group END -->
  403 +
  404 + <!-- 表单分组组件 form-group START -->
  405 + <div class="form-group">
  406 + <!-- 起始站调度电话 START -->
  407 + <div class="col-md-6">
  408 + <label class="control-label col-md-5"> 起始站调度电话: </label>
  409 + <div class="col-md-4">
  410 + <input type="text" class="form-control" name="startPhone" id="startPhoneInput"
  411 + placeholder="起始站调度电话">
  412 + </div>
  413 + </div>
  414 + <!-- 起始站调度电话 END -->
  415 +
  416 + <!-- 终点站调度电话 START -->
  417 + <div class="col-md-6">
  418 + <label class="control-label col-md-5"> 终点站调度电话: </label>
  419 + <div class="col-md-4">
  420 + <input type="text" class="form-control" name="endPhone" id="startPhoneInput"
  421 + placeholder="终点站调度电话">
  422 + </div>
  423 + </div>
  424 + <!-- 终点站调度电话 START -->
  425 + </div>
  426 + <!-- 表单分组组件 form-group END -->
  427 +
  428 + <!-- 表单分组组件 form-group START -->
  429 + <div class="form-group">
  430 + <!-- 车辆总数 START -->
  431 + <div class="col-md-6">
  432 + <label class="control-label col-md-5"> 车辆总数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  433 + <div class="col-md-4">
  434 + <input type="text" class="form-control" name="carSumNumber" id="carSumNumberInput"
  435 + placeholder="车辆总数">
  436 + </div>
  437 + </div>
  438 + <!-- 车辆总数 END -->
  439 +
  440 + <!-- 普通车辆数 START -->
  441 + <div class="col-md-6">
  442 + <label class="control-label col-md-5"> 普通车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  443 + <div class="col-md-4">
  444 + <input type="text" class="form-control" name="ordCarNumber" id="ordCarNumberInput"
  445 + placeholder="普通车辆数">
  446 + </div>
  447 + </div>
  448 + <!-- 普通车辆数 END -->
  449 + </div>
  450 + <!-- 表单分组组件 form-group END -->
  451 + <div class="form-group">
  452 + <!-- 权证车辆数 START -->
  453 + <div class="col-md-6">
  454 + <label class="control-label col-md-5"> 权证车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  455 + <div class="col-md-4">
  456 + <input type="text" class="form-control" name="warrantCar" id="warrantCarInput"
  457 + placeholder="权证车辆数">
  458 + </div>
  459 + </div>
  460 + <!-- 权证车辆数 END -->
  461 + </div>
  462 + <!-- 表单分组组件 form-group START -->
  463 + <div class="form-group">
  464 + <!-- 空调车辆数 START -->
  465 + <div class="col-md-6">
  466 + <label class="control-label col-md-5"> 空调车辆数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  467 + <div class="col-md-4">
  468 + <input type="text" class="form-control" name="hvacCarNumber" id="hvacCarNumberInput"
  469 + placeholder="空调车辆数">
  470 + </div>
  471 + </div>
  472 + <!-- 空调车辆数 END -->
  473 + <!-- 开辟日期 START -->
  474 + <div class="col-md-6">
  475 + <label class="control-label col-md-5"> 开辟日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  476 + <div class="col-md-4">
  477 + <input type="text" class="form-control" name="openDate" id="openDateInput"
  478 + placeholder="开辟日期">
  479 + </div>
  480 + </div>
  481 + <!-- 开辟日期 END -->
  482 + </div>
  483 + <!-- 表单分组组件 form-group END -->
  484 + <!-- 表单分组组件 form-group START -->
  485 + <div class="form-group">
  486 + <!-- 线路沿革 START -->
  487 + <div class="col-md-6">
  488 + <label class="control-label col-md-5"> 线路沿革&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  489 + <div class="col-md-4">
  490 + <textarea class="form-control" rows="3" name="history" id="historyTextarea"
  491 + placeholder="线路沿革"></textarea>
  492 + <span class="help-block">日期及内容:如2014-1-1,开辟;2014-5-1,延线;</span>
  493 + </div>
  494 + </div>
  495 + <!-- 线路沿革 END -->
  496 +
  497 + <!-- 描述/说明 START -->
  498 + <div class="col-md-6">
  499 + <label class="control-label col-md-5"> 描述/说明&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </label>
  500 + <div class="col-md-4">
  501 + <textarea class="form-control" rows="3" name="descriptions" id="descriptionsTextarea"
  502 + placeholder="描述/说明"></textarea>
  503 + </div>
  504 + </div>
  505 + <!-- 描述/说明 END -->
  506 + </div>
  507 + <!-- 表单分组组件 form-group END -->
  508 + </div>
  509 +
  510 + <!-- 表单按钮组件 START -->
  511 + <div class="form-actions">
  512 + <div class="row">
  513 + <div class="col-md-offset-5 col-md-7">
  514 + <button type="submit" class="btn green" ><i class="fa fa-check"></i> 提交</button>
  515 + <a type="button" class="btn default" href="list.html" data-pjax><i class="fa fa-times"></i> 取消</a>
  516 + </div>
  517 + </div>
  518 + </div>
  519 + <!-- 表单按钮组件 END -->
  520 + </form>
  521 + <!-- END FORM-->
  522 + </div>
  523 + <!-- 表单组件 END -->
  524 +</div>
  525 +<!-- 信息容器组件 END -->
  526 +
  527 +<!-- 线路信息修改片段JS模块 -->
518 528 <script src="/pages/base/line/js/line-edit-form.js"></script>
519 529 \ No newline at end of file
... ...