Commit feaea495f9c2f94dd968be3e7abdc0543862b685
1 parent
57e2a2c8
Update
Showing
2 changed files
with
25 additions
and
5 deletions
Too many changes to show.
To preserve performance only 2 of 22 files are displayed.
src/main/java/com/bsth/service/schedule/datatools/TTInfoDetailDataToolsImpl.java
| @@ -271,7 +271,7 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | @@ -271,7 +271,7 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | ||
| 271 | for (int r = 1; r < sheet.getRows(); r++) { | 271 | for (int r = 1; r < sheet.getRows(); r++) { |
| 272 | List<FcInfo> fcInfos = new ArrayList<>(); | 272 | List<FcInfo> fcInfos = new ArrayList<>(); |
| 273 | // 每行第一列都是路牌 | 273 | // 每行第一列都是路牌 |
| 274 | - fcInfos.add(new FcInfo(null, null, sheet.getCell(0, r).getContents(), null, null, null, null)); // 用fcsj放置路牌显示 | 274 | + fcInfos.add(new FcInfo(null, null, sheet.getCell(0, r).getContents(), null, null, null, null, null)); // 用fcsj放置路牌显示 |
| 275 | 275 | ||
| 276 | int bc_ks = 0; // 空驶班次 | 276 | int bc_ks = 0; // 空驶班次 |
| 277 | int bc_yy = 0; // 营运班次 | 277 | int bc_yy = 0; // 营运班次 |
| @@ -294,7 +294,9 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | @@ -294,7 +294,9 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | ||
| 294 | String qdzCode = content == null ? "" : content[7]; // 起点站编码 | 294 | String qdzCode = content == null ? "" : content[7]; // 起点站编码 |
| 295 | String zdzCode = content == null ? "" : content[8]; // 终点站编码 | 295 | String zdzCode = content == null ? "" : content[8]; // 终点站编码 |
| 296 | 296 | ||
| 297 | - FcInfo fcInfo = new FcInfo(ttdid_str, bctype, fcsj, xldir, isfb, qdzCode, zdzCode); | 297 | + String ists = content == null ? "" : content[9]; // 是否停驶 |
| 298 | + | ||
| 299 | + FcInfo fcInfo = new FcInfo(ttdid_str, bctype, fcsj, xldir, isfb, qdzCode, zdzCode, ists); | ||
| 298 | 300 | ||
| 299 | if (StringUtils.isNotEmpty(fzdname)) | 301 | if (StringUtils.isNotEmpty(fzdname)) |
| 300 | headarrays[c] = fzdname; | 302 | headarrays[c] = fzdname; |
| @@ -328,10 +330,10 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | @@ -328,10 +330,10 @@ public class TTInfoDetailDataToolsImpl implements DataToolsService, TTInfoDetail | ||
| 328 | } | 330 | } |
| 329 | 331 | ||
| 330 | // 添加一列 空驶班次/空驶里程,fcsj放置数据 | 332 | // 添加一列 空驶班次/空驶里程,fcsj放置数据 |
| 331 | - fcInfos.add(new FcInfo(null, null, String.format("%d/%.3f", bc_ks, lc_ks), null, null, null, null)); | 333 | + fcInfos.add(new FcInfo(null, null, String.format("%d/%.3f", bc_ks, lc_ks), null, null, null, null, null)); |
| 332 | 334 | ||
| 333 | // 添加一列 营运班次/营运里程,fcsj放置数据 | 335 | // 添加一列 营运班次/营运里程,fcsj放置数据 |
| 334 | - fcInfos.add(new FcInfo(null, null, String.format("%d/%.3f", bc_yy, lc_yy), null, null, null, null)); | 336 | + fcInfos.add(new FcInfo(null, null, String.format("%d/%.3f", bc_yy, lc_yy), null, null, null, null, null)); |
| 335 | 337 | ||
| 336 | editInfo.getContents().add(fcInfos); | 338 | editInfo.getContents().add(fcInfos); |
| 337 | } | 339 | } |
src/main/java/com/bsth/service/schedule/datatools/TTInfoDetailForEdit.java
| @@ -29,6 +29,8 @@ public interface TTInfoDetailForEdit { | @@ -29,6 +29,8 @@ public interface TTInfoDetailForEdit { | ||
| 29 | private String qdzCode; | 29 | private String qdzCode; |
| 30 | /** 终点站code */ | 30 | /** 终点站code */ |
| 31 | private String zdzCode; | 31 | private String zdzCode; |
| 32 | + /** 是否停驶 */ | ||
| 33 | + private Boolean ists; | ||
| 32 | 34 | ||
| 33 | public FcInfo() { | 35 | public FcInfo() { |
| 34 | } | 36 | } |
| @@ -40,7 +42,8 @@ public interface TTInfoDetailForEdit { | @@ -40,7 +42,8 @@ public interface TTInfoDetailForEdit { | ||
| 40 | String xldir, | 42 | String xldir, |
| 41 | String isfb, | 43 | String isfb, |
| 42 | String qdzCode, | 44 | String qdzCode, |
| 43 | - String zdzCode) { | 45 | + String zdzCode, |
| 46 | + String ists) { | ||
| 44 | this.ttdid = StringUtils.isEmpty(ttdid_str) ? null : Long.valueOf(ttdid_str); | 47 | this.ttdid = StringUtils.isEmpty(ttdid_str) ? null : Long.valueOf(ttdid_str); |
| 45 | this.bc_type = bc_type; | 48 | this.bc_type = bc_type; |
| 46 | this.fcsj = fcsj; | 49 | this.fcsj = fcsj; |
| @@ -59,6 +62,13 @@ public interface TTInfoDetailForEdit { | @@ -59,6 +62,13 @@ public interface TTInfoDetailForEdit { | ||
| 59 | this.zdzCode = zdzCode; | 62 | this.zdzCode = zdzCode; |
| 60 | } | 63 | } |
| 61 | 64 | ||
| 65 | + if ("N".equals(ists)) | ||
| 66 | + this.ists = false; | ||
| 67 | + else if ("Y".equals(ists) || "true".equals(ists)) | ||
| 68 | + this.ists = true; | ||
| 69 | + else | ||
| 70 | + this.ists = false; | ||
| 71 | + | ||
| 62 | } | 72 | } |
| 63 | 73 | ||
| 64 | public Long getTtdid() { | 74 | public Long getTtdid() { |
| @@ -116,6 +126,14 @@ public interface TTInfoDetailForEdit { | @@ -116,6 +126,14 @@ public interface TTInfoDetailForEdit { | ||
| 116 | public void setZdzCode(String zdzCode) { | 126 | public void setZdzCode(String zdzCode) { |
| 117 | this.zdzCode = zdzCode; | 127 | this.zdzCode = zdzCode; |
| 118 | } | 128 | } |
| 129 | + | ||
| 130 | + public Boolean getIsts() { | ||
| 131 | + return ists; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public void setIsts(Boolean ists) { | ||
| 135 | + this.ists = ists; | ||
| 136 | + } | ||
| 119 | } | 137 | } |
| 120 | 138 | ||
| 121 | /** | 139 | /** |