Commit ec19ee5c9e58aa2d1db97f37ce948b6a45347d75
Merge branch 'minhang' of git@192.168.168.201:panzhaov5/bsth_control.git into minhang
Showing
17 changed files
with
1984 additions
and
1403 deletions
Too many changes to show.
To preserve performance only 17 of 36 files are displayed.
src/main/java/com/bsth/controller/forms/ExportController.java
| ... | ... | @@ -186,7 +186,7 @@ public class ExportController { |
| 186 | 186 | m.put("i", i); |
| 187 | 187 | m.put("rQ", l.getrQ()); |
| 188 | 188 | m.put("gS", l.getgS()); |
| 189 | - m.put("xL", l.getxL()); | |
| 189 | + m.put("xL", l.getXlmc()); | |
| 190 | 190 | m.put("clzbh", l.getClzbh()); |
| 191 | 191 | m.put("jsy", l.getJsy()); |
| 192 | 192 | m.put("jName", l.getjName()); | ... | ... |
src/main/java/com/bsth/controller/realcontrol/summary/FastAndSlowController.java
| 1 | -package com.bsth.controller.realcontrol.summary; | |
| 2 | - | |
| 3 | -import com.bsth.controller.BaseController; | |
| 4 | -import com.bsth.data.summary.entity.FastAndSlow; | |
| 5 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 6 | -import org.springframework.web.bind.annotation.RestController; | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * 快慢误点统计 | |
| 10 | - * Created by panzhao on 2017/10/24. | |
| 11 | - */ | |
| 12 | -@RestController | |
| 13 | -@RequestMapping("/summary/fastAndSlow") | |
| 14 | -public class FastAndSlowController extends BaseController<FastAndSlow, Long> { | |
| 15 | -} | |
| 1 | +package com.bsth.controller.realcontrol.summary; | |
| 2 | + | |
| 3 | +import com.bsth.controller.BaseController; | |
| 4 | +import com.bsth.data.summary.entity.FastAndSlow; | |
| 5 | +import com.bsth.data.summary.service.FastAndSlowService; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 9 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 10 | +import org.springframework.web.bind.annotation.RestController; | |
| 11 | + | |
| 12 | +import javax.servlet.http.HttpServletRequest; | |
| 13 | +import javax.servlet.http.HttpServletResponse; | |
| 14 | + | |
| 15 | +/** | |
| 16 | + * 快慢误点统计 | |
| 17 | + * Created by panzhao on 2017/10/24. | |
| 18 | + */ | |
| 19 | +@RestController | |
| 20 | +@RequestMapping("/summary/fastAndSlow") | |
| 21 | +public class FastAndSlowController extends BaseController<FastAndSlow, Long> { | |
| 22 | + | |
| 23 | + @Autowired | |
| 24 | + FastAndSlowService fastAndSlowService; | |
| 25 | + | |
| 26 | + @RequestMapping("/excel/{lineCode}") | |
| 27 | + public void excel(@PathVariable("lineCode") String lineCode, @RequestParam String st | |
| 28 | + , @RequestParam String et, @RequestParam int type, HttpServletRequest request, HttpServletResponse response) { | |
| 29 | + fastAndSlowService.excel(lineCode, st, et, type, request, response); | |
| 30 | + } | |
| 31 | +} | |
| 16 | 32 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/controller/schedule/TrafficManageController.java
| ... | ... | @@ -57,6 +57,15 @@ public class TrafficManageController { |
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + @RequestMapping(value = "/setLDByDate", method = RequestMethod.GET) | |
| 61 | + public String setLDByDate(@RequestParam("theDate") String theDate) throws Exception { | |
| 62 | + try { | |
| 63 | + return trManageService.setLD(theDate); | |
| 64 | + } catch (Exception exp) { | |
| 65 | + throw new Exception(exp.getCause()); | |
| 66 | + } | |
| 67 | + } | |
| 68 | + | |
| 60 | 69 | @RequestMapping(value = "/setLDFile", method = RequestMethod.GET) |
| 61 | 70 | public String setLDFile() throws Exception { |
| 62 | 71 | try { | ... | ... |
src/main/java/com/bsth/data/schedule/late_adjust/LateAdjustHandle.java
| ... | ... | @@ -135,6 +135,12 @@ public class LateAdjustHandle implements ApplicationContextAware{ |
| 135 | 135 | if(sch == null) |
| 136 | 136 | return; |
| 137 | 137 | |
| 138 | + //可能是延迟信号,gps时间没有误点 | |
| 139 | + if(gps.getTimestamp() <= sch.getDfsjT()){ | |
| 140 | + sch.setLate2(false); | |
| 141 | + lateSchMap.remove(sch.getClZbh()); | |
| 142 | + return; | |
| 143 | + } | |
| 138 | 144 | //进的是班次起点(名称一样即可) |
| 139 | 145 | gps.setStationName(BasicData.stationCode2NameMap.get(gps.getLineId() + "_" + gps.getUpDown() + "_" + gps.getStopNo())); |
| 140 | 146 | if(gps.getStationName().equals(sch.getQdzName()) | ... | ... |
src/main/java/com/bsth/data/summary/entity/FastAndSlow.java
| 1 | -package com.bsth.data.summary.entity; | |
| 2 | - | |
| 3 | -import javax.persistence.Column; | |
| 4 | -import javax.persistence.Entity; | |
| 5 | -import javax.persistence.Id; | |
| 6 | -import javax.persistence.Table; | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * 快慢误点 | |
| 10 | - * Created by panzhao on 2017/10/24. | |
| 11 | - */ | |
| 12 | -@Entity | |
| 13 | -@Table(name = "z_calc_fast_slow") | |
| 14 | -public class FastAndSlow { | |
| 15 | - | |
| 16 | - /** | |
| 17 | - * 班次ID | |
| 18 | - */ | |
| 19 | - @Id | |
| 20 | - @Column(name = "s_id") | |
| 21 | - private Long id; | |
| 22 | - | |
| 23 | - /** | |
| 24 | - * 发车站点 | |
| 25 | - */ | |
| 26 | - private String stationName; | |
| 27 | - | |
| 28 | - /** | |
| 29 | - * 日期 | |
| 30 | - */ | |
| 31 | - @Column(name = "rq") | |
| 32 | - private String rq; | |
| 33 | - | |
| 34 | - /** | |
| 35 | - * 上下行 | |
| 36 | - */ | |
| 37 | - private int upDown; | |
| 38 | - | |
| 39 | - /** | |
| 40 | - * 计发时间 | |
| 41 | - * HH:mm | |
| 42 | - */ | |
| 43 | - private String fcsj; | |
| 44 | - | |
| 45 | - /** | |
| 46 | - * 待发时间 | |
| 47 | - * HH:mm | |
| 48 | - */ | |
| 49 | - private String dfsj; | |
| 50 | - | |
| 51 | - /** | |
| 52 | - * 实际发车时间 | |
| 53 | - * HH:mm | |
| 54 | - */ | |
| 55 | - private String fcsjActual; | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * 计发快误点 | |
| 59 | - */ | |
| 60 | - private int fcsjFast; | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 计发慢误点 | |
| 64 | - */ | |
| 65 | - private int fcsjSlow; | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * 待发快误点 | |
| 69 | - */ | |
| 70 | - private int dfsjFast; | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * 待发慢误点 | |
| 74 | - */ | |
| 75 | - private int dfsjSlow; | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * 计划终点时间 | |
| 79 | - */ | |
| 80 | - private String zdsj; | |
| 81 | - | |
| 82 | - /** | |
| 83 | - * 待发终点时间 | |
| 84 | - */ | |
| 85 | - private String zdsjDf; | |
| 86 | - | |
| 87 | - /** | |
| 88 | - * 实际终点时间 | |
| 89 | - */ | |
| 90 | - private String zdsjActual; | |
| 91 | - | |
| 92 | - /** | |
| 93 | - * 计发终点快误点 | |
| 94 | - */ | |
| 95 | - private int zdsjFast; | |
| 96 | - | |
| 97 | - /** | |
| 98 | - * 计发终点慢误点 | |
| 99 | - */ | |
| 100 | - private int zdsjSlow; | |
| 101 | - | |
| 102 | - /** | |
| 103 | - * 待发终点快误点 | |
| 104 | - */ | |
| 105 | - private int zdsjDfFast; | |
| 106 | - | |
| 107 | - /** | |
| 108 | - * 待发终点慢误点 | |
| 109 | - */ | |
| 110 | - private int zdsjDfSlow; | |
| 111 | - | |
| 112 | - @Column(name = "line_code") | |
| 113 | - private String lineCode; | |
| 114 | - | |
| 115 | - private Long t; | |
| 116 | - | |
| 117 | - public String getStationName() { | |
| 118 | - return stationName; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public void setStationName(String stationName) { | |
| 122 | - this.stationName = stationName; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public String getRq() { | |
| 126 | - return rq; | |
| 127 | - } | |
| 128 | - | |
| 129 | - public void setRq(String rq) { | |
| 130 | - this.rq = rq; | |
| 131 | - } | |
| 132 | - | |
| 133 | - public int getUpDown() { | |
| 134 | - return upDown; | |
| 135 | - } | |
| 136 | - | |
| 137 | - public void setUpDown(int upDown) { | |
| 138 | - this.upDown = upDown; | |
| 139 | - } | |
| 140 | - | |
| 141 | - public String getFcsj() { | |
| 142 | - return fcsj; | |
| 143 | - } | |
| 144 | - | |
| 145 | - public void setFcsj(String fcsj) { | |
| 146 | - this.fcsj = fcsj; | |
| 147 | - } | |
| 148 | - | |
| 149 | - public String getDfsj() { | |
| 150 | - return dfsj; | |
| 151 | - } | |
| 152 | - | |
| 153 | - public void setDfsj(String dfsj) { | |
| 154 | - this.dfsj = dfsj; | |
| 155 | - } | |
| 156 | - | |
| 157 | - public String getFcsjActual() { | |
| 158 | - return fcsjActual; | |
| 159 | - } | |
| 160 | - | |
| 161 | - public void setFcsjActual(String fcsjActual) { | |
| 162 | - this.fcsjActual = fcsjActual; | |
| 163 | - } | |
| 164 | - | |
| 165 | - public int getFcsjFast() { | |
| 166 | - return fcsjFast; | |
| 167 | - } | |
| 168 | - | |
| 169 | - public void setFcsjFast(int fcsjFast) { | |
| 170 | - this.fcsjFast = fcsjFast; | |
| 171 | - } | |
| 172 | - | |
| 173 | - public int getFcsjSlow() { | |
| 174 | - return fcsjSlow; | |
| 175 | - } | |
| 176 | - | |
| 177 | - public void setFcsjSlow(int fcsjSlow) { | |
| 178 | - this.fcsjSlow = fcsjSlow; | |
| 179 | - } | |
| 180 | - | |
| 181 | - public int getDfsjFast() { | |
| 182 | - return dfsjFast; | |
| 183 | - } | |
| 184 | - | |
| 185 | - public void setDfsjFast(int dfsjFast) { | |
| 186 | - this.dfsjFast = dfsjFast; | |
| 187 | - } | |
| 188 | - | |
| 189 | - public int getDfsjSlow() { | |
| 190 | - return dfsjSlow; | |
| 191 | - } | |
| 192 | - | |
| 193 | - public void setDfsjSlow(int dfsjSlow) { | |
| 194 | - this.dfsjSlow = dfsjSlow; | |
| 195 | - } | |
| 196 | - | |
| 197 | - public String getZdsj() { | |
| 198 | - return zdsj; | |
| 199 | - } | |
| 200 | - | |
| 201 | - public void setZdsj(String zdsj) { | |
| 202 | - this.zdsj = zdsj; | |
| 203 | - } | |
| 204 | - | |
| 205 | - public String getZdsjDf() { | |
| 206 | - return zdsjDf; | |
| 207 | - } | |
| 208 | - | |
| 209 | - public void setZdsjDf(String zdsjDf) { | |
| 210 | - this.zdsjDf = zdsjDf; | |
| 211 | - } | |
| 212 | - | |
| 213 | - public String getZdsjActual() { | |
| 214 | - return zdsjActual; | |
| 215 | - } | |
| 216 | - | |
| 217 | - public void setZdsjActual(String zdsjActual) { | |
| 218 | - this.zdsjActual = zdsjActual; | |
| 219 | - } | |
| 220 | - | |
| 221 | - public int getZdsjFast() { | |
| 222 | - return zdsjFast; | |
| 223 | - } | |
| 224 | - | |
| 225 | - public void setZdsjFast(int zdsjFast) { | |
| 226 | - this.zdsjFast = zdsjFast; | |
| 227 | - } | |
| 228 | - | |
| 229 | - public int getZdsjSlow() { | |
| 230 | - return zdsjSlow; | |
| 231 | - } | |
| 232 | - | |
| 233 | - public void setZdsjSlow(int zdsjSlow) { | |
| 234 | - this.zdsjSlow = zdsjSlow; | |
| 235 | - } | |
| 236 | - | |
| 237 | - public int getZdsjDfFast() { | |
| 238 | - return zdsjDfFast; | |
| 239 | - } | |
| 240 | - | |
| 241 | - public void setZdsjDfFast(int zdsjDfFast) { | |
| 242 | - this.zdsjDfFast = zdsjDfFast; | |
| 243 | - } | |
| 244 | - | |
| 245 | - public int getZdsjDfSlow() { | |
| 246 | - return zdsjDfSlow; | |
| 247 | - } | |
| 248 | - | |
| 249 | - public void setZdsjDfSlow(int zdsjDfSlow) { | |
| 250 | - this.zdsjDfSlow = zdsjDfSlow; | |
| 251 | - } | |
| 252 | - | |
| 253 | - public String getLineCode() { | |
| 254 | - return lineCode; | |
| 255 | - } | |
| 256 | - | |
| 257 | - public void setLineCode(String lineCode) { | |
| 258 | - this.lineCode = lineCode; | |
| 259 | - } | |
| 260 | - | |
| 261 | - public Long getId() { | |
| 262 | - return id; | |
| 263 | - } | |
| 264 | - | |
| 265 | - public void setId(Long id) { | |
| 266 | - this.id = id; | |
| 267 | - } | |
| 268 | - | |
| 269 | - public Long getT() { | |
| 270 | - return t; | |
| 271 | - } | |
| 272 | - | |
| 273 | - public void setT(Long t) { | |
| 274 | - this.t = t; | |
| 275 | - } | |
| 276 | -} | |
| 1 | +package com.bsth.data.summary.entity; | |
| 2 | + | |
| 3 | +import javax.persistence.Column; | |
| 4 | +import javax.persistence.Entity; | |
| 5 | +import javax.persistence.Id; | |
| 6 | +import javax.persistence.Table; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * 快慢误点 | |
| 10 | + * Created by panzhao on 2017/10/24. | |
| 11 | + */ | |
| 12 | +@Entity | |
| 13 | +@Table(name = "z_calc_fast_slow") | |
| 14 | +public class FastAndSlow { | |
| 15 | + | |
| 16 | + /** | |
| 17 | + * 班次ID | |
| 18 | + */ | |
| 19 | + @Id | |
| 20 | + @Column(name = "s_id") | |
| 21 | + private Long id; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 发车站点 | |
| 25 | + */ | |
| 26 | + private String stationName; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * 日期 | |
| 30 | + */ | |
| 31 | + @Column(name = "rq") | |
| 32 | + private String rq; | |
| 33 | + | |
| 34 | + /** | |
| 35 | + * 上下行 | |
| 36 | + */ | |
| 37 | + private int upDown; | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 计发时间 | |
| 41 | + * HH:mm | |
| 42 | + */ | |
| 43 | + private String fcsj; | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * 待发时间 | |
| 47 | + * HH:mm | |
| 48 | + */ | |
| 49 | + private String dfsj; | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * 实际发车时间 | |
| 53 | + * HH:mm | |
| 54 | + */ | |
| 55 | + private String fcsjActual; | |
| 56 | + | |
| 57 | + /** | |
| 58 | + * 计发快误点 | |
| 59 | + */ | |
| 60 | + private int fcsjFast; | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * 计发慢误点 | |
| 64 | + */ | |
| 65 | + private int fcsjSlow; | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * 待发快误点 | |
| 69 | + */ | |
| 70 | + private int dfsjFast; | |
| 71 | + | |
| 72 | + /** | |
| 73 | + * 待发慢误点 | |
| 74 | + */ | |
| 75 | + private int dfsjSlow; | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * 计划终点时间 | |
| 79 | + */ | |
| 80 | + private String zdsj; | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * 待发终点时间 | |
| 84 | + */ | |
| 85 | + private String zdsjDf; | |
| 86 | + | |
| 87 | + /** | |
| 88 | + * 实际终点时间 | |
| 89 | + */ | |
| 90 | + private String zdsjActual; | |
| 91 | + | |
| 92 | + /** | |
| 93 | + * 计发终点快误点 | |
| 94 | + */ | |
| 95 | + private int zdsjFast; | |
| 96 | + | |
| 97 | + /** | |
| 98 | + * 计发终点慢误点 | |
| 99 | + */ | |
| 100 | + private int zdsjSlow; | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * 待发终点快误点 | |
| 104 | + */ | |
| 105 | + private int zdsjDfFast; | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * 待发终点慢误点 | |
| 109 | + */ | |
| 110 | + private int zdsjDfSlow; | |
| 111 | + | |
| 112 | + @Column(name = "line_code") | |
| 113 | + private String lineCode; | |
| 114 | + | |
| 115 | + private Long t; | |
| 116 | + | |
| 117 | + public String getStationName() { | |
| 118 | + return stationName; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public void setStationName(String stationName) { | |
| 122 | + this.stationName = stationName; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public String getRq() { | |
| 126 | + return rq; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public void setRq(String rq) { | |
| 130 | + this.rq = rq; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public int getUpDown() { | |
| 134 | + return upDown; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public void setUpDown(int upDown) { | |
| 138 | + this.upDown = upDown; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public String getFcsj() { | |
| 142 | + return fcsj; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public void setFcsj(String fcsj) { | |
| 146 | + this.fcsj = fcsj; | |
| 147 | + } | |
| 148 | + | |
| 149 | + public String getDfsj() { | |
| 150 | + return dfsj; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public void setDfsj(String dfsj) { | |
| 154 | + this.dfsj = dfsj; | |
| 155 | + } | |
| 156 | + | |
| 157 | + public String getFcsjActual() { | |
| 158 | + return fcsjActual; | |
| 159 | + } | |
| 160 | + | |
| 161 | + public void setFcsjActual(String fcsjActual) { | |
| 162 | + this.fcsjActual = fcsjActual; | |
| 163 | + } | |
| 164 | + | |
| 165 | + public int getFcsjFast() { | |
| 166 | + return fcsjFast; | |
| 167 | + } | |
| 168 | + | |
| 169 | + public void setFcsjFast(int fcsjFast) { | |
| 170 | + this.fcsjFast = fcsjFast; | |
| 171 | + } | |
| 172 | + | |
| 173 | + public int getFcsjSlow() { | |
| 174 | + return fcsjSlow; | |
| 175 | + } | |
| 176 | + | |
| 177 | + public void setFcsjSlow(int fcsjSlow) { | |
| 178 | + this.fcsjSlow = fcsjSlow; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public int getDfsjFast() { | |
| 182 | + return dfsjFast; | |
| 183 | + } | |
| 184 | + | |
| 185 | + public void setDfsjFast(int dfsjFast) { | |
| 186 | + this.dfsjFast = dfsjFast; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public int getDfsjSlow() { | |
| 190 | + return dfsjSlow; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public void setDfsjSlow(int dfsjSlow) { | |
| 194 | + this.dfsjSlow = dfsjSlow; | |
| 195 | + } | |
| 196 | + | |
| 197 | + public String getZdsj() { | |
| 198 | + return zdsj; | |
| 199 | + } | |
| 200 | + | |
| 201 | + public void setZdsj(String zdsj) { | |
| 202 | + this.zdsj = zdsj; | |
| 203 | + } | |
| 204 | + | |
| 205 | + public String getZdsjDf() { | |
| 206 | + return zdsjDf; | |
| 207 | + } | |
| 208 | + | |
| 209 | + public void setZdsjDf(String zdsjDf) { | |
| 210 | + this.zdsjDf = zdsjDf; | |
| 211 | + } | |
| 212 | + | |
| 213 | + public String getZdsjActual() { | |
| 214 | + return zdsjActual; | |
| 215 | + } | |
| 216 | + | |
| 217 | + public void setZdsjActual(String zdsjActual) { | |
| 218 | + this.zdsjActual = zdsjActual; | |
| 219 | + } | |
| 220 | + | |
| 221 | + public int getZdsjFast() { | |
| 222 | + return zdsjFast; | |
| 223 | + } | |
| 224 | + | |
| 225 | + public void setZdsjFast(int zdsjFast) { | |
| 226 | + this.zdsjFast = zdsjFast; | |
| 227 | + } | |
| 228 | + | |
| 229 | + public int getZdsjSlow() { | |
| 230 | + return zdsjSlow; | |
| 231 | + } | |
| 232 | + | |
| 233 | + public void setZdsjSlow(int zdsjSlow) { | |
| 234 | + this.zdsjSlow = zdsjSlow; | |
| 235 | + } | |
| 236 | + | |
| 237 | + public int getZdsjDfFast() { | |
| 238 | + return zdsjDfFast; | |
| 239 | + } | |
| 240 | + | |
| 241 | + public void setZdsjDfFast(int zdsjDfFast) { | |
| 242 | + this.zdsjDfFast = zdsjDfFast; | |
| 243 | + } | |
| 244 | + | |
| 245 | + public int getZdsjDfSlow() { | |
| 246 | + return zdsjDfSlow; | |
| 247 | + } | |
| 248 | + | |
| 249 | + public void setZdsjDfSlow(int zdsjDfSlow) { | |
| 250 | + this.zdsjDfSlow = zdsjDfSlow; | |
| 251 | + } | |
| 252 | + | |
| 253 | + public String getLineCode() { | |
| 254 | + return lineCode; | |
| 255 | + } | |
| 256 | + | |
| 257 | + public void setLineCode(String lineCode) { | |
| 258 | + this.lineCode = lineCode; | |
| 259 | + } | |
| 260 | + | |
| 261 | + public Long getId() { | |
| 262 | + return id; | |
| 263 | + } | |
| 264 | + | |
| 265 | + public void setId(Long id) { | |
| 266 | + this.id = id; | |
| 267 | + } | |
| 268 | + | |
| 269 | + public Long getT() { | |
| 270 | + return t; | |
| 271 | + } | |
| 272 | + | |
| 273 | + public void setT(Long t) { | |
| 274 | + this.t = t; | |
| 275 | + } | |
| 276 | + | |
| 277 | + public boolean isSlow() { | |
| 278 | + return this.fcsjSlow>0 || this.dfsjSlow>0 || this.zdsjSlow>0 || this.zdsjDfSlow>0; | |
| 279 | + } | |
| 280 | + | |
| 281 | + public boolean isFast() { | |
| 282 | + return this.fcsjFast>0 || this.dfsjFast>0 || this.zdsjFast>0 || this.zdsjDfFast>0; | |
| 283 | + } | |
| 284 | +} | |
| 277 | 285 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/data/summary/repository/FastAndSlowRepository.java
| 1 | -package com.bsth.data.summary.repository; | |
| 2 | - | |
| 3 | -import com.bsth.data.summary.entity.FastAndSlow; | |
| 4 | -import com.bsth.repository.BaseRepository; | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * Created by panzhao on 2017/10/24. | |
| 9 | - */ | |
| 10 | -@Repository | |
| 11 | -public interface FastAndSlowRepository extends BaseRepository<FastAndSlow, Long> { | |
| 12 | -} | |
| 1 | +package com.bsth.data.summary.repository; | |
| 2 | + | |
| 3 | +import com.bsth.data.summary.entity.FastAndSlow; | |
| 4 | +import com.bsth.repository.BaseRepository; | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Created by panzhao on 2017/10/24. | |
| 9 | + */ | |
| 10 | +@Repository | |
| 11 | +public interface FastAndSlowRepository extends BaseRepository<FastAndSlow, Long> { | |
| 12 | +} | ... | ... |
src/main/java/com/bsth/data/summary/service/FastAndSlowService.java
| 1 | -package com.bsth.data.summary.service; | |
| 2 | - | |
| 3 | -import com.bsth.data.summary.entity.FastAndSlow; | |
| 4 | -import com.bsth.service.BaseService; | |
| 5 | - | |
| 6 | -/** | |
| 7 | - * Created by panzhao on 2017/10/24. | |
| 8 | - */ | |
| 9 | -public interface FastAndSlowService extends BaseService<FastAndSlow, Long>{ | |
| 10 | -} | |
| 1 | +package com.bsth.data.summary.service; | |
| 2 | + | |
| 3 | +import com.bsth.data.summary.entity.FastAndSlow; | |
| 4 | +import com.bsth.service.BaseService; | |
| 5 | + | |
| 6 | +import javax.servlet.http.HttpServletRequest; | |
| 7 | +import javax.servlet.http.HttpServletResponse; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * Created by panzhao on 2017/10/24. | |
| 11 | + */ | |
| 12 | +public interface FastAndSlowService extends BaseService<FastAndSlow, Long>{ | |
| 13 | + void excel(String lineCode, String st, String et, int type, HttpServletRequest request, HttpServletResponse response); | |
| 14 | +} | |
| 11 | 15 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/data/summary/service/impl/FastAndSlowServiceImpl.java
| 1 | -package com.bsth.data.summary.service.impl; | |
| 2 | - | |
| 3 | -import com.bsth.data.summary.entity.FastAndSlow; | |
| 4 | -import com.bsth.data.summary.service.FastAndSlowService; | |
| 5 | -import com.bsth.service.impl.BaseServiceImpl; | |
| 6 | -import org.springframework.stereotype.Service; | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * Created by panzhao on 2017/10/24. | |
| 10 | - */ | |
| 11 | -@Service | |
| 12 | -public class FastAndSlowServiceImpl extends BaseServiceImpl<FastAndSlow, Long> implements FastAndSlowService { | |
| 13 | -} | |
| 1 | +package com.bsth.data.summary.service.impl; | |
| 2 | + | |
| 3 | +import com.bsth.data.BasicData; | |
| 4 | +import com.bsth.data.summary.entity.FastAndSlow; | |
| 5 | +import com.bsth.data.summary.service.FastAndSlowService; | |
| 6 | +import com.bsth.data.utils.ConvertUtil; | |
| 7 | +import com.bsth.service.impl.BaseServiceImpl; | |
| 8 | +import com.google.common.collect.ArrayListMultimap; | |
| 9 | +import org.apache.poi.hssf.usermodel.HSSFWorkbook; | |
| 10 | +import org.apache.poi.poifs.filesystem.POIFSFileSystem; | |
| 11 | +import org.apache.poi.ss.usermodel.Row; | |
| 12 | +import org.apache.poi.ss.usermodel.Sheet; | |
| 13 | +import org.apache.poi.ss.util.CellRangeAddress; | |
| 14 | +import org.joda.time.format.DateTimeFormat; | |
| 15 | +import org.joda.time.format.DateTimeFormatter; | |
| 16 | +import org.slf4j.Logger; | |
| 17 | +import org.slf4j.LoggerFactory; | |
| 18 | +import org.springframework.stereotype.Service; | |
| 19 | + | |
| 20 | +import javax.servlet.http.HttpServletRequest; | |
| 21 | +import javax.servlet.http.HttpServletResponse; | |
| 22 | +import java.io.FileInputStream; | |
| 23 | +import java.io.OutputStream; | |
| 24 | +import java.net.URLEncoder; | |
| 25 | +import java.text.ParseException; | |
| 26 | +import java.text.SimpleDateFormat; | |
| 27 | +import java.util.*; | |
| 28 | + | |
| 29 | +/** | |
| 30 | + * Created by panzhao on 2017/10/24. | |
| 31 | + */ | |
| 32 | +@Service | |
| 33 | +public class FastAndSlowServiceImpl extends BaseServiceImpl<FastAndSlow, Long> implements FastAndSlowService { | |
| 34 | + | |
| 35 | + Logger logger = LoggerFactory.getLogger(this.getClass()); | |
| 36 | + | |
| 37 | + private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd"); | |
| 38 | + | |
| 39 | + @Override | |
| 40 | + public Iterable<FastAndSlow> list(Map<String, Object> map) { | |
| 41 | + try { | |
| 42 | + //最多5天 | |
| 43 | + map.put("rq_le", maxEndTime(map.get("rq_ge").toString() | |
| 44 | + , map.get("rq_le").toString(), 5)); | |
| 45 | + | |
| 46 | + List<FastAndSlow> list = (List) super.list(map); | |
| 47 | + String type = String.valueOf(map.get("type")); | |
| 48 | + | |
| 49 | + return filterByType(list, type); | |
| 50 | + } catch (Exception e) { | |
| 51 | + logger.error("", e); | |
| 52 | + } | |
| 53 | + return null; | |
| 54 | + } | |
| 55 | + | |
| 56 | + @Override | |
| 57 | + public void excel(String lineCode, String st, String et, int type, HttpServletRequest request, HttpServletResponse response) { | |
| 58 | + try { | |
| 59 | + Map<String, Object> params = new HashMap(); | |
| 60 | + //最多31天 | |
| 61 | + et = maxEndTime(st, et, 31); | |
| 62 | + params.put("rq_ge", st); | |
| 63 | + params.put("rq_le", et); | |
| 64 | + params.put("lineCode_eq", lineCode); | |
| 65 | + List<FastAndSlow> list = filterByType((List) super.list(params), type + ""); | |
| 66 | + | |
| 67 | + if(list.size() == 0){ | |
| 68 | + response.setHeader("Content-type", "text/html;charset=UTF-8"); | |
| 69 | + response.getWriter().print("<span style='color:red;font-size:24px;'>根据查询条件没有搜索到数据,别导了!</span>"); | |
| 70 | + return ; | |
| 71 | + } | |
| 72 | + //排序 | |
| 73 | + Collections.sort(list, new Comparator<FastAndSlow>() { | |
| 74 | + @Override | |
| 75 | + public int compare(FastAndSlow fas1, FastAndSlow fas2) { | |
| 76 | + return (int) (fas1.getT() - fas2.getT()); | |
| 77 | + } | |
| 78 | + }); | |
| 79 | + //按日期分组 | |
| 80 | + ArrayListMultimap<String, FastAndSlow> multimap = | |
| 81 | + new ConvertUtil<FastAndSlow>().groupMultiList(list, "_", FastAndSlow.class.getDeclaredField("rq")); | |
| 82 | + //输出excel | |
| 83 | + String basePath = Thread.currentThread().getContextClassLoader().getResource("").getPath(); | |
| 84 | + String filePath = basePath + "/static/pages/summary/excel/快慢误点报表.xls"; | |
| 85 | + POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(filePath)); | |
| 86 | + HSSFWorkbook wb = new HSSFWorkbook(fs); | |
| 87 | + | |
| 88 | + //写入数据 | |
| 89 | + List<String> ks = new ArrayList<>(multimap.keySet()); | |
| 90 | + Collections.sort(ks); | |
| 91 | + for(int i = 0; i < ks.size(); i++){ | |
| 92 | + Sheet sheet = wb.getSheetAt(i); | |
| 93 | + writeData(sheet, multimap.get(ks.get(i))); | |
| 94 | + //sheet name | |
| 95 | + wb.setSheetName(i, ks.get(i)); | |
| 96 | + } | |
| 97 | + //删除多余的sheet | |
| 98 | + for(int i = ks.size(); i <31; i++){ | |
| 99 | + wb.removeSheetAt(ks.size()); | |
| 100 | + } | |
| 101 | + | |
| 102 | + //response 输出 | |
| 103 | + String filename = BasicData.lineCode2NameMap.get(lineCode) + st + "至" + et + "快慢误点明细.xls"; | |
| 104 | + response.setContentType("application/x-msdownload"); | |
| 105 | + response.setHeader("content-disposition", "attachment;filename=" + URLEncoder.encode(filename, "UTF-8")); | |
| 106 | + | |
| 107 | + OutputStream os = response.getOutputStream(); | |
| 108 | + wb.write(os); | |
| 109 | + os.flush(); | |
| 110 | + os.close(); | |
| 111 | + } catch (Exception e) { | |
| 112 | + logger.error("", e); | |
| 113 | + } | |
| 114 | + } | |
| 115 | + | |
| 116 | + private void writeData(Sheet sheet, List<FastAndSlow> list) { | |
| 117 | + List<FastAndSlow> ups = new ArrayList<>() | |
| 118 | + ,downs = new ArrayList<>(); | |
| 119 | + //前4行是表头 | |
| 120 | + Row row; | |
| 121 | + row = sheet.getRow(0); | |
| 122 | + row.getCell(4).setCellValue(list.get(0).getRq()); | |
| 123 | + row.getCell(13).setCellValue(BasicData.lineCode2NameMap.get(list.get(0).getLineCode())); | |
| 124 | + FastAndSlow fas; | |
| 125 | + for(int i = 0; i < list.size(); i++){ | |
| 126 | + fas = list.get(i); | |
| 127 | + row = sheet.createRow(i + 4); | |
| 128 | + row.createCell(0).setCellValue(i + 1); | |
| 129 | + row.createCell(1).setCellValue(fas.getStationName()); | |
| 130 | + row.createCell(2).setCellValue(fas.getUpDown()); | |
| 131 | + row.createCell(3).setCellValue(fas.getFcsj()); | |
| 132 | + row.createCell(4).setCellValue(fas.getDfsj()); | |
| 133 | + row.createCell(5).setCellValue(fas.getFcsjActual()); | |
| 134 | + row.createCell(6).setCellValue(fas.getFcsjFast()); | |
| 135 | + row.createCell(7).setCellValue(fas.getFcsjSlow()); | |
| 136 | + row.createCell(8).setCellValue(fas.getDfsjFast()); | |
| 137 | + row.createCell(9).setCellValue(fas.getDfsjSlow()); | |
| 138 | + row.createCell(10).setCellValue(fas.getZdsj()); | |
| 139 | + row.createCell(11).setCellValue(fas.getZdsjDf()); | |
| 140 | + row.createCell(12).setCellValue(fas.getZdsjActual()); | |
| 141 | + row.createCell(13).setCellValue(fas.getZdsjFast()); | |
| 142 | + row.createCell(14).setCellValue(fas.getZdsjSlow()); | |
| 143 | + row.createCell(15).setCellValue(fas.getZdsjDfFast()); | |
| 144 | + row.createCell(16).setCellValue(fas.getZdsjDfSlow()); | |
| 145 | + | |
| 146 | + if(fas.getUpDown()==0) | |
| 147 | + ups.add(fas); | |
| 148 | + else | |
| 149 | + downs.add(fas); | |
| 150 | + } | |
| 151 | + //合计 | |
| 152 | + int size = list.size(); | |
| 153 | + row = sheet.createRow(size + 4); | |
| 154 | + row.createCell(1).setCellValue("发车:上行(计划快误点:"+jhfcFast(ups)+" 累计时间:"+jhfcFastTime(ups)+" 待发快误点:"+dffcFast(ups)+" 累计时间:"+dffcFastTime(ups)+") "); | |
| 155 | + row.createCell(9).setCellValue("下行(计划快误点:"+jhfcFast(downs)+" 累计时间:"+jhfcFastTime(downs)+" 待发快误点:"+dffcFast(downs)+" 累计时间:"+dffcFastTime(downs)+")"); | |
| 156 | + row = sheet.createRow(size + 5); | |
| 157 | + row.createCell(1).setCellValue("发车:上行(计划慢误点:"+jhfcSlow(ups)+" 累计时间:"+jhfcSlowTime(ups)+" 待发慢误点:"+dffcSlow(ups)+" 累计时间:"+dffcSlowTime(ups)+") "); | |
| 158 | + row.createCell(9).setCellValue("下行(计划慢误点:"+jhfcSlow(downs)+" 累计时间:"+jhfcSlowTime(downs)+" 待发慢误点:"+dffcSlow(downs)+" 累计时间:"+dffcSlowTime(downs)+")"); | |
| 159 | + row = sheet.createRow(size + 6); | |
| 160 | + row.createCell(1).setCellValue("到达:上行(计划快误点:"+jhzdFast(ups)+" 累计时间:"+jhzdFastTime(ups)+" 待发快误点:"+dfzdFast(ups)+" 累计时间:"+dfzdFastTime(ups)+") "); | |
| 161 | + row.createCell(9).setCellValue("下行(计划快误点:"+jhzdFast(downs)+" 累计时间:"+jhzdFastTime(downs)+" 待发快误点:"+dfzdFast(downs)+" 累计时间:"+dfzdFastTime(downs)+")"); | |
| 162 | + row = sheet.createRow(size + 7); | |
| 163 | + row.createCell(1).setCellValue("到达:上行(计划慢误点:"+jhzdSlow(ups)+" 累计时间:"+jhzdSlowTime(ups)+" 待发慢误点:"+dfzdSlow(ups)+" 累计时间:"+dfzdSlowTime(ups)+") "); | |
| 164 | + row.createCell(9).setCellValue("下行(计划慢误点:"+jhzdSlow(downs)+" 累计时间:"+jhzdSlowTime(downs)+" 待发慢误点:"+dfzdSlow(downs)+" 累计时间:"+dfzdSlowTime(downs)+")"); | |
| 165 | + //合并单元格 | |
| 166 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 1, 8)); | |
| 167 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 4, 9, 16)); | |
| 168 | + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 1, 8)); | |
| 169 | + sheet.addMergedRegion(new CellRangeAddress(size + 5, size + 5, 9, 16)); | |
| 170 | + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 1, 8)); | |
| 171 | + sheet.addMergedRegion(new CellRangeAddress(size + 6, size + 6, 9, 16)); | |
| 172 | + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 1, 8)); | |
| 173 | + sheet.addMergedRegion(new CellRangeAddress(size + 7, size + 7, 9, 16)); | |
| 174 | + | |
| 175 | + sheet.addMergedRegion(new CellRangeAddress(size + 4, size + 7, 0, 0)); | |
| 176 | + } | |
| 177 | + | |
| 178 | + private List<FastAndSlow> filterByType(List<FastAndSlow> all, String type) { | |
| 179 | + List rsList = new ArrayList(); | |
| 180 | + if ("-1".equals(type)) {//慢误 | |
| 181 | + for (FastAndSlow fas : all) { | |
| 182 | + if (fas.isSlow()) | |
| 183 | + rsList.add(fas); | |
| 184 | + } | |
| 185 | + return rsList; | |
| 186 | + } else if ("1".equals(type)) {//快误 | |
| 187 | + for (FastAndSlow fas : all) { | |
| 188 | + if (fas.isFast()) | |
| 189 | + rsList.add(fas); | |
| 190 | + } | |
| 191 | + return rsList; | |
| 192 | + } | |
| 193 | + return all; | |
| 194 | + } | |
| 195 | + | |
| 196 | + | |
| 197 | + private String maxEndTime(String sStr, String eStr, int space) throws ParseException { | |
| 198 | + try { | |
| 199 | + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | |
| 200 | + long st = sdf.parse(sStr).getTime(); | |
| 201 | + long et = sdf.parse(eStr).getTime(); | |
| 202 | + long dayTime = 24 * 60 * 60 * 1000; | |
| 203 | + long spaceTime = dayTime * space; | |
| 204 | + | |
| 205 | + if (et - st > spaceTime) { | |
| 206 | + eStr = sdf.format(new Date(st + spaceTime)); | |
| 207 | + } | |
| 208 | + } catch (Exception e) { | |
| 209 | + throw e; | |
| 210 | + } | |
| 211 | + return eStr; | |
| 212 | + } | |
| 213 | + | |
| 214 | + /** | |
| 215 | + * 计划发出快误点 | |
| 216 | + * @param list | |
| 217 | + * @return | |
| 218 | + */ | |
| 219 | + private int jhfcFast(List<FastAndSlow> list){ | |
| 220 | + int count=0; | |
| 221 | + for(FastAndSlow fas : list){ | |
| 222 | + if(fas.getFcsjFast() > 0) | |
| 223 | + count++; | |
| 224 | + } | |
| 225 | + return count; | |
| 226 | + } | |
| 227 | + | |
| 228 | + /** | |
| 229 | + * 计划终点快误点 | |
| 230 | + * @param list | |
| 231 | + * @return | |
| 232 | + */ | |
| 233 | + private int jhzdFast(List<FastAndSlow> list){ | |
| 234 | + int count=0; | |
| 235 | + for(FastAndSlow fas : list){ | |
| 236 | + if(fas.getZdsjFast() > 0) | |
| 237 | + count++; | |
| 238 | + } | |
| 239 | + return count; | |
| 240 | + } | |
| 241 | + | |
| 242 | + /** | |
| 243 | + * 待发发出快误点 | |
| 244 | + * @param list | |
| 245 | + * @return | |
| 246 | + */ | |
| 247 | + private int dffcFast(List<FastAndSlow> list){ | |
| 248 | + int count=0; | |
| 249 | + for(FastAndSlow fas : list){ | |
| 250 | + if(fas.getDfsjFast() > 0) | |
| 251 | + count++; | |
| 252 | + } | |
| 253 | + return count; | |
| 254 | + } | |
| 255 | + | |
| 256 | + /** | |
| 257 | + * 待发终点快误点 | |
| 258 | + * @param list | |
| 259 | + * @return | |
| 260 | + */ | |
| 261 | + private int dfzdFast(List<FastAndSlow> list){ | |
| 262 | + int count=0; | |
| 263 | + for(FastAndSlow fas : list){ | |
| 264 | + if(fas.getZdsjDfFast() > 0) | |
| 265 | + count++; | |
| 266 | + } | |
| 267 | + return count; | |
| 268 | + } | |
| 269 | + | |
| 270 | + //---------- | |
| 271 | + | |
| 272 | + /** | |
| 273 | + * 计划发出慢误点 | |
| 274 | + * @param list | |
| 275 | + * @return | |
| 276 | + */ | |
| 277 | + private int jhfcSlow(List<FastAndSlow> list){ | |
| 278 | + int count=0; | |
| 279 | + for(FastAndSlow fas : list){ | |
| 280 | + if(fas.getFcsjSlow() > 0) | |
| 281 | + count++; | |
| 282 | + } | |
| 283 | + return count; | |
| 284 | + } | |
| 285 | + | |
| 286 | + /** | |
| 287 | + * 计划终点慢误点 | |
| 288 | + * @param list | |
| 289 | + * @return | |
| 290 | + */ | |
| 291 | + private int jhzdSlow(List<FastAndSlow> list){ | |
| 292 | + int count=0; | |
| 293 | + for(FastAndSlow fas : list){ | |
| 294 | + if(fas.getZdsjSlow() > 0) | |
| 295 | + count++; | |
| 296 | + } | |
| 297 | + return count; | |
| 298 | + } | |
| 299 | + | |
| 300 | + /** | |
| 301 | + * 待发发出慢误点 | |
| 302 | + * @param list | |
| 303 | + * @return | |
| 304 | + */ | |
| 305 | + private int dffcSlow(List<FastAndSlow> list){ | |
| 306 | + int count=0; | |
| 307 | + for(FastAndSlow fas : list){ | |
| 308 | + if(fas.getDfsjSlow() > 0) | |
| 309 | + count++; | |
| 310 | + } | |
| 311 | + return count; | |
| 312 | + } | |
| 313 | + | |
| 314 | + /** | |
| 315 | + * 待发终点慢误点 | |
| 316 | + * @param list | |
| 317 | + * @return | |
| 318 | + */ | |
| 319 | + private int dfzdSlow(List<FastAndSlow> list){ | |
| 320 | + int count=0; | |
| 321 | + for(FastAndSlow fas : list){ | |
| 322 | + if(fas.getZdsjDfSlow() > 0) | |
| 323 | + count++; | |
| 324 | + } | |
| 325 | + return count; | |
| 326 | + } | |
| 327 | + /** | |
| 328 | + * ################ | |
| 329 | + */ | |
| 330 | + /** | |
| 331 | + * 计划发出快误点 | |
| 332 | + * @param list | |
| 333 | + * @return | |
| 334 | + */ | |
| 335 | + private int jhfcFastTime(List<FastAndSlow> list){ | |
| 336 | + int sum=0; | |
| 337 | + for(FastAndSlow fas : list){ | |
| 338 | + sum+=fas.getFcsjFast(); | |
| 339 | + } | |
| 340 | + return sum; | |
| 341 | + } | |
| 342 | + | |
| 343 | + /** | |
| 344 | + * 计划终点快误点 | |
| 345 | + * @param list | |
| 346 | + * @return | |
| 347 | + */ | |
| 348 | + private int jhzdFastTime(List<FastAndSlow> list){ | |
| 349 | + int sum=0; | |
| 350 | + for(FastAndSlow fas : list){ | |
| 351 | + sum+=fas.getZdsjFast(); | |
| 352 | + } | |
| 353 | + return sum; | |
| 354 | + } | |
| 355 | + | |
| 356 | + /** | |
| 357 | + * 待发发出快误点 | |
| 358 | + * @param list | |
| 359 | + * @return | |
| 360 | + */ | |
| 361 | + private int dffcFastTime(List<FastAndSlow> list){ | |
| 362 | + int sum=0; | |
| 363 | + for(FastAndSlow fas : list){ | |
| 364 | + sum+=fas.getDfsjFast(); | |
| 365 | + } | |
| 366 | + return sum; | |
| 367 | + } | |
| 368 | + | |
| 369 | + /** | |
| 370 | + * 待发终点快误点 | |
| 371 | + * @param list | |
| 372 | + * @return | |
| 373 | + */ | |
| 374 | + private int dfzdFastTime(List<FastAndSlow> list){ | |
| 375 | + int sum=0; | |
| 376 | + for(FastAndSlow fas : list){ | |
| 377 | + sum+=fas.getZdsjDfFast(); | |
| 378 | + } | |
| 379 | + return sum; | |
| 380 | + } | |
| 381 | + | |
| 382 | + //---------- | |
| 383 | + | |
| 384 | + /** | |
| 385 | + * 计划发出慢误点 | |
| 386 | + * @param list | |
| 387 | + * @return | |
| 388 | + */ | |
| 389 | + private int jhfcSlowTime(List<FastAndSlow> list){ | |
| 390 | + int sum=0; | |
| 391 | + for(FastAndSlow fas : list){ | |
| 392 | + sum+=fas.getFcsjSlow(); | |
| 393 | + } | |
| 394 | + return sum; | |
| 395 | + } | |
| 396 | + | |
| 397 | + /** | |
| 398 | + * 计划终点慢误点 | |
| 399 | + * @param list | |
| 400 | + * @return | |
| 401 | + */ | |
| 402 | + private int jhzdSlowTime(List<FastAndSlow> list){ | |
| 403 | + int sum=0; | |
| 404 | + for(FastAndSlow fas : list){ | |
| 405 | + sum+=fas.getZdsjSlow(); | |
| 406 | + } | |
| 407 | + return sum; | |
| 408 | + } | |
| 409 | + | |
| 410 | + /** | |
| 411 | + * 待发发出慢误点 | |
| 412 | + * @param list | |
| 413 | + * @return | |
| 414 | + */ | |
| 415 | + private int dffcSlowTime(List<FastAndSlow> list){ | |
| 416 | + int sum=0; | |
| 417 | + for(FastAndSlow fas : list){ | |
| 418 | + sum+=fas.getDfsjSlow(); | |
| 419 | + } | |
| 420 | + return sum; | |
| 421 | + } | |
| 422 | + | |
| 423 | + /** | |
| 424 | + * 待发终点慢误点 | |
| 425 | + * @param list | |
| 426 | + * @return | |
| 427 | + */ | |
| 428 | + private int dfzdSlowTime(List<FastAndSlow> list){ | |
| 429 | + int sum=0; | |
| 430 | + for(FastAndSlow fas : list){ | |
| 431 | + sum+=fas.getZdsjDfSlow(); | |
| 432 | + } | |
| 433 | + return sum; | |
| 434 | + } | |
| 435 | +} | |
| 14 | 436 | \ No newline at end of file | ... | ... |
src/main/java/com/bsth/data/utils/ConvertUtil.java
0 → 100644
| 1 | +package com.bsth.data.utils; | |
| 2 | + | |
| 3 | +import com.google.common.collect.ArrayListMultimap; | |
| 4 | +import org.joda.time.format.DateTimeFormat; | |
| 5 | +import org.joda.time.format.DateTimeFormatter; | |
| 6 | +import org.slf4j.Logger; | |
| 7 | +import org.slf4j.LoggerFactory; | |
| 8 | + | |
| 9 | +import java.lang.reflect.Field; | |
| 10 | +import java.util.*; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * 数据转换 | |
| 14 | + * Created by panzhao on 2017/3/13. | |
| 15 | + */ | |
| 16 | +public class ConvertUtil<T> { | |
| 17 | + | |
| 18 | + Logger logger = LoggerFactory.getLogger(this.getClass()); | |
| 19 | + private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyyMMdd"); | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * 根据指定字段 将 list 分组 | |
| 23 | + * | |
| 24 | + * @param list | |
| 25 | + * @param separator 字段使用分隔符连接 组成key | |
| 26 | + * @param fields | |
| 27 | + * @return | |
| 28 | + */ | |
| 29 | + public ArrayListMultimap<String, T> groupMultiList(List<T> list, String separator, Field... fields) { | |
| 30 | + ArrayListMultimap<String, T> multimap = ArrayListMultimap.create(); | |
| 31 | + | |
| 32 | + String key; | |
| 33 | + //Object field; | |
| 34 | + try { | |
| 35 | + for (T t : list) { | |
| 36 | + | |
| 37 | + key = ""; | |
| 38 | + for (Field f : fields) { | |
| 39 | + f.setAccessible(true); | |
| 40 | + if(null == f.get(t)) | |
| 41 | + continue; | |
| 42 | + //日期类型格式化为 YYYY-MM-DD | |
| 43 | + if (f.getType().equals(Date.class)) | |
| 44 | + key += (separator + fmtyyyyMMdd.print(((Date) f.get(t)).getTime())); | |
| 45 | + else | |
| 46 | + key += (separator + f.get(t).toString()); | |
| 47 | + } | |
| 48 | + if(key.length() > 1) | |
| 49 | + key = key.substring(1); | |
| 50 | + | |
| 51 | + multimap.put(key, t); | |
| 52 | + } | |
| 53 | + } catch (Exception e) { | |
| 54 | + logger.error("", e); | |
| 55 | + } | |
| 56 | + | |
| 57 | + return multimap; | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * 根据指定字段 将 list 分组 | |
| 62 | + * | |
| 63 | + * @param list | |
| 64 | + * @param separator 字段使用分隔符连接 组成key | |
| 65 | + * @param fields | |
| 66 | + * @return | |
| 67 | + */ | |
| 68 | + public Map<String, T> groupList(List<T> list, String separator, Field... fields) { | |
| 69 | + Map<String, T> map = new HashMap<>(); | |
| 70 | + | |
| 71 | + String key; | |
| 72 | + //Object field; | |
| 73 | + try { | |
| 74 | + for (T t : list) { | |
| 75 | + | |
| 76 | + key = ""; | |
| 77 | + for (Field f : fields) { | |
| 78 | + f.setAccessible(true); | |
| 79 | + //日期类型格式化为 YYYY-MM-DD | |
| 80 | + if (f.getType().equals(Date.class)) | |
| 81 | + key += (separator + fmtyyyyMMdd.print(((Date) f.get(t)).getTime())); | |
| 82 | + else | |
| 83 | + key += (separator + f.get(t).toString()); | |
| 84 | + } | |
| 85 | + key = key.substring(1); | |
| 86 | + | |
| 87 | + map.put(key, t); | |
| 88 | + } | |
| 89 | + } catch (Exception e) { | |
| 90 | + logger.error("", e); | |
| 91 | + } | |
| 92 | + | |
| 93 | + return map; | |
| 94 | + } | |
| 95 | + | |
| 96 | + /** | |
| 97 | + * 计算并集 | |
| 98 | + * | |
| 99 | + * @param all | |
| 100 | + * @param sub | |
| 101 | + * @return | |
| 102 | + */ | |
| 103 | + public List<String> calcUnion(Collection<String> all, Collection<String> sub) { | |
| 104 | + List<String> rs = new ArrayList<>(); | |
| 105 | + | |
| 106 | + for (String str : all) { | |
| 107 | + if (sub.contains(str)) | |
| 108 | + rs.add(str); | |
| 109 | + } | |
| 110 | + return rs; | |
| 111 | + } | |
| 112 | + | |
| 113 | + /** | |
| 114 | + * 计算补集 | |
| 115 | + * | |
| 116 | + * @param all | |
| 117 | + * @param sub | |
| 118 | + * @return | |
| 119 | + */ | |
| 120 | + public List<String> calcComplement(Collection<String> all, Collection<String> sub) { | |
| 121 | + List<String> rs = new ArrayList<>(); | |
| 122 | + | |
| 123 | + for (String str : all) { | |
| 124 | + if (!sub.contains(str)) | |
| 125 | + rs.add(str); | |
| 126 | + } | |
| 127 | + return rs; | |
| 128 | + } | |
| 129 | +} | ... | ... |
src/main/java/com/bsth/entity/mcy_forms/Singledata.java
| ... | ... | @@ -7,6 +7,7 @@ public class Singledata { |
| 7 | 7 | private String gS;//所属公司 |
| 8 | 8 | |
| 9 | 9 | private String xL;//线路 |
| 10 | + private String xlmc;//线路名称 | |
| 10 | 11 | |
| 11 | 12 | private String clzbh;//车号 |
| 12 | 13 | |
| ... | ... | @@ -141,6 +142,14 @@ public class Singledata { |
| 141 | 142 | public void setJhjl(String jhjl) { |
| 142 | 143 | this.jhjl = jhjl; |
| 143 | 144 | } |
| 145 | + | |
| 146 | + public String getXlmc() { | |
| 147 | + return xlmc; | |
| 148 | + } | |
| 149 | + | |
| 150 | + public void setXlmc(String xlmc) { | |
| 151 | + this.xlmc = xlmc; | |
| 152 | + } | |
| 144 | 153 | |
| 145 | 154 | |
| 146 | 155 | ... | ... |
src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
| ... | ... | @@ -25,16 +25,16 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 25 | 25 | @Query(value="select s from ScheduleRealInfo s where s.id = ?1 ") |
| 26 | 26 | ScheduleRealInfo scheduleById(Long id); |
| 27 | 27 | |
| 28 | - @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and bc_type not in ('in','out') order by (lpName+1),clZbh,realExecDate,dfsj") | |
| 28 | + @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and bc_type not in ('in','out') order by (lpName+1),clZbh,realExecDate,dfsj") | |
| 29 | 29 | List<ScheduleRealInfo> scheduleDailyQp(String line,String date); |
| 30 | 30 | |
| 31 | - @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 GROUP BY s.id,s.jGh,s.clZbh,s.lpName order by (lpName+1)") | |
| 31 | + @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 GROUP BY s.id,s.jGh,s.clZbh,s.lpName order by (lpName+1)") | |
| 32 | 32 | List<ScheduleRealInfo> queryUserInfo(String line,String date); |
| 33 | 33 | |
| 34 | - @Query(value="select min(s.id), s.jGh,s.clZbh,s.lpName,s.jName from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 GROUP BY s.jGh,s.clZbh,s.lpName ,s.jName order by (lpName+1)") | |
| 34 | + @Query(value="select min(s.id), s.jGh,s.clZbh,s.lpName,s.jName from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 GROUP BY s.jGh,s.clZbh,s.lpName ,s.jName order by (lpName+1)") | |
| 35 | 35 | List<ScheduleRealInfo> queryUserInfo2(String line,String date); |
| 36 | 36 | |
| 37 | - @Query(value="select min(s.id), s.clZbh from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 GROUP BY s.clZbh ") | |
| 37 | + @Query(value="select min(s.id), s.clZbh from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 GROUP BY s.clZbh ") | |
| 38 | 38 | List<ScheduleRealInfo> queryUserInfo3(String line,String date); |
| 39 | 39 | |
| 40 | 40 | @Query(value="select s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 order by bcs") |
| ... | ... | @@ -43,7 +43,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 43 | 43 | //把sum(addMileage) 替换为0 数据表去掉了 add_mileage 字段 |
| 44 | 44 | @Query(value="select new map(clZbh as clZbh,jGh as jGh,jName as jName,sum(jhlc) as zgl," |
| 45 | 45 | + "0 as ksgl,count(jName) as bcs) from ScheduleRealInfo s where" |
| 46 | - + " s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 group by clZbh,jGh,jName") | |
| 46 | + + " s.xlBm = ?1 and s.scheduleDateStr = ?2 group by clZbh,jGh,jName") | |
| 47 | 47 | List<Map<String, Object>> dailyInfo(String line,String date); |
| 48 | 48 | |
| 49 | 49 | @Query(value="select t.inside_code,d.sender,d.txt_content,d.timestamp,0 as xlbm from (" |
| ... | ... | @@ -57,7 +57,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 57 | 57 | @Query(value="SELECT r.xl_name,r.lp_name,r.cl_zbh,count(*) as cs " |
| 58 | 58 | + " FROM bsth_c_s_sp_info_real r RIGHT JOIN bsth_v_directive_60 d " |
| 59 | 59 | + " ON r.id = d.sch WHERE d.is_dispatch = 1 AND r.xl_bm like %?1% AND " |
| 60 | - + " DATE_FORMAT(r.schedule_date,'%Y-%m-%d') = ?2 and r.cl_zbh like %?3% group by " | |
| 60 | + + " r.schedule_date_str = ?2 and r.cl_zbh like %?3% group by " | |
| 61 | 61 | + " lp_name,xl_name,cl_zbh",nativeQuery=true) |
| 62 | 62 | List<Object[]> historyMessageCount(String line,String date,String code); |
| 63 | 63 | |
| ... | ... | @@ -72,7 +72,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 72 | 72 | List<ScheduleRealInfo> findByDate(String dateStr); |
| 73 | 73 | |
| 74 | 74 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 75 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and cl_zbh=?3 order by bcs") | |
| 75 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and cl_zbh=?3 order by bcs") | |
| 76 | 76 | List<ScheduleRealInfo> findByDate2(String line,String date,String clzbh); |
| 77 | 77 | |
| 78 | 78 | @Query(value="select count(jName) from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.status = -1") |
| ... | ... | @@ -84,17 +84,17 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 84 | 84 | @Query(value="SELECT request_code,FROM_UNIXTIME(TIMESTAMP / 1000,'%Y-%m-%d %T') as TIMESTAMP ,device_id FROM bsth_v_report_80 WHERE FROM_UNIXTIME( TIMESTAMP / 1000,'%Y-%m-%d') = ?2 AND line_id = ?1 and device_id like %?3%",nativeQuery=true) |
| 85 | 85 | List<Object[]> account(String line,String date,String code); |
| 86 | 86 | |
| 87 | - @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDate >= str_to_date(?2,'%Y-%m-%d') " | |
| 88 | - + " and s.scheduleDate <= str_to_date(?3,'%Y-%m-%d') and s.lpName like %?4% " | |
| 87 | + @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 " | |
| 88 | + + " and s.scheduleDateStr <= ?3 and s.lpName like %?4% " | |
| 89 | 89 | + " and clZbh like %?5% order by s.fcsj") |
| 90 | 90 | List<ScheduleRealInfo> correctForm(String line,String startDate,String endDate,String lpName,String code); |
| 91 | 91 | |
| 92 | 92 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 93 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDate = str_to_date(?4,'%Y-%m-%d') and s.xlBm=?5 order by realExecDate,fcsj") | |
| 93 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDateStr = ?4 and s.xlBm=?5 order by realExecDate,fcsj") | |
| 94 | 94 | List<ScheduleRealInfo> queryListWaybill(String jName,String clZbh,String lpName,String date,String line); |
| 95 | 95 | |
| 96 | 96 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 97 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jGh = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDate = str_to_date(?4,'%Y-%m-%d') and s.xlBm=?5 order by realExecDate,fcsj") | |
| 97 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jGh = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.scheduleDateStr = ?4 and s.xlBm=?5 order by realExecDate,fcsj") | |
| 98 | 98 | List<ScheduleRealInfo> queryListWaybillXcld(String jGh,String clZbh,String lpName,String date,String line); |
| 99 | 99 | |
| 100 | 100 | // @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| ... | ... | @@ -102,27 +102,27 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 102 | 102 | // List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); |
| 103 | 103 | |
| 104 | 104 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 105 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 order by s.xlBm,s.clZbh,s.jGh,s.adjustExps,s.fcsj") | |
| 105 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 order by s.xlBm,s.clZbh,s.jGh,s.adjustExps,s.fcsj") | |
| 106 | 106 | List<ScheduleRealInfo> scheduleByDateAndLineTjrb(String line,String date); |
| 107 | 107 | |
| 108 | 108 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 109 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and s.xlDir=?3 and s.fcsjActual is not null and s.zdsjActual is not null order by s.realExecDate,s.fcsjActual") | |
| 109 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and s.xlDir=?3 and s.fcsjActual is not null and s.zdsjActual is not null order by s.realExecDate,s.fcsjActual") | |
| 110 | 110 | List<ScheduleRealInfo> scheduleByDateAndLineInOut(String line,String date,String zd); |
| 111 | 111 | |
| 112 | 112 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 113 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.clZbh = ?1 and s.scheduleDate = str_to_date(?2,'%Y-%m-%d') and xlBm =?3 order by realExecDate,fcsj") | |
| 113 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.clZbh = ?1 and s.scheduleDateStr = ?2 and xlBm =?3 order by realExecDate,fcsj") | |
| 114 | 114 | List<ScheduleRealInfo> queryListWaybill2(String clZbh,String date,String line); |
| 115 | 115 | |
| 116 | 116 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 117 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jGh like %?1% and s.clZbh like %?2% and s.scheduleDate = str_to_date(?3,'%Y-%m-%d') and s.gsBm like %?4% and s.fgsBm like %?5% order by realExecDate,dfsj") | |
| 117 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jGh like %?1% and s.clZbh like %?2% and s.scheduleDateStr = ?3 and s.gsBm like %?4% and s.fgsBm like %?5% order by realExecDate,dfsj") | |
| 118 | 118 | List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); |
| 119 | 119 | |
| 120 | 120 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 121 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') between str_to_date(?3,'%Y-%m-%d') and str_to_date(?4,'%Y-%m-%d') order by bcs") | |
| 121 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.scheduleDateStr >=?3 and s.scheduleDateStr <=?4 order by bcs") | |
| 122 | 122 | List<ScheduleRealInfo> queryListWaybill4(String jName,String clZbh,String date,String enddate); |
| 123 | 123 | |
| 124 | 124 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 125 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2") | |
| 125 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2") | |
| 126 | 126 | List<ScheduleRealInfo> scheduleDaily(String line,String date); |
| 127 | 127 | |
| 128 | 128 | @Query(value = "select count(*) from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") |
| ... | ... | @@ -139,66 +139,66 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI |
| 139 | 139 | |
| 140 | 140 | //去掉了 xlBm is not null |
| 141 | 141 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 142 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 order by s.xlDir,s.realExecDate,s.fcsj, lpName") | |
| 142 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr = ?2 order by s.xlDir,s.realExecDate,s.fcsj, lpName") | |
| 143 | 143 | List<ScheduleRealInfo> scheduleByDateAndLine(String line,String date); |
| 144 | 144 | |
| 145 | 145 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 146 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 order by s.lpName, s.realExecDate,s.fcsj") | |
| 146 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 order by s.lpName, s.realExecDate,s.fcsj") | |
| 147 | 147 | List<ScheduleRealInfo> scheduleByDateAndLineQp(String line,String date); |
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 151 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?3 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 151 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and s.scheduleDateStr = ?3 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 152 | 152 | List<ScheduleRealInfo> scheduleByDateAndLineByGs_(String gsdm,String fgsdm,String date); |
| 153 | 153 | |
| 154 | 154 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 155 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?3 and s.bcType not in ('in','out','ldks') order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 155 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where gsBm like %?1% and fgsBm like %?2% and s.scheduleDateStr = ?3 and s.bcType not in ('in','out','ldks') order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 156 | 156 | List<ScheduleRealInfo> scheduleByDateAndLineByGs(String gsdm,String fgsdm,String date); |
| 157 | 157 | |
| 158 | 158 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 159 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 159 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr= ?2 order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | |
| 160 | 160 | List<ScheduleRealInfo> scheduleByDateAndLineQp2(String line,String date); |
| 161 | 161 | |
| 162 | 162 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 163 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and s.bcType not in ('in','out','ldks') order by s.xlBm,s.adjustExps,s.fcsj") | |
| 163 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and s.bcType not in ('in','out','ldks') order by s.xlBm,s.adjustExps,s.fcsj") | |
| 164 | 164 | List<ScheduleRealInfo> scheduleByDateAndLine2(String line,String date); |
| 165 | 165 | |
| 166 | 166 | //按月统计 |
| 167 | 167 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 168 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and DATE_FORMAT(s.scheduleDate,'%Y-%m') = ?2 and s.bcType not in ('in','out','ldks') order by s.xlBm") | |
| 168 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr = ?2 and s.bcType not in ('in','out','ldks') order by s.xlBm") | |
| 169 | 169 | List<ScheduleRealInfo> scheduleByDateAndLine3(String line,String date); |
| 170 | 170 | |
| 171 | 171 | //按照时间段统计 |
| 172 | 172 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 173 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') between ?2 and ?3 and gsBm like %?4% and fgsBm like %?5% order by s.xlBm") | |
| 173 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 and gsBm like %?4% and fgsBm like %?5% order by s.xlBm") | |
| 174 | 174 | List<ScheduleRealInfo> scheduleByDateAndLineTj(String line,String date,String date2,String gsdm,String fgsdm); |
| 175 | 175 | |
| 176 | 176 | //按照时间段统计 |
| 177 | 177 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 178 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') between ?2 and ?3 order by s.xlBm") | |
| 178 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.xlBm") | |
| 179 | 179 | List<ScheduleRealInfo> scheduleByDateAndLineTj2(String line,String date,String date2); |
| 180 | 180 | //月报表 |
| 181 | 181 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) |
| 182 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') between ?2 and ?3 order by s.xlBm") | |
| 182 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.xlBm") | |
| 183 | 183 | List<ScheduleRealInfo> scheduleByDateAndLineYbb(String line,String date,String date2); |
| 184 | 184 | |
| 185 | 185 | |
| 186 | - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm like %?1% and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") | |
| 186 | + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") | |
| 187 | 187 | List<Map<String,Object>> yesterdayDataList(String line,String date,String gsbm,String fgsbm,String nbbm); |
| 188 | 188 | |
| 189 | - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm =?1 and DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") | |
| 189 | + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,min(s.fcsj) as fcsj ) from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.gsBm like %?3% and s.fgsBm like %?4% and s.clZbh like %?5% GROUP BY xlBm,clZbh,jGh,scheduleDate ORDER BY clZbh,fcsj") | |
| 190 | 190 | List<Map<String,Object>> yesterdayDataList_eq(String line,String date,String gsbm,String fgsbm,String nbbm); |
| 191 | 191 | |
| 192 | - @Query(value="select s from ScheduleRealInfo s where DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?1 ORDER BY xlBm,lpName,clZbh,xlDir") | |
| 192 | + @Query(value="select s from ScheduleRealInfo s where s.scheduleDateStr = ?1 ORDER BY xlBm,lpName,clZbh,xlDir") | |
| 193 | 193 | List<ScheduleRealInfo> setLD(String date); |
| 194 | 194 | |
| 195 | - @Query(value="select new map(xlBm as xlBm,lpName as lpName,clZbh as clZbh) from ScheduleRealInfo s where DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?1 GROUP BY xlBm,lpName,clZbh ORDER BY xlBm,lpName,clZbh") | |
| 195 | + @Query(value="select new map(xlBm as xlBm,lpName as lpName,clZbh as clZbh) from ScheduleRealInfo s where s.scheduleDateStr = ?1 GROUP BY xlBm,lpName,clZbh ORDER BY xlBm,lpName,clZbh") | |
| 196 | 196 | List<Map<String,Object>> setLDGroup(String date); |
| 197 | 197 | |
| 198 | - @Query(value="select new map(xlBm as xlBm,clZbh as clZbh) from ScheduleRealInfo s where DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?1 GROUP BY xlBm,clZbh ORDER BY xlBm,clZbh") | |
| 198 | + @Query(value="select new map(xlBm as xlBm,clZbh as clZbh) from ScheduleRealInfo s where s.scheduleDateStr = ?1 GROUP BY xlBm,clZbh ORDER BY xlBm,clZbh") | |
| 199 | 199 | List<Map<String,Object>> setLCYHGroup(String date); |
| 200 | 200 | |
| 201 | - @Query(value="select new map(xlBm as xlBm) from ScheduleRealInfo s where DATE_FORMAT(s.scheduleDate,'%Y-%m-%d') = ?1 GROUP BY xlBm ORDER BY xlBm") | |
| 201 | + @Query(value="select new map(xlBm as xlBm) from ScheduleRealInfo s where s.scheduleDateStr = ?1 GROUP BY xlBm ORDER BY xlBm") | |
| 202 | 202 | List<Map<String,Object>> setDDRBGroup(String date); |
| 203 | 203 | |
| 204 | 204 | @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ... | ... |
src/main/java/com/bsth/service/TrafficManageService.java
src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
| ... | ... | @@ -201,7 +201,7 @@ public class FormsServiceImpl implements FormsService { |
| 201 | 201 | + " LEFT JOIN bsth_c_s_sp_info_real r on r.xl_bm=l.line_code" |
| 202 | 202 | + " where 1=1 "; |
| 203 | 203 | if(map.get("date").toString()!=""){ |
| 204 | - sql+="and to_days(r.schedule_date)=to_days('"+map.get("date").toString() + "') "; | |
| 204 | + sql+="and r.schedule_date_str='"+map.get("date").toString() + "'"; | |
| 205 | 205 | } |
| 206 | 206 | if( map.get("line").toString()!=""){ |
| 207 | 207 | sql+=" and l.line_code=" + map.get("line").toString(); |
| ... | ... | @@ -251,24 +251,14 @@ public class FormsServiceImpl implements FormsService { |
| 251 | 251 | }else{ |
| 252 | 252 | sql += " r.cl_zbh"; |
| 253 | 253 | } |
| 254 | - sql += " from bsth_c_s_sp_info_real r where 1=1 "; | |
| 255 | - if(map.get("startDate")!=null&&!map.get("startDate").equals("")){ | |
| 256 | - sql+=" and to_days(r.schedule_date_str) BETWEEN to_days('" + map.get("startDate").toString() + "') "; | |
| 257 | - } | |
| 258 | - | |
| 259 | - if(map.get("endDate")!=null&&!map.get("endDate").equals("")){ | |
| 260 | - sql+=" and to_days('" + map.get("endDate").toString() + "') "; | |
| 261 | - } | |
| 254 | + sql += " from bsth_c_s_sp_info_real r where " | |
| 255 | + + " r.schedule_date_str >= '" + map.get("startDate").toString() + "' " | |
| 256 | + + " and r.schedule_date_str <='" + map.get("endDate").toString() + "' "; | |
| 262 | 257 | if(map.get("line")!=null&&!map.get("line").equals("")){ |
| 263 | 258 | sql+=" and r.xl_bm='"+ map.get("line").toString() + "' "; |
| 264 | 259 | } |
| 265 | -// sql+= " AND r.gs_bm is not null and r.bc_type not in('in','out')"; | |
| 266 | -// if(map.get("gsdmManth")!=null&&!map.get("gsdmManth").equals("")){ | |
| 267 | - sql+=" and r.gs_bm like'%"+gsdmManth+"%' "; | |
| 268 | -// } | |
| 269 | - if(map.get("fgsdmManth")!=null&&!map.get("fgsdmManth").equals("")){ | |
| 270 | - sql+=" and r.fgs_bm like'%"+fgsdmManth+"%' "; | |
| 271 | - } | |
| 260 | + sql+=" and r.gs_bm like'%"+gsdmManth+"%' and r.fgs_bm like'%"+fgsdmManth+"%'"; | |
| 261 | + | |
| 272 | 262 | if(empnames.equals("驾驶员")){ |
| 273 | 263 | sql += " GROUP BY " |
| 274 | 264 | + "r.j_name,r.j_gh"; |
| ... | ... | @@ -278,11 +268,6 @@ public class FormsServiceImpl implements FormsService { |
| 278 | 268 | sql += " GROUP BY r.cl_zbh"; |
| 279 | 269 | } |
| 280 | 270 | |
| 281 | -// + ",r.gs_bm,r.gs_name," | |
| 282 | -// + "r.fgs_bm,r.fgs_name,r.bc_type "; | |
| 283 | - | |
| 284 | -// r.j_name,r.cl_zbh,r.j_gh,r.gs_bm,r.gs_name," | |
| 285 | -// + " r.fgs_bm,r.fgs_name,r.bc_type,r.s_name,r.lp_name | |
| 286 | 271 | List<Shiftuehiclemanth> list = jdbcTemplate.query(sql, new RowMapper<Shiftuehiclemanth>() { |
| 287 | 272 | |
| 288 | 273 | @Override |
| ... | ... | @@ -409,7 +394,7 @@ public class FormsServiceImpl implements FormsService { |
| 409 | 394 | + "IFNULL(r.s_name,'')as s_name," |
| 410 | 395 | + " r.cl_zbh,r.xl_bm, r.j_gh,r.gs_bm,r.fgs_bm,r.lp_name " |
| 411 | 396 | + "FROM bsth_c_s_sp_info_real r where 1=1 " |
| 412 | - + " and to_days(r.schedule_date)=to_days('"+date + "') " | |
| 397 | + + " and r.schedule_date_str='"+date + "' " | |
| 413 | 398 | + " and r.xl_bm like '%"+line+"%' " |
| 414 | 399 | + " and r.gs_bm like '%"+gsdmShif+"%' " |
| 415 | 400 | + " and r.fgs_bm like '%"+fgsdmShif+"%' ) t" |
| ... | ... | @@ -547,19 +532,6 @@ public class FormsServiceImpl implements FormsService { |
| 547 | 532 | if(map.get("fgsdm")!=null){ |
| 548 | 533 | fgs =map.get("fgsdm").toString(); |
| 549 | 534 | } |
| 550 | - /*String sql = " select c.*,l.line_code from bsth_c_chtoch c LEFT JOIN bsth_c_line l on c.xl=l.name WHERE 1=1 "; | |
| 551 | - if (!map.get("startDate").toString().equals(" ") && !map.get("endDate").toString().equals(" ")) { | |
| 552 | - sql += "and DATE_FORMAT( c.rq,'%Y-%m-%d') BETWEEN '" + map.get("startDate").toString() + "' and '" | |
| 553 | - + map.get("endDate").toString() + "'"; | |
| 554 | - } | |
| 555 | - if (!map.get("line").equals("")) { | |
| 556 | - sql += "and line_code='" + map.get("line") + "'"; | |
| 557 | - } | |
| 558 | - if (map.get("sel").equals("2")) { | |
| 559 | - sql += " and c.pcch!=c.pcry"; | |
| 560 | - } else if (map.get("sel").equals("1")) { | |
| 561 | - sql += " and c.jhgh!=c.sjgh"; | |
| 562 | - }*/ | |
| 563 | 535 | |
| 564 | 536 | String sql="select * from bsth_c_chtoch where rq BETWEEN '"+ map.get("startDate").toString()+"' " |
| 565 | 537 | + " and '"+map.get("endDate").toString() +"'"; |
| ... | ... | @@ -630,19 +602,6 @@ public class FormsServiceImpl implements FormsService { |
| 630 | 602 | |
| 631 | 603 | // rq = rq2 + "-" + rq3; |
| 632 | 604 | startDate = map.get("startDate").toString(); |
| 633 | -// endDate = map.get("endDate").toString(); | |
| 634 | -// String sql = "select t.*,y.yh,y.jzl from (" | |
| 635 | -// + " select r.xl_bm,r.xl_name,r.cl_zbh,r.j_gh,r.j_name,r.gs_bm,r.fgs_bm" | |
| 636 | -// + " from bsth_c_s_sp_info_real r where r.schedule_date_str " | |
| 637 | -// + " BETWEEN '"+startDate+"' and '"+endDate+"' and r.xl_bm='"+map.get("line").toString()+"' " | |
| 638 | -// + " AND r.gs_bm is not null and r.gs_bm='"+map.get("gsdmSing").toString()+"' " | |
| 639 | -// + " and r.fgs_bm='"+map.get("fgsdmSing").toString()+"' " | |
| 640 | -// + " group by r.xl_bm,r.xl_name,r.cl_zbh,r.j_gh,r.j_name,r.gs_bm,r.fgs_bm) t " | |
| 641 | -// + " LEFT JOIN (select a.nbbm,a.jsy,SUM(a.yh) as yh,SUM(a.jzl) as jzl " | |
| 642 | -// + " from bsth_c_ylb a where a.rq BETWEEN '"+startDate+"' and '"+endDate+"'and " | |
| 643 | -// + " a.ssgsdm='"+map.get("gsdmSing").toString()+"' and a.fgsdm='"+map.get("fgsdmSing").toString()+"' " | |
| 644 | -// + "group by a.nbbm,a.jsy) y" | |
| 645 | -// + " on y.nbbm=t.cl_zbh and y.jsy= t.j_gh"; | |
| 646 | 605 | |
| 647 | 606 | String sql="select r.s_gh,r.s_name, " |
| 648 | 607 | + " r.xl_bm,r.cl_zbh,r.j_gh,r.j_name,r.gs_bm,r.fgs_bm" |
| ... | ... | @@ -775,19 +734,28 @@ public class FormsServiceImpl implements FormsService { |
| 775 | 734 | String line=y.getXlbm(); |
| 776 | 735 | String clzbh=y.getNbbm(); |
| 777 | 736 | List<ScheduleRealInfo> newList=new ArrayList<ScheduleRealInfo>(); |
| 737 | + List<ScheduleRealInfo> newList_=new ArrayList<ScheduleRealInfo>(); | |
| 778 | 738 | for (int j = 0; j < listReal.size(); j++) { |
| 779 | 739 | ScheduleRealInfo s=listReal.get(j); |
| 780 | 740 | if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh) |
| 781 | 741 | &&s.getXlBm().equals(line)){ |
| 782 | 742 | newList.add(s); |
| 743 | + Set<ChildTaskPlan> cts = s.getcTasks(); | |
| 744 | + if(cts != null && cts.size() > 0){ | |
| 745 | + newList_.add(s); | |
| 746 | + }else{ | |
| 747 | + if(s.getZdsjActual()!=null){ | |
| 748 | + newList_.add(s); | |
| 749 | + } | |
| 750 | + } | |
| 783 | 751 | } |
| 784 | 752 | } |
| 785 | 753 | double jhgl=culateMileageService.culateJhgl(newList); |
| 786 | 754 | double jhjcc=culateMileageService.culateJhJccgl(newList); |
| 787 | - double yygl=culateMileageService.culateSjgl(newList); | |
| 788 | - double ljgl=culateMileageService.culateLjgl(newList); | |
| 789 | - double ksgl=culateMileageService.culateKsgl(newList); | |
| 790 | - double jcgl=culateMileageService.culateJccgl(newList); | |
| 755 | + double yygl=culateMileageService.culateSjgl(newList_); | |
| 756 | + double ljgl=culateMileageService.culateLjgl(newList_); | |
| 757 | + double ksgl=culateMileageService.culateKsgl(newList_); | |
| 758 | + double jcgl=culateMileageService.culateJccgl(newList_); | |
| 791 | 759 | |
| 792 | 760 | double zyygl=Arith.add(yygl, ljgl); |
| 793 | 761 | double zksgl=Arith.add(ksgl, jcgl); |
| ... | ... | @@ -797,7 +765,8 @@ public class FormsServiceImpl implements FormsService { |
| 797 | 765 | |
| 798 | 766 | sin.setEmptMileage(String.valueOf(zksgl)); |
| 799 | 767 | sin.setJhjl(String.valueOf(Arith.add(jhgl,jhjcc))); |
| 800 | - sin.setxL(BasicData.lineCode2NameMap.get(y.getXlbm())); | |
| 768 | + sin.setxL(y.getXlbm()); | |
| 769 | + sin.setXlmc(BasicData.lineCode2NameMap.get(y.getXlbm())); | |
| 801 | 770 | sin.setClzbh(clzbh); |
| 802 | 771 | sin.setJsy(jsy); |
| 803 | 772 | sin.setrQ(startDate); |
| ... | ... | @@ -819,19 +788,28 @@ public class FormsServiceImpl implements FormsService { |
| 819 | 788 | String line=y.getXlbm(); |
| 820 | 789 | String clzbh=y.getNbbm(); |
| 821 | 790 | List<ScheduleRealInfo> newList=new ArrayList<ScheduleRealInfo>(); |
| 791 | + List<ScheduleRealInfo> newList_=new ArrayList<ScheduleRealInfo>(); | |
| 822 | 792 | for (int j = 0; j < listReal.size(); j++) { |
| 823 | 793 | ScheduleRealInfo s=listReal.get(j); |
| 824 | 794 | if(s.getjGh().equals(jsy) && s.getClZbh().equals(clzbh) |
| 825 | 795 | &&s.getXlBm().equals(line)){ |
| 826 | 796 | newList.add(s); |
| 797 | + Set<ChildTaskPlan> cts = s.getcTasks(); | |
| 798 | + if(cts != null && cts.size() > 0){ | |
| 799 | + newList_.add(s); | |
| 800 | + }else{ | |
| 801 | + if(s.getZdsjActual()!=null){ | |
| 802 | + newList_.add(s); | |
| 803 | + } | |
| 804 | + } | |
| 827 | 805 | } |
| 828 | 806 | } |
| 829 | 807 | double jhgl=culateMileageService.culateJhgl(newList); |
| 830 | 808 | double jhjcc=culateMileageService.culateJhJccgl(newList); |
| 831 | - double yygl=culateMileageService.culateSjgl(newList); | |
| 832 | - double ljgl=culateMileageService.culateLjgl(newList); | |
| 833 | - double ksgl=culateMileageService.culateKsgl(newList); | |
| 834 | - double jcgl=culateMileageService.culateJccgl(newList); | |
| 809 | + double yygl=culateMileageService.culateSjgl(newList_); | |
| 810 | + double ljgl=culateMileageService.culateLjgl(newList_); | |
| 811 | + double ksgl=culateMileageService.culateKsgl(newList_); | |
| 812 | + double jcgl=culateMileageService.culateJccgl(newList_); | |
| 835 | 813 | |
| 836 | 814 | double zyygl=Arith.add(yygl, ljgl); |
| 837 | 815 | double zksgl=Arith.add(ksgl, jcgl); |
| ... | ... | @@ -841,7 +819,8 @@ public class FormsServiceImpl implements FormsService { |
| 841 | 819 | |
| 842 | 820 | sin.setEmptMileage(String.valueOf(zksgl)); |
| 843 | 821 | sin.setJhjl(String.valueOf(Arith.add(jhgl,jhjcc))); |
| 844 | - sin.setxL(BasicData.lineCode2NameMap.get(y.getXlbm())); | |
| 822 | + sin.setxL(y.getXlbm()); | |
| 823 | + sin.setXlmc(BasicData.lineCode2NameMap.get(y.getXlbm())); | |
| 845 | 824 | sin.setClzbh(clzbh); |
| 846 | 825 | sin.setJsy(jsy); |
| 847 | 826 | sin.setrQ(startDate); |
| ... | ... | @@ -855,10 +834,10 @@ public class FormsServiceImpl implements FormsService { |
| 855 | 834 | listD.add(sin); |
| 856 | 835 | } |
| 857 | 836 | |
| 858 | - Collections.sort(listY,new SingledataByXlbm()); | |
| 859 | - Collections.sort(listD,new SingledataByXlbm()); | |
| 860 | - list.addAll(listY); | |
| 861 | - list.addAll(listD); | |
| 837 | + Collections.sort(listY,new SingledataByXlbm()); | |
| 838 | + Collections.sort(listD,new SingledataByXlbm()); | |
| 839 | + list.addAll(listY); | |
| 840 | + list.addAll(listD); | |
| 862 | 841 | }else{ |
| 863 | 842 | String sql="select r.s_gh,r.s_name, " |
| 864 | 843 | + " r.xl_bm,r.cl_zbh,r.gs_bm,r.fgs_bm" |
| ... | ... | @@ -894,19 +873,29 @@ public class FormsServiceImpl implements FormsService { |
| 894 | 873 | String line=sin.getxL(); |
| 895 | 874 | String clzbh=sin.getClzbh(); |
| 896 | 875 | List<ScheduleRealInfo> newList=new ArrayList<ScheduleRealInfo>(); |
| 876 | + List<ScheduleRealInfo> newList_=new ArrayList<ScheduleRealInfo>(); | |
| 877 | + | |
| 897 | 878 | for (int j = 0; j < listReal.size(); j++) { |
| 898 | 879 | ScheduleRealInfo s=listReal.get(j); |
| 899 | 880 | if(s.getsGh().equals(jsy) && s.getClZbh().equals(clzbh) |
| 900 | 881 | &&s.getXlBm().equals(line)){ |
| 901 | 882 | newList.add(s); |
| 883 | + Set<ChildTaskPlan> cts = s.getcTasks(); | |
| 884 | + if(cts != null && cts.size() > 0){ | |
| 885 | + newList_.add(s); | |
| 886 | + }else{ | |
| 887 | + if(s.getZdsjActual()!=null){ | |
| 888 | + newList_.add(s); | |
| 889 | + } | |
| 890 | + } | |
| 902 | 891 | } |
| 903 | 892 | } |
| 904 | 893 | double jhgl=culateMileageService.culateJhgl(newList); |
| 905 | 894 | double jhjcc=culateMileageService.culateJhJccgl(newList); |
| 906 | - double yygl=culateMileageService.culateSjgl(newList); | |
| 907 | - double ljgl=culateMileageService.culateLjgl(newList); | |
| 908 | - double ksgl=culateMileageService.culateKsgl(newList); | |
| 909 | - double jcgl=culateMileageService.culateJccgl(newList); | |
| 895 | + double yygl=culateMileageService.culateSjgl(newList_); | |
| 896 | + double ljgl=culateMileageService.culateLjgl(newList_); | |
| 897 | + double ksgl=culateMileageService.culateKsgl(newList_); | |
| 898 | + double jcgl=culateMileageService.culateJccgl(newList_); | |
| 910 | 899 | |
| 911 | 900 | double zyygl=Arith.add(yygl, ljgl); |
| 912 | 901 | double zksgl=Arith.add(ksgl, jcgl); |
| ... | ... | @@ -1210,8 +1199,8 @@ public class FormsServiceImpl implements FormsService { |
| 1210 | 1199 | |
| 1211 | 1200 | String sql = "select gs_name, fgs_name, cl_zbh, fcsj, bc_type, xl_bm, xl_name, schedule_date" |
| 1212 | 1201 | + " from bsth_c_s_sp_info where gs_bm = '"+company+"' and fgs_bm = '"+subCompany+"' " |
| 1213 | - + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') >= '"+startDate+"' " | |
| 1214 | - + "and DATE_FORMAT(schedule_date,'%Y-%m-%d') <= '"+endDate+"' "; | |
| 1202 | + + "and schedule_date_str >= '"+startDate+"' " | |
| 1203 | + + "and schedule_date_str <= '"+endDate+"' "; | |
| 1215 | 1204 | if(line.trim().length() != 0){ |
| 1216 | 1205 | sql += "and xl_bm = '"+line+"' "; |
| 1217 | 1206 | } |
| ... | ... | @@ -1367,8 +1356,8 @@ public class FormsServiceImpl implements FormsService { |
| 1367 | 1356 | |
| 1368 | 1357 | String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from " |
| 1369 | 1358 | + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type" |
| 1370 | - + " from bsth_c_s_sp_info" + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '" | |
| 1371 | - + map.get("startDate").toString() + "' and '" + map.get("endDate").toString() + "' and xl_bm='" | |
| 1359 | + + " from bsth_c_s_sp_info" + " where schedule_date_str >= '" | |
| 1360 | + + map.get("startDate").toString() + "' and schedule_date_str <='" + map.get("endDate").toString() + "' and xl_bm='" | |
| 1372 | 1361 | + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out')" |
| 1373 | 1362 | + " and gs_bm='"+ map.get("gsdmEcecut").toString() + "'" |
| 1374 | 1363 | + " and fgs_bm='"+ map.get("fgsdmEcecut").toString() + "'" |
| ... | ... | @@ -1376,7 +1365,7 @@ public class FormsServiceImpl implements FormsService { |
| 1376 | 1365 | + " ) a left JOIN (" |
| 1377 | 1366 | + "SELECT COUNT(*) as xlgs,b.gs_bm,b.fgs_bm,b.xl_bm,b.xl_name,b.gs_name,b.fgs_name, b.sbc,b.sxl ,b.scl " |
| 1378 | 1367 | + "from bsth_c_line t RIGHT JOIN (select gs_bm,fgs_bm,xl_bm,xl_name,gs_name,fgs_name, count(*) as sbc,COUNT(DISTINCT xl_bm) as sxl ,COUNT(DISTINCT cl_zbh) as scl,bc_type from bsth_c_s_sp_info_real " |
| 1379 | - + "where DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '" + map.get("startDate").toString() + "' and '" | |
| 1368 | + + "where schedule_date_str >= '" + map.get("startDate").toString() + "' and schedule_date_str <= '" | |
| 1380 | 1369 | + map.get("endDate").toString() + "' and xl_bm='" + map.get("line").toString() |
| 1381 | 1370 | + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out') " |
| 1382 | 1371 | // + " GROUP BY gs_bm,fgs_bm,xl_bm,gs_name,fgs_name,bc_type" |
| ... | ... | @@ -1451,8 +1440,8 @@ public class FormsServiceImpl implements FormsService { |
| 1451 | 1440 | |
| 1452 | 1441 | String sql = " select b.xlgs, a.gs_bm,a.gs_name, a.fgs_bm,a.fgs_name , a.xl_bm,b.xl_name,b.sbc,b.sxl,b.scl,a.jbc ,a.jxl ,a.jcl,a.gslsbm,a.fgsbm,a.bc_type from " |
| 1453 | 1442 | + " (select count(DISTINCT gs_bm) gslsbm, gs_bm, count(DISTINCT fgs_bm) fgsbm,fgs_bm,gs_name,fgs_name ,xl_bm, count(*) as jbc,COUNT(DISTINCT xl_bm) as jxl ,COUNT(DISTINCT cl_zbh) as jcl,bc_type" |
| 1454 | - + " from bsth_c_s_sp_info" + " where DATE_FORMAT(schedule_date,'%Y-%m-%d') BETWEEN '" | |
| 1455 | - + map.get("startDate").toString() + "' and '" + map.get("endDate").toString() + "' and xl_bm='" | |
| 1443 | + + " from bsth_c_s_sp_info" + " where schedule_date_str >= '" | |
| 1444 | + + map.get("startDate").toString() + "' and schedule_date_str<= '" + map.get("endDate").toString() + "' and xl_bm='" | |
| 1456 | 1445 | + map.get("line").toString() + "' AND gs_bm is not null AND bc_type NOT IN ('in', 'out') " |
| 1457 | 1446 | + " and gs_bm='"+ map.get("gsdmAllline").toString() + "'" |
| 1458 | 1447 | + " and fgs_bm='"+ map.get("fgsdmAllline").toString() + "'" | ... | ... |
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
| ... | ... | @@ -17,7 +17,6 @@ import java.util.List; |
| 17 | 17 | import java.util.Map; |
| 18 | 18 | import java.util.Set; |
| 19 | 19 | |
| 20 | -import org.apache.commons.lang3.StringEscapeUtils; | |
| 21 | 20 | import org.springframework.beans.factory.annotation.Autowired; |
| 22 | 21 | import org.springframework.jdbc.core.BeanPropertyRowMapper; |
| 23 | 22 | import org.springframework.jdbc.core.JdbcTemplate; |
| ... | ... | @@ -25,7 +24,6 @@ import org.springframework.jdbc.core.RowMapper; |
| 25 | 24 | import org.springframework.stereotype.Service; |
| 26 | 25 | |
| 27 | 26 | import com.alibaba.fastjson.JSONArray; |
| 28 | -import com.alibaba.fastjson.JSONObject; | |
| 29 | 27 | import com.bsth.data.BasicData; |
| 30 | 28 | import com.bsth.data.schedule.edit_logs.service.dto.SchEditInfoDto; |
| 31 | 29 | import com.bsth.entity.realcontrol.ChildTaskPlan; |
| ... | ... | @@ -1715,13 +1713,13 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 1715 | 1713 | } |
| 1716 | 1714 | } |
| 1717 | 1715 | boolean flag = true; |
| 1718 | - if(jhlc.toString().equals("0")){ | |
| 1716 | + if(jhlc.doubleValue() == 0d){ | |
| 1719 | 1717 | flag = false; |
| 1720 | 1718 | } |
| 1721 | 1719 | tempMap.put("date", Date); |
| 1722 | 1720 | tempMap.put("company", companyName); |
| 1723 | 1721 | tempMap.put("subCompany", subCompanyName); |
| 1724 | - tempMap.put("times", times); | |
| 1722 | + tempMap.put("times", sfqr == 1 ? times : "全日"); | |
| 1725 | 1723 | tempMap.put("line", key); |
| 1726 | 1724 | tempMap.put("jhbc", jhbc); |
| 1727 | 1725 | tempMap.put("sjbc", sjbc); |
| ... | ... | @@ -1732,37 +1730,37 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 1732 | 1730 | tempMap.put("lcbfb", df.format(flag?sjlc.divide(jhlc, 4, BigDecimal.ROUND_HALF_UP).doubleValue()*100:0)+"%"); |
| 1733 | 1731 | tempMap.put("lzbc", lzbc); |
| 1734 | 1732 | tempMap.put("lzlc", lzlc.doubleValue()); |
| 1735 | - tempMap.put("lzbfb", df.format(flag?(double)lzbc/jhbc*100:0)+"%"); | |
| 1733 | + tempMap.put("lzbfb", df.format(jhbc>0?(double)lzbc/jhbc*100:0)+"%"); | |
| 1736 | 1734 | tempMap.put("dmbc", dmbc); |
| 1737 | 1735 | tempMap.put("dmlc", dmlc.doubleValue()); |
| 1738 | - tempMap.put("dmbfb", df.format(flag?(double)dmbc/jhbc*100:0)+"%"); | |
| 1736 | + tempMap.put("dmbfb", df.format(jhbc>0?(double)dmbc/jhbc*100:0)+"%"); | |
| 1739 | 1737 | tempMap.put("gzbc", gzbc); |
| 1740 | 1738 | tempMap.put("gzlc", gzlc.doubleValue()); |
| 1741 | - tempMap.put("gzbfb", df.format(flag?(double)gzbc/jhbc*100:0)+"%"); | |
| 1739 | + tempMap.put("gzbfb", df.format(jhbc>0?(double)gzbc/jhbc*100:0)+"%"); | |
| 1742 | 1740 | tempMap.put("jfbc", jfbc); |
| 1743 | 1741 | tempMap.put("jflc", jflc.doubleValue()); |
| 1744 | - tempMap.put("jfbfb", df.format(flag?(double)jfbc/jhbc*100:0)+"%"); | |
| 1742 | + tempMap.put("jfbfb", df.format(jhbc>0?(double)jfbc/jhbc*100:0)+"%"); | |
| 1745 | 1743 | tempMap.put("zsbc", zsbc); |
| 1746 | 1744 | tempMap.put("zslc", zslc.doubleValue()); |
| 1747 | - tempMap.put("zsbfb", df.format(flag?(double)zsbc/jhbc*100:0)+"%"); | |
| 1745 | + tempMap.put("zsbfb", df.format(jhbc>0?(double)zsbc/jhbc*100:0)+"%"); | |
| 1748 | 1746 | tempMap.put("qrbc", qrbc); |
| 1749 | 1747 | tempMap.put("qrlc", qrlc.doubleValue()); |
| 1750 | - tempMap.put("qrbfb", df.format(flag?(double)qrbc/jhbc*100:0)+"%"); | |
| 1748 | + tempMap.put("qrbfb", df.format(jhbc>0?(double)qrbc/jhbc*100:0)+"%"); | |
| 1751 | 1749 | tempMap.put("qcbc", qcbc); |
| 1752 | 1750 | tempMap.put("qclc", qclc.doubleValue()); |
| 1753 | - tempMap.put("qcbfb", df.format(flag?(double)qcbc/jhbc*100:0)+"%"); | |
| 1751 | + tempMap.put("qcbfb", df.format(jhbc>0?(double)qcbc/jhbc*100:0)+"%"); | |
| 1754 | 1752 | tempMap.put("kxbc", kxbc); |
| 1755 | 1753 | tempMap.put("kxlc", kxlc.doubleValue()); |
| 1756 | - tempMap.put("kxbfb", df.format(flag?(double)kxbc/jhbc*100:0)+"%"); | |
| 1754 | + tempMap.put("kxbfb", df.format(jhbc>0?(double)kxbc/jhbc*100:0)+"%"); | |
| 1757 | 1755 | tempMap.put("qhbc", qhbc); |
| 1758 | 1756 | tempMap.put("qhlc", qhlc.doubleValue()); |
| 1759 | - tempMap.put("qhbfb", df.format(flag?(double)qhbc/jhbc*100:0)+"%"); | |
| 1757 | + tempMap.put("qhbfb", df.format(jhbc>0?(double)qhbc/jhbc*100:0)+"%"); | |
| 1760 | 1758 | tempMap.put("wybc", wybc); |
| 1761 | 1759 | tempMap.put("wylc", wylc.doubleValue()); |
| 1762 | - tempMap.put("wybfb", df.format(flag?(double)wybc/jhbc*100:0)+"%"); | |
| 1760 | + tempMap.put("wybfb", df.format(jhbc>0?(double)wybc/jhbc*100:0)+"%"); | |
| 1763 | 1761 | tempMap.put("qtbc", qtbc); |
| 1764 | 1762 | tempMap.put("qtlc", qtlc.doubleValue()); |
| 1765 | - tempMap.put("qtbfb", df.format(flag?(double)qtbc/jhbc*100:0)+"%"); | |
| 1763 | + tempMap.put("qtbfb", df.format(jhbc>0?(double)qtbc/jhbc*100:0)+"%"); | |
| 1766 | 1764 | |
| 1767 | 1765 | resList.add(tempMap); |
| 1768 | 1766 | } |
| ... | ... | @@ -1784,7 +1782,6 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 1784 | 1782 | e.printStackTrace(); |
| 1785 | 1783 | } |
| 1786 | 1784 | } |
| 1787 | - System.out.println(map); | |
| 1788 | 1785 | |
| 1789 | 1786 | return resList; |
| 1790 | 1787 | } | ... | ... |
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -279,14 +279,30 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
| 282 | + * 上传路单 指定日期 yyyy-MM-dd | |
| 283 | + * @param theDate | |
| 284 | + * @return | |
| 285 | + */ | |
| 286 | + public String setLD(String theDate){ | |
| 287 | + return uploadLD(theDate); | |
| 288 | + } | |
| 289 | + | |
| 290 | + /** | |
| 291 | + * 上传路单 上传前一天的路单 | |
| 292 | + * @return | |
| 293 | + */ | |
| 294 | + public String setLD(){ | |
| 295 | + return uploadLD(null); | |
| 296 | + } | |
| 297 | + /** | |
| 282 | 298 | * 上传路单 |
| 283 | 299 | * @return 上传成功标识 |
| 284 | 300 | */ |
| 285 | - public String setLD(){ | |
| 301 | + private String uploadLD(String theDate){ | |
| 286 | 302 | String result = "failure"; |
| 287 | 303 | Line line; |
| 288 | 304 | // 取昨天 的日期 |
| 289 | - String date = sdfnyr.format(DateUtils.addDays(new Date(), -1)); | |
| 305 | + String date = theDate == null ?sdfnyr.format(DateUtils.addDays(new Date(), -1)) : theDate; | |
| 290 | 306 | StringBuffer sf = new StringBuffer(); |
| 291 | 307 | String str; |
| 292 | 308 | try { | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -24,6 +24,7 @@ import com.bsth.data.utils.CustomStringUtils; |
| 24 | 24 | import com.bsth.entity.Cars; |
| 25 | 25 | import com.bsth.entity.Line; |
| 26 | 26 | import com.bsth.entity.Personnel; |
| 27 | +import com.bsth.entity.mcy_forms.Waybillday; | |
| 27 | 28 | import com.bsth.entity.oil.Dlb; |
| 28 | 29 | import com.bsth.entity.oil.Ylb; |
| 29 | 30 | import com.bsth.entity.oil.Ylxxb; |
| ... | ... | @@ -789,13 +790,13 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 789 | 790 | + " select min(s.id) as id,s.j_Gh as jGh,s.cl_Zbh as clZbh, " |
| 790 | 791 | + " s.lp_Name as lpName,s.j_Name as jName,max(s.schedule_date_str) as dateStr ," |
| 791 | 792 | + " min(s.fcsj) as fcsj,1 as px from bsth_c_s_sp_info_real s where " |
| 792 | - + " s.xl_Bm = '"+line+"' and DATE_FORMAT(s.schedule_Date,'%Y-%m-%d') ='"+date+"'" | |
| 793 | + + " s.xl_Bm = '"+line+"' and s.schedule_date_str ='"+date+"'" | |
| 793 | 794 | + " GROUP BY s.j_Gh,s.cl_Zbh,s.lp_Name ,s.j_Name ) x where x.fcsj >'"+minfcsj+"'" |
| 794 | 795 | + " UNION " |
| 795 | 796 | + " select * from ( select min(s.id) as id,s.j_Gh as jGh,s.cl_Zbh as clZbh, " |
| 796 | 797 | + " s.lp_Name as lpName,s.j_Name as jName, max(s.schedule_date_str) as dateStr," |
| 797 | 798 | + " min(s.fcsj) as fcsj,2 as px from bsth_c_s_sp_info_real s " |
| 798 | - + " where s.xl_Bm = '"+line+"' and DATE_FORMAT(s.schedule_Date,'%Y-%m-%d') ='"+date+"'" | |
| 799 | + + " where s.xl_Bm = '"+line+"' and s.schedule_date_str ='"+date+"'" | |
| 799 | 800 | + " GROUP BY s.j_Gh,s.cl_Zbh,s.lp_Name ,s.j_Name " |
| 800 | 801 | + " ) y where y.fcsj <='"+minfcsj+"') z order by (" + state + "),dateStr,px " + type; |
| 801 | 802 | List<ScheduleRealInfo> list = jdbcTemplate.query(sqlPlan, |
| ... | ... | @@ -2944,17 +2945,13 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2944 | 2945 | }else{ |
| 2945 | 2946 | yesterdayDataList=scheduleRealInfoRepository.yesterdayDataList_eq(line, date,gsbm,fgsbm,nbbm); |
| 2946 | 2947 | } |
| 2947 | - | |
| 2948 | -// System.out.println("shijian2:"+new Date()); | |
| 2949 | - // List<ScheduleRealInfo> list = scheduleRealInfoRepository.scheduleByDateAndLine(line, date); | |
| 2948 | + System.out.println("time2:"+new Date()); | |
| 2949 | + | |
| 2950 | 2950 | List<ScheduleRealInfo> lists = scheduleRealInfoRepository.queryListWaybill3(jGh, nbbm, date,gsbm,fgsbm); |
| 2951 | -// System.out.println("shijian3:"+new Date()); | |
| 2952 | 2951 | for (int x = 0; x < yesterdayDataList.size(); x++) { |
| 2953 | 2952 | String jName = yesterdayDataList.get(x).get("jGh").toString(); |
| 2954 | 2953 | String clZbh = yesterdayDataList.get(x).get("clZbh").toString(); |
| 2955 | 2954 | String xlbm = yesterdayDataList.get(x).get("xlBm").toString(); |
| 2956 | -// double jhlc = 0, yygl = 0, ksgl = 0, tempJhlc = 0, jcclc = 0; | |
| 2957 | - double addMileage = 0, remMileage = 0; | |
| 2958 | 2955 | Map<String, Object> map = new HashMap<String, Object>(); |
| 2959 | 2956 | boolean fage = true; |
| 2960 | 2957 | String company=""; |
| ... | ... | @@ -2982,7 +2979,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2982 | 2979 | |
| 2983 | 2980 | yesterdayDataList.get(x).put("company", company); |
| 2984 | 2981 | yesterdayDataList.get(x).put("bCompany", bCompany); |
| 2985 | -// Double zgl=Arith.add(yygl,ksgl); | |
| 2986 | 2982 | Double ljgl=culateMieageService.culateLjgl(listS); |
| 2987 | 2983 | Double sjgl=culateMieageService.culateSjgl(listS); |
| 2988 | 2984 | Double ksgl=culateMieageService.culateKsgl(listS); |
| ... | ... | @@ -2993,15 +2989,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 2993 | 2989 | yesterdayDataList.get(x).put("totalKilometers", zlc); |
| 2994 | 2990 | |
| 2995 | 2991 | } |
| 2996 | - /* List<Map<String, Object>> yesterdayDataLists = new ArrayList<Map<String, Object>>(); | |
| 2997 | - | |
| 2998 | - for (int i = 0; i < yesterdayDataList.size(); i++) { | |
| 2999 | - Map<String, Object> map=yesterdayDataList.get(i); | |
| 3000 | - Double zlc=map.get("totalKilometers")==null?0.0:Double.parseDouble(map.get("totalKilometers").toString()); | |
| 3001 | -// if(zlc>0){ | |
| 3002 | - yesterdayDataLists.add(map); | |
| 3003 | -// } | |
| 3004 | - }*/ | |
| 3005 | 2992 | //增加顺序号 |
| 3006 | 2993 | for (int i = 0; i < yesterdayDataList.size(); i++) { |
| 3007 | 2994 | if (i == 0) { | ... | ... |
src/main/resources/datatools/ktrs/employeesConfigDataInput.ktr
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<transformation> | |
| 3 | - <info> | |
| 4 | - <name>人员配置信息导入</name> | |
| 5 | - <description>人员配置信息导入</description> | |
| 6 | - <extended_description>人员配置信息</extended_description> | |
| 7 | - <trans_version/> | |
| 8 | - <trans_type>Normal</trans_type> | |
| 9 | - <trans_status>0</trans_status> | |
| 10 | - <directory>/</directory> | |
| 11 | - <parameters> | |
| 12 | - <parameter> | |
| 13 | - <name>erroroutputdir</name> | |
| 14 | - <default_value/> | |
| 15 | - <description>ktr step配置的错误输出目录</description> | |
| 16 | - </parameter> | |
| 17 | - <parameter> | |
| 18 | - <name>filepath</name> | |
| 19 | - <default_value/> | |
| 20 | - <description>待处理导入的excel文件</description> | |
| 21 | - </parameter> | |
| 22 | - </parameters> | |
| 23 | - <log> | |
| 24 | -<trans-log-table><connection/> | |
| 25 | -<schema/> | |
| 26 | -<table/> | |
| 27 | -<size_limit_lines/> | |
| 28 | -<interval/> | |
| 29 | -<timeout_days/> | |
| 30 | -<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field><field><id>EXECUTING_SERVER</id><enabled>N</enabled><name>EXECUTING_SERVER</name></field><field><id>EXECUTING_USER</id><enabled>N</enabled><name>EXECUTING_USER</name></field><field><id>CLIENT</id><enabled>N</enabled><name>CLIENT</name></field></trans-log-table> | |
| 31 | -<perf-log-table><connection/> | |
| 32 | -<schema/> | |
| 33 | -<table/> | |
| 34 | -<interval/> | |
| 35 | -<timeout_days/> | |
| 36 | -<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table> | |
| 37 | -<channel-log-table><connection/> | |
| 38 | -<schema/> | |
| 39 | -<table/> | |
| 40 | -<timeout_days/> | |
| 41 | -<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table> | |
| 42 | -<step-log-table><connection/> | |
| 43 | -<schema/> | |
| 44 | -<table/> | |
| 45 | -<timeout_days/> | |
| 46 | -<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table> | |
| 47 | -<metrics-log-table><connection/> | |
| 48 | -<schema/> | |
| 49 | -<table/> | |
| 50 | -<timeout_days/> | |
| 51 | -<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>METRICS_DATE</id><enabled>Y</enabled><name>METRICS_DATE</name></field><field><id>METRICS_CODE</id><enabled>Y</enabled><name>METRICS_CODE</name></field><field><id>METRICS_DESCRIPTION</id><enabled>Y</enabled><name>METRICS_DESCRIPTION</name></field><field><id>METRICS_SUBJECT</id><enabled>Y</enabled><name>METRICS_SUBJECT</name></field><field><id>METRICS_TYPE</id><enabled>Y</enabled><name>METRICS_TYPE</name></field><field><id>METRICS_VALUE</id><enabled>Y</enabled><name>METRICS_VALUE</name></field></metrics-log-table> | |
| 52 | - </log> | |
| 53 | - <maxdate> | |
| 54 | - <connection/> | |
| 55 | - <table/> | |
| 56 | - <field/> | |
| 57 | - <offset>0.0</offset> | |
| 58 | - <maxdiff>0.0</maxdiff> | |
| 59 | - </maxdate> | |
| 60 | - <size_rowset>10000</size_rowset> | |
| 61 | - <sleep_time_empty>50</sleep_time_empty> | |
| 62 | - <sleep_time_full>50</sleep_time_full> | |
| 63 | - <unique_connections>N</unique_connections> | |
| 64 | - <feedback_shown>Y</feedback_shown> | |
| 65 | - <feedback_size>50000</feedback_size> | |
| 66 | - <using_thread_priorities>Y</using_thread_priorities> | |
| 67 | - <shared_objects_file/> | |
| 68 | - <capture_step_performance>N</capture_step_performance> | |
| 69 | - <step_performance_capturing_delay>1000</step_performance_capturing_delay> | |
| 70 | - <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit> | |
| 71 | - <dependencies> | |
| 72 | - </dependencies> | |
| 73 | - <partitionschemas> | |
| 74 | - </partitionschemas> | |
| 75 | - <slaveservers> | |
| 76 | - </slaveservers> | |
| 77 | - <clusterschemas> | |
| 78 | - </clusterschemas> | |
| 79 | - <created_user>-</created_user> | |
| 80 | - <created_date>2016/06/29 15:12:27.273</created_date> | |
| 81 | - <modified_user>-</modified_user> | |
| 82 | - <modified_date>2016/06/29 15:12:27.273</modified_date> | |
| 83 | - <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> | |
| 84 | - <is_key_private>N</is_key_private> | |
| 85 | - </info> | |
| 86 | - <notepads> | |
| 87 | - <notepad> | |
| 88 | - <note>这里有些问题
在window2012的环境下,
MySql数据库查询中如果返回中文内容的字段,这个内容乱码
解决办法,就是数据库查询全部缓存,就不乱码
linux环境下没问题</note> | |
| 89 | - <xloc>101</xloc> | |
| 90 | - <yloc>264</yloc> | |
| 91 | - <width>333</width> | |
| 92 | - <heigth>90</heigth> | |
| 93 | - <fontname>YaHei Consolas Hybrid</fontname> | |
| 94 | - <fontsize>12</fontsize> | |
| 95 | - <fontbold>N</fontbold> | |
| 96 | - <fontitalic>N</fontitalic> | |
| 97 | - <fontcolorred>0</fontcolorred> | |
| 98 | - <fontcolorgreen>0</fontcolorgreen> | |
| 99 | - <fontcolorblue>0</fontcolorblue> | |
| 100 | - <backgroundcolorred>255</backgroundcolorred> | |
| 101 | - <backgroundcolorgreen>205</backgroundcolorgreen> | |
| 102 | - <backgroundcolorblue>112</backgroundcolorblue> | |
| 103 | - <bordercolorred>100</bordercolorred> | |
| 104 | - <bordercolorgreen>100</bordercolorgreen> | |
| 105 | - <bordercolorblue>100</bordercolorblue> | |
| 106 | - <drawshadow>Y</drawshadow> | |
| 107 | - </notepad> | |
| 108 | - </notepads> | |
| 109 | - <connection> | |
| 110 | - <name>bus_control_variable</name> | |
| 111 | - <server>${v_db_ip}</server> | |
| 112 | - <type>MYSQL</type> | |
| 113 | - <access>Native</access> | |
| 114 | - <database>${v_db_dname}</database> | |
| 115 | - <port>3306</port> | |
| 116 | - <username>${v_db_uname}</username> | |
| 117 | - <password>${v_db_pwd}</password> | |
| 118 | - <servername/> | |
| 119 | - <data_tablespace/> | |
| 120 | - <index_tablespace/> | |
| 121 | - <attributes> | |
| 122 | - <attribute><code>EXTRA_OPTION_MYSQL.characterEncoding</code><attribute>utf8</attribute></attribute> | |
| 123 | - <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 124 | - <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 125 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 126 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 127 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 128 | - <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 129 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 130 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 131 | - <attribute><code>STREAM_RESULTS</code><attribute>N</attribute></attribute> | |
| 132 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 133 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 134 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 135 | - </attributes> | |
| 136 | - </connection> | |
| 137 | - <connection> | |
| 138 | - <name>bus_control_公司_201</name> | |
| 139 | - <server>localhost</server> | |
| 140 | - <type>MYSQL</type> | |
| 141 | - <access>Native</access> | |
| 142 | - <database>control</database> | |
| 143 | - <port>3306</port> | |
| 144 | - <username>root</username> | |
| 145 | - <password>Encrypted </password> | |
| 146 | - <servername/> | |
| 147 | - <data_tablespace/> | |
| 148 | - <index_tablespace/> | |
| 149 | - <attributes> | |
| 150 | - <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 151 | - <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 152 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 153 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 154 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 155 | - <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 156 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 157 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 158 | - <attribute><code>STREAM_RESULTS</code><attribute>N</attribute></attribute> | |
| 159 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 160 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 161 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 162 | - </attributes> | |
| 163 | - </connection> | |
| 164 | - <connection> | |
| 165 | - <name>bus_control_本机</name> | |
| 166 | - <server>localhost</server> | |
| 167 | - <type>MYSQL</type> | |
| 168 | - <access>Native</access> | |
| 169 | - <database>control</database> | |
| 170 | - <port>3306</port> | |
| 171 | - <username>root</username> | |
| 172 | - <password>Encrypted </password> | |
| 173 | - <servername/> | |
| 174 | - <data_tablespace/> | |
| 175 | - <index_tablespace/> | |
| 176 | - <attributes> | |
| 177 | - <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 178 | - <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 179 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 180 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 181 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 182 | - <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 183 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 184 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 185 | - <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 186 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 187 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 188 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 189 | - </attributes> | |
| 190 | - </connection> | |
| 191 | - <connection> | |
| 192 | - <name>xlab_mysql_youle</name> | |
| 193 | - <server>101.231.124.8</server> | |
| 194 | - <type>MYSQL</type> | |
| 195 | - <access>Native</access> | |
| 196 | - <database>xlab_youle</database> | |
| 197 | - <port>45687</port> | |
| 198 | - <username>xlab-youle</username> | |
| 199 | - <password>Encrypted 2be98afc86aa78a88aa1be369d187a3df</password> | |
| 200 | - <servername/> | |
| 201 | - <data_tablespace/> | |
| 202 | - <index_tablespace/> | |
| 203 | - <attributes> | |
| 204 | - <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 205 | - <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 206 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 207 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 208 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 209 | - <attribute><code>PORT_NUMBER</code><attribute>45687</attribute></attribute> | |
| 210 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 211 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 212 | - <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 213 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 214 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 215 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 216 | - </attributes> | |
| 217 | - </connection> | |
| 218 | - <connection> | |
| 219 | - <name>xlab_mysql_youle(本机)</name> | |
| 220 | - <server>localhost</server> | |
| 221 | - <type>MYSQL</type> | |
| 222 | - <access>Native</access> | |
| 223 | - <database>xlab_youle</database> | |
| 224 | - <port>3306</port> | |
| 225 | - <username>root</username> | |
| 226 | - <password>Encrypted </password> | |
| 227 | - <servername/> | |
| 228 | - <data_tablespace/> | |
| 229 | - <index_tablespace/> | |
| 230 | - <attributes> | |
| 231 | - <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 232 | - <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 233 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 234 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 235 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 236 | - <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 237 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 238 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 239 | - <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 240 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 241 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 242 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 243 | - </attributes> | |
| 244 | - </connection> | |
| 245 | - <connection> | |
| 246 | - <name>xlab_youle</name> | |
| 247 | - <server/> | |
| 248 | - <type>MYSQL</type> | |
| 249 | - <access>JNDI</access> | |
| 250 | - <database>xlab_youle</database> | |
| 251 | - <port>1521</port> | |
| 252 | - <username/> | |
| 253 | - <password>Encrypted </password> | |
| 254 | - <servername/> | |
| 255 | - <data_tablespace/> | |
| 256 | - <index_tablespace/> | |
| 257 | - <attributes> | |
| 258 | - <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 259 | - <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 260 | - <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 261 | - <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute> | |
| 262 | - <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 263 | - <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 264 | - <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 265 | - <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 266 | - <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 267 | - <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 268 | - </attributes> | |
| 269 | - </connection> | |
| 270 | - <order> | |
| 271 | - <hop> <from>插入/更新bsth_c_s_ecinfo</from><to>错误输出</to><enabled>Y</enabled> </hop> | |
| 272 | - <hop> <from>获取变量</from><to>原始系统导出的Excel输入</to><enabled>Y</enabled> </hop> | |
| 273 | - <hop> <from>原始系统导出的Excel输入</from><to>启用被数据flag</to><enabled>Y</enabled> </hop> | |
| 274 | - <hop> <from>启用被数据flag</from><to>线路id查询</to><enabled>Y</enabled> </hop> | |
| 275 | - <hop> <from>线路id查询</from><to>过滤线路id为空记录</to><enabled>Y</enabled> </hop> | |
| 276 | - <hop> <from>驾驶员id查找</from><to>过滤驾驶员id为空记录</to><enabled>Y</enabled> </hop> | |
| 277 | - <hop> <from>过滤驾驶员id为空记录</from><to>售票员id查找</to><enabled>Y</enabled> </hop> | |
| 278 | - <hop> <from>售票员id查找</from><to>插入/更新bsth_c_s_ecinfo</to><enabled>Y</enabled> </hop> | |
| 279 | - <hop> <from>过滤线路id为空记录</from><to>工号数据处理</to><enabled>Y</enabled> </hop> | |
| 280 | - <hop> <from>工号数据处理</from><to>驾驶员id查找</to><enabled>Y</enabled> </hop> | |
| 281 | - </order> | |
| 282 | - <step> | |
| 283 | - <name>原始系统导出的Excel输入</name> | |
| 284 | - <type>ExcelInput</type> | |
| 285 | - <description/> | |
| 286 | - <distribute>Y</distribute> | |
| 287 | - <custom_distribution/> | |
| 288 | - <copies>1</copies> | |
| 289 | - <partitioning> | |
| 290 | - <method>none</method> | |
| 291 | - <schema_name/> | |
| 292 | - </partitioning> | |
| 293 | - <header>Y</header> | |
| 294 | - <noempty>Y</noempty> | |
| 295 | - <stoponempty>N</stoponempty> | |
| 296 | - <filefield/> | |
| 297 | - <sheetfield/> | |
| 298 | - <sheetrownumfield/> | |
| 299 | - <rownumfield/> | |
| 300 | - <sheetfield/> | |
| 301 | - <filefield/> | |
| 302 | - <limit>0</limit> | |
| 303 | - <encoding/> | |
| 304 | - <add_to_result_filenames>Y</add_to_result_filenames> | |
| 305 | - <accept_filenames>Y</accept_filenames> | |
| 306 | - <accept_field>filepath_</accept_field> | |
| 307 | - <accept_stepname>获取变量</accept_stepname> | |
| 308 | - <file> | |
| 309 | - <name/> | |
| 310 | - <filemask/> | |
| 311 | - <exclude_filemask/> | |
| 312 | - <file_required>N</file_required> | |
| 313 | - <include_subfolders>N</include_subfolders> | |
| 314 | - </file> | |
| 315 | - <fields> | |
| 316 | - <field> | |
| 317 | - <name>线路</name> | |
| 318 | - <type>String</type> | |
| 319 | - <length>-1</length> | |
| 320 | - <precision>-1</precision> | |
| 321 | - <trim_type>none</trim_type> | |
| 322 | - <repeat>N</repeat> | |
| 323 | - <format/> | |
| 324 | - <currency/> | |
| 325 | - <decimal/> | |
| 326 | - <group/> | |
| 327 | - </field> | |
| 328 | - <field> | |
| 329 | - <name>搭班编码</name> | |
| 330 | - <type>String</type> | |
| 331 | - <length>-1</length> | |
| 332 | - <precision>-1</precision> | |
| 333 | - <trim_type>none</trim_type> | |
| 334 | - <repeat>N</repeat> | |
| 335 | - <format>#</format> | |
| 336 | - <currency/> | |
| 337 | - <decimal/> | |
| 338 | - <group/> | |
| 339 | - </field> | |
| 340 | - <field> | |
| 341 | - <name>驾驶员工号</name> | |
| 342 | - <type>String</type> | |
| 343 | - <length>-1</length> | |
| 344 | - <precision>-1</precision> | |
| 345 | - <trim_type>none</trim_type> | |
| 346 | - <repeat>N</repeat> | |
| 347 | - <format>#</format> | |
| 348 | - <currency/> | |
| 349 | - <decimal/> | |
| 350 | - <group/> | |
| 351 | - </field> | |
| 352 | - <field> | |
| 353 | - <name>驾驶员</name> | |
| 354 | - <type>String</type> | |
| 355 | - <length>-1</length> | |
| 356 | - <precision>-1</precision> | |
| 357 | - <trim_type>none</trim_type> | |
| 358 | - <repeat>N</repeat> | |
| 359 | - <format/> | |
| 360 | - <currency/> | |
| 361 | - <decimal/> | |
| 362 | - <group/> | |
| 363 | - </field> | |
| 364 | - <field> | |
| 365 | - <name>售票员工号</name> | |
| 366 | - <type>String</type> | |
| 367 | - <length>-1</length> | |
| 368 | - <precision>-1</precision> | |
| 369 | - <trim_type>none</trim_type> | |
| 370 | - <repeat>N</repeat> | |
| 371 | - <format>#</format> | |
| 372 | - <currency/> | |
| 373 | - <decimal/> | |
| 374 | - <group/> | |
| 375 | - </field> | |
| 376 | - <field> | |
| 377 | - <name>售票员</name> | |
| 378 | - <type>String</type> | |
| 379 | - <length>-1</length> | |
| 380 | - <precision>-1</precision> | |
| 381 | - <trim_type>none</trim_type> | |
| 382 | - <repeat>N</repeat> | |
| 383 | - <format/> | |
| 384 | - <currency/> | |
| 385 | - <decimal/> | |
| 386 | - <group/> | |
| 387 | - </field> | |
| 388 | - </fields> | |
| 389 | - <sheets> | |
| 390 | - <sheet> | |
| 391 | - <name>工作表1</name> | |
| 392 | - <startrow>0</startrow> | |
| 393 | - <startcol>0</startcol> | |
| 394 | - </sheet> | |
| 395 | - </sheets> | |
| 396 | - <strict_types>N</strict_types> | |
| 397 | - <error_ignored>N</error_ignored> | |
| 398 | - <error_line_skipped>N</error_line_skipped> | |
| 399 | - <bad_line_files_destination_directory/> | |
| 400 | - <bad_line_files_extension>warning</bad_line_files_extension> | |
| 401 | - <error_line_files_destination_directory/> | |
| 402 | - <error_line_files_extension>error</error_line_files_extension> | |
| 403 | - <line_number_files_destination_directory/> | |
| 404 | - <line_number_files_extension>line</line_number_files_extension> | |
| 405 | - <shortFileFieldName/> | |
| 406 | - <pathFieldName/> | |
| 407 | - <hiddenFieldName/> | |
| 408 | - <lastModificationTimeFieldName/> | |
| 409 | - <uriNameFieldName/> | |
| 410 | - <rootUriNameFieldName/> | |
| 411 | - <extensionFieldName/> | |
| 412 | - <sizeFieldName/> | |
| 413 | - <spreadsheet_type>JXL</spreadsheet_type> | |
| 414 | - <cluster_schema/> | |
| 415 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 416 | - <xloc>93</xloc> | |
| 417 | - <yloc>51</yloc> | |
| 418 | - <draw>Y</draw> | |
| 419 | - </GUI> | |
| 420 | - </step> | |
| 421 | - | |
| 422 | - <step> | |
| 423 | - <name>启用被数据flag</name> | |
| 424 | - <type>Constant</type> | |
| 425 | - <description/> | |
| 426 | - <distribute>Y</distribute> | |
| 427 | - <custom_distribution/> | |
| 428 | - <copies>1</copies> | |
| 429 | - <partitioning> | |
| 430 | - <method>none</method> | |
| 431 | - <schema_name/> | |
| 432 | - </partitioning> | |
| 433 | - <fields> | |
| 434 | - <field> | |
| 435 | - <name>isCancel</name> | |
| 436 | - <type>Integer</type> | |
| 437 | - <format/> | |
| 438 | - <currency/> | |
| 439 | - <decimal/> | |
| 440 | - <group/> | |
| 441 | - <nullif>0</nullif> | |
| 442 | - <length>-1</length> | |
| 443 | - <precision>-1</precision> | |
| 444 | - <set_empty_string>N</set_empty_string> | |
| 445 | - </field> | |
| 446 | - </fields> | |
| 447 | - <cluster_schema/> | |
| 448 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 449 | - <xloc>225</xloc> | |
| 450 | - <yloc>53</yloc> | |
| 451 | - <draw>Y</draw> | |
| 452 | - </GUI> | |
| 453 | - </step> | |
| 454 | - | |
| 455 | - <step> | |
| 456 | - <name>售票员id查找</name> | |
| 457 | - <type>DBJoin</type> | |
| 458 | - <description/> | |
| 459 | - <distribute>Y</distribute> | |
| 460 | - <custom_distribution/> | |
| 461 | - <copies>1</copies> | |
| 462 | - <partitioning> | |
| 463 | - <method>none</method> | |
| 464 | - <schema_name/> | |
| 465 | - </partitioning> | |
| 466 | - <connection>bus_control_variable</connection> | |
| 467 | - <rowlimit>1</rowlimit> | |
| 468 | - <sql>select id as sid from bsth_c_personnel
where job_code like ? and personnel_name = ?</sql> | |
| 469 | - <outer_join>Y</outer_join> | |
| 470 | - <replace_vars>N</replace_vars> | |
| 471 | - <parameter> | |
| 472 | - <field> | |
| 473 | - <name>sgh_temp</name> | |
| 474 | - <type>String</type> | |
| 475 | - </field> | |
| 476 | - <field> | |
| 477 | - <name>售票员</name> | |
| 478 | - <type>String</type> | |
| 479 | - </field> | |
| 480 | - </parameter> | |
| 481 | - <cluster_schema/> | |
| 482 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 483 | - <xloc>830</xloc> | |
| 484 | - <yloc>45</yloc> | |
| 485 | - <draw>Y</draw> | |
| 486 | - </GUI> | |
| 487 | - </step> | |
| 488 | - | |
| 489 | - <step> | |
| 490 | - <name>插入/更新bsth_c_s_ecinfo</name> | |
| 491 | - <type>InsertUpdate</type> | |
| 492 | - <description/> | |
| 493 | - <distribute>Y</distribute> | |
| 494 | - <custom_distribution/> | |
| 495 | - <copies>1</copies> | |
| 496 | - <partitioning> | |
| 497 | - <method>none</method> | |
| 498 | - <schema_name/> | |
| 499 | - </partitioning> | |
| 500 | - <connection>bus_control_variable</connection> | |
| 501 | - <commit>100</commit> | |
| 502 | - <update_bypassed>N</update_bypassed> | |
| 503 | - <lookup> | |
| 504 | - <schema/> | |
| 505 | - <table>bsth_c_s_ecinfo</table> | |
| 506 | - <key> | |
| 507 | - <name>xlid</name> | |
| 508 | - <field>xl</field> | |
| 509 | - <condition>=</condition> | |
| 510 | - <name2/> | |
| 511 | - </key> | |
| 512 | - <key> | |
| 513 | - <name>搭班编码</name> | |
| 514 | - <field>dbbm</field> | |
| 515 | - <condition>=</condition> | |
| 516 | - <name2/> | |
| 517 | - </key> | |
| 518 | - <key> | |
| 519 | - <name>isCancel</name> | |
| 520 | - <field>is_cancel</field> | |
| 521 | - <condition>=</condition> | |
| 522 | - <name2/> | |
| 523 | - </key> | |
| 524 | - <value> | |
| 525 | - <name>xl</name> | |
| 526 | - <rename>xlid</rename> | |
| 527 | - <update>N</update> | |
| 528 | - </value> | |
| 529 | - <value> | |
| 530 | - <name>dbbm</name> | |
| 531 | - <rename>搭班编码</rename> | |
| 532 | - <update>N</update> | |
| 533 | - </value> | |
| 534 | - <value> | |
| 535 | - <name>jsy</name> | |
| 536 | - <rename>jid</rename> | |
| 537 | - <update>N</update> | |
| 538 | - </value> | |
| 539 | - <value> | |
| 540 | - <name>spy</name> | |
| 541 | - <rename>sid</rename> | |
| 542 | - <update>N</update> | |
| 543 | - </value> | |
| 544 | - <value> | |
| 545 | - <name>is_cancel</name> | |
| 546 | - <rename>isCancel</rename> | |
| 547 | - <update>N</update> | |
| 548 | - </value> | |
| 549 | - </lookup> | |
| 550 | - <cluster_schema/> | |
| 551 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 552 | - <xloc>833</xloc> | |
| 553 | - <yloc>198</yloc> | |
| 554 | - <draw>Y</draw> | |
| 555 | - </GUI> | |
| 556 | - </step> | |
| 557 | - | |
| 558 | - <step> | |
| 559 | - <name>线路id查询</name> | |
| 560 | - <type>DBLookup</type> | |
| 561 | - <description/> | |
| 562 | - <distribute>Y</distribute> | |
| 563 | - <custom_distribution/> | |
| 564 | - <copies>1</copies> | |
| 565 | - <partitioning> | |
| 566 | - <method>none</method> | |
| 567 | - <schema_name/> | |
| 568 | - </partitioning> | |
| 569 | - <connection>bus_control_variable</connection> | |
| 570 | - <cache>Y</cache> | |
| 571 | - <cache_load_all>Y</cache_load_all> | |
| 572 | - <cache_size>0</cache_size> | |
| 573 | - <lookup> | |
| 574 | - <schema/> | |
| 575 | - <table>bsth_c_line</table> | |
| 576 | - <orderby/> | |
| 577 | - <fail_on_multiple>N</fail_on_multiple> | |
| 578 | - <eat_row_on_failure>N</eat_row_on_failure> | |
| 579 | - <key> | |
| 580 | - <name>线路</name> | |
| 581 | - <field>name</field> | |
| 582 | - <condition>=</condition> | |
| 583 | - <name2/> | |
| 584 | - </key> | |
| 585 | - <key> | |
| 586 | - <name>isCancel</name> | |
| 587 | - <field>destroy</field> | |
| 588 | - <condition>=</condition> | |
| 589 | - <name2/> | |
| 590 | - </key> | |
| 591 | - <value> | |
| 592 | - <name>id</name> | |
| 593 | - <rename>xlid</rename> | |
| 594 | - <default/> | |
| 595 | - <type>Integer</type> | |
| 596 | - </value> | |
| 597 | - </lookup> | |
| 598 | - <cluster_schema/> | |
| 599 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 600 | - <xloc>397</xloc> | |
| 601 | - <yloc>144</yloc> | |
| 602 | - <draw>Y</draw> | |
| 603 | - </GUI> | |
| 604 | - </step> | |
| 605 | - | |
| 606 | - <step> | |
| 607 | - <name>获取变量</name> | |
| 608 | - <type>GetVariable</type> | |
| 609 | - <description/> | |
| 610 | - <distribute>Y</distribute> | |
| 611 | - <custom_distribution/> | |
| 612 | - <copies>1</copies> | |
| 613 | - <partitioning> | |
| 614 | - <method>none</method> | |
| 615 | - <schema_name/> | |
| 616 | - </partitioning> | |
| 617 | - <fields> | |
| 618 | - <field> | |
| 619 | - <name>filepath_</name> | |
| 620 | - <variable>${filepath}</variable> | |
| 621 | - <type>String</type> | |
| 622 | - <format/> | |
| 623 | - <currency/> | |
| 624 | - <decimal/> | |
| 625 | - <group/> | |
| 626 | - <length>-1</length> | |
| 627 | - <precision>-1</precision> | |
| 628 | - <trim_type>none</trim_type> | |
| 629 | - </field> | |
| 630 | - <field> | |
| 631 | - <name>erroroutputdir_</name> | |
| 632 | - <variable>${erroroutputdir}</variable> | |
| 633 | - <type>String</type> | |
| 634 | - <format/> | |
| 635 | - <currency/> | |
| 636 | - <decimal/> | |
| 637 | - <group/> | |
| 638 | - <length>-1</length> | |
| 639 | - <precision>-1</precision> | |
| 640 | - <trim_type>none</trim_type> | |
| 641 | - </field> | |
| 642 | - </fields> | |
| 643 | - <cluster_schema/> | |
| 644 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 645 | - <xloc>94</xloc> | |
| 646 | - <yloc>178</yloc> | |
| 647 | - <draw>Y</draw> | |
| 648 | - </GUI> | |
| 649 | - </step> | |
| 650 | - | |
| 651 | - <step> | |
| 652 | - <name>过滤线路id为空记录</name> | |
| 653 | - <type>FilterRows</type> | |
| 654 | - <description/> | |
| 655 | - <distribute>Y</distribute> | |
| 656 | - <custom_distribution/> | |
| 657 | - <copies>1</copies> | |
| 658 | - <partitioning> | |
| 659 | - <method>none</method> | |
| 660 | - <schema_name/> | |
| 661 | - </partitioning> | |
| 662 | -<send_true_to/> | |
| 663 | -<send_false_to/> | |
| 664 | - <compare> | |
| 665 | -<condition> | |
| 666 | - <negated>N</negated> | |
| 667 | - <leftvalue>xlid</leftvalue> | |
| 668 | - <function>IS NOT NULL</function> | |
| 669 | - <rightvalue/> | |
| 670 | - </condition> | |
| 671 | - </compare> | |
| 672 | - <cluster_schema/> | |
| 673 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 674 | - <xloc>395</xloc> | |
| 675 | - <yloc>49</yloc> | |
| 676 | - <draw>Y</draw> | |
| 677 | - </GUI> | |
| 678 | - </step> | |
| 679 | - | |
| 680 | - <step> | |
| 681 | - <name>过滤驾驶员id为空记录</name> | |
| 682 | - <type>FilterRows</type> | |
| 683 | - <description/> | |
| 684 | - <distribute>Y</distribute> | |
| 685 | - <custom_distribution/> | |
| 686 | - <copies>1</copies> | |
| 687 | - <partitioning> | |
| 688 | - <method>none</method> | |
| 689 | - <schema_name/> | |
| 690 | - </partitioning> | |
| 691 | -<send_true_to>售票员id查找</send_true_to> | |
| 692 | -<send_false_to/> | |
| 693 | - <compare> | |
| 694 | -<condition> | |
| 695 | - <negated>N</negated> | |
| 696 | - <leftvalue>jid</leftvalue> | |
| 697 | - <function>IS NOT NULL</function> | |
| 698 | - <rightvalue/> | |
| 699 | - </condition> | |
| 700 | - </compare> | |
| 701 | - <cluster_schema/> | |
| 702 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 703 | - <xloc>695</xloc> | |
| 704 | - <yloc>45</yloc> | |
| 705 | - <draw>Y</draw> | |
| 706 | - </GUI> | |
| 707 | - </step> | |
| 708 | - | |
| 709 | - <step> | |
| 710 | - <name>错误输出</name> | |
| 711 | - <type>ExcelOutput</type> | |
| 712 | - <description/> | |
| 713 | - <distribute>Y</distribute> | |
| 714 | - <custom_distribution/> | |
| 715 | - <copies>1</copies> | |
| 716 | - <partitioning> | |
| 717 | - <method>none</method> | |
| 718 | - <schema_name/> | |
| 719 | - </partitioning> | |
| 720 | - <header>Y</header> | |
| 721 | - <footer>N</footer> | |
| 722 | - <encoding>UTF-8</encoding> | |
| 723 | - <append>N</append> | |
| 724 | - <add_to_result_filenames>Y</add_to_result_filenames> | |
| 725 | - <file> | |
| 726 | - <name>${erroroutputdir}/人员配置_错误</name> | |
| 727 | - <extention>xls</extention> | |
| 728 | - <do_not_open_newfile_init>N</do_not_open_newfile_init> | |
| 729 | - <create_parent_folder>N</create_parent_folder> | |
| 730 | - <split>N</split> | |
| 731 | - <add_date>N</add_date> | |
| 732 | - <add_time>N</add_time> | |
| 733 | - <SpecifyFormat>N</SpecifyFormat> | |
| 734 | - <date_time_format/> | |
| 735 | - <sheetname>Sheet1</sheetname> | |
| 736 | - <autosizecolums>N</autosizecolums> | |
| 737 | - <nullisblank>N</nullisblank> | |
| 738 | - <protect_sheet>N</protect_sheet> | |
| 739 | - <password>Encrypted </password> | |
| 740 | - <splitevery>0</splitevery> | |
| 741 | - <usetempfiles>N</usetempfiles> | |
| 742 | - <tempdirectory/> | |
| 743 | - </file> | |
| 744 | - <template> | |
| 745 | - <enabled>N</enabled> | |
| 746 | - <append>N</append> | |
| 747 | - <filename>template.xls</filename> | |
| 748 | - </template> | |
| 749 | - <fields> | |
| 750 | - <field> | |
| 751 | - <name>线路</name> | |
| 752 | - <type>String</type> | |
| 753 | - <format/> | |
| 754 | - </field> | |
| 755 | - <field> | |
| 756 | - <name>搭班编码</name> | |
| 757 | - <type>String</type> | |
| 758 | - <format/> | |
| 759 | - </field> | |
| 760 | - <field> | |
| 761 | - <name>驾驶员工号</name> | |
| 762 | - <type>String</type> | |
| 763 | - <format/> | |
| 764 | - </field> | |
| 765 | - <field> | |
| 766 | - <name>驾驶员</name> | |
| 767 | - <type>String</type> | |
| 768 | - <format/> | |
| 769 | - </field> | |
| 770 | - <field> | |
| 771 | - <name>售票员工号</name> | |
| 772 | - <type>String</type> | |
| 773 | - <format/> | |
| 774 | - </field> | |
| 775 | - <field> | |
| 776 | - <name>售票员</name> | |
| 777 | - <type>String</type> | |
| 778 | - <format/> | |
| 779 | - </field> | |
| 780 | - <field> | |
| 781 | - <name>isCancel</name> | |
| 782 | - <type>Integer</type> | |
| 783 | - <format/> | |
| 784 | - </field> | |
| 785 | - <field> | |
| 786 | - <name>xlid</name> | |
| 787 | - <type>Integer</type> | |
| 788 | - <format/> | |
| 789 | - </field> | |
| 790 | - <field> | |
| 791 | - <name>jid</name> | |
| 792 | - <type>Integer</type> | |
| 793 | - <format/> | |
| 794 | - </field> | |
| 795 | - <field> | |
| 796 | - <name>sid</name> | |
| 797 | - <type>Integer</type> | |
| 798 | - <format/> | |
| 799 | - </field> | |
| 800 | - <field> | |
| 801 | - <name>error_count</name> | |
| 802 | - <type>Integer</type> | |
| 803 | - <format/> | |
| 804 | - </field> | |
| 805 | - <field> | |
| 806 | - <name>error_desc</name> | |
| 807 | - <type>String</type> | |
| 808 | - <format/> | |
| 809 | - </field> | |
| 810 | - <field> | |
| 811 | - <name>error_column1</name> | |
| 812 | - <type>String</type> | |
| 813 | - <format/> | |
| 814 | - </field> | |
| 815 | - <field> | |
| 816 | - <name>error_column2</name> | |
| 817 | - <type>String</type> | |
| 818 | - <format/> | |
| 819 | - </field> | |
| 820 | - </fields> | |
| 821 | - <custom> | |
| 822 | - <header_font_name>arial</header_font_name> | |
| 823 | - <header_font_size>10</header_font_size> | |
| 824 | - <header_font_bold>N</header_font_bold> | |
| 825 | - <header_font_italic>N</header_font_italic> | |
| 826 | - <header_font_underline>no</header_font_underline> | |
| 827 | - <header_font_orientation>horizontal</header_font_orientation> | |
| 828 | - <header_font_color>black</header_font_color> | |
| 829 | - <header_background_color>none</header_background_color> | |
| 830 | - <header_row_height>255</header_row_height> | |
| 831 | - <header_alignment>left</header_alignment> | |
| 832 | - <header_image/> | |
| 833 | - <row_font_name>arial</row_font_name> | |
| 834 | - <row_font_size>10</row_font_size> | |
| 835 | - <row_font_color>black</row_font_color> | |
| 836 | - <row_background_color>none</row_background_color> | |
| 837 | - </custom> | |
| 838 | - <cluster_schema/> | |
| 839 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 840 | - <xloc>833</xloc> | |
| 841 | - <yloc>321</yloc> | |
| 842 | - <draw>Y</draw> | |
| 843 | - </GUI> | |
| 844 | - </step> | |
| 845 | - | |
| 846 | - <step> | |
| 847 | - <name>驾驶员id查找</name> | |
| 848 | - <type>DBJoin</type> | |
| 849 | - <description/> | |
| 850 | - <distribute>Y</distribute> | |
| 851 | - <custom_distribution/> | |
| 852 | - <copies>1</copies> | |
| 853 | - <partitioning> | |
| 854 | - <method>none</method> | |
| 855 | - <schema_name/> | |
| 856 | - </partitioning> | |
| 857 | - <connection>bus_control_variable</connection> | |
| 858 | - <rowlimit>1</rowlimit> | |
| 859 | - <sql>select id as jid from bsth_c_personnel
where job_code like ? and personnel_name = ?</sql> | |
| 860 | - <outer_join>Y</outer_join> | |
| 861 | - <replace_vars>N</replace_vars> | |
| 862 | - <parameter> | |
| 863 | - <field> | |
| 864 | - <name>jgh_temp</name> | |
| 865 | - <type>String</type> | |
| 866 | - </field> | |
| 867 | - <field> | |
| 868 | - <name>驾驶员</name> | |
| 869 | - <type>String</type> | |
| 870 | - </field> | |
| 871 | - </parameter> | |
| 872 | - <cluster_schema/> | |
| 873 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 874 | - <xloc>694</xloc> | |
| 875 | - <yloc>141</yloc> | |
| 876 | - <draw>Y</draw> | |
| 877 | - </GUI> | |
| 878 | - </step> | |
| 879 | - | |
| 880 | - <step> | |
| 881 | - <name>工号数据处理</name> | |
| 882 | - <type>ScriptValueMod</type> | |
| 883 | - <description/> | |
| 884 | - <distribute>Y</distribute> | |
| 885 | - <custom_distribution/> | |
| 886 | - <copies>1</copies> | |
| 887 | - <partitioning> | |
| 888 | - <method>none</method> | |
| 889 | - <schema_name/> | |
| 890 | - </partitioning> | |
| 891 | - <compatible>N</compatible> | |
| 892 | - <optimizationLevel>9</optimizationLevel> | |
| 893 | - <jsScripts> <jsScript> <jsScript_type>0</jsScript_type> | |
| 894 | - <jsScript_name>Script 1</jsScript_name> | |
| 895 | - <jsScript_script>// 因为数据库中的数据工号可能带suffix,如55-12345678
// 所以之后的匹配使用like,则元数据需要加上% %符号

var jgh_temp;
var sgh_temp;

if (驾驶员工号) {
 jgh_temp = '%' + 驾驶员工号 + '%';
} else {
 jgh_temp = 驾驶员工号;
}

if (售票员工号) {
 sgh_temp = '%' + 售票员工号 + '%';
} else {
 sgh_temp = 售票员工号;
}</jsScript_script> | |
| 896 | - </jsScript> </jsScripts> <fields> <field> <name>jgh_temp</name> | |
| 897 | - <rename>jgh_temp</rename> | |
| 898 | - <type>String</type> | |
| 899 | - <length>-1</length> | |
| 900 | - <precision>-1</precision> | |
| 901 | - <replace>N</replace> | |
| 902 | - </field> <field> <name>sgh_temp</name> | |
| 903 | - <rename>sgh_temp</rename> | |
| 904 | - <type>String</type> | |
| 905 | - <length>-1</length> | |
| 906 | - <precision>-1</precision> | |
| 907 | - <replace>N</replace> | |
| 908 | - </field> </fields> <cluster_schema/> | |
| 909 | - <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 910 | - <xloc>548</xloc> | |
| 911 | - <yloc>47</yloc> | |
| 912 | - <draw>Y</draw> | |
| 913 | - </GUI> | |
| 914 | - </step> | |
| 915 | - | |
| 916 | - <step_error_handling> | |
| 917 | - <error> | |
| 918 | - <source_step>插入/更新bsth_c_s_ecinfo</source_step> | |
| 919 | - <target_step>错误输出</target_step> | |
| 920 | - <is_enabled>Y</is_enabled> | |
| 921 | - <nr_valuename>error_count</nr_valuename> | |
| 922 | - <descriptions_valuename>error_desc</descriptions_valuename> | |
| 923 | - <fields_valuename>error_column1</fields_valuename> | |
| 924 | - <codes_valuename>error_column2</codes_valuename> | |
| 925 | - <max_errors/> | |
| 926 | - <max_pct_errors/> | |
| 927 | - <min_pct_rows/> | |
| 928 | - </error> | |
| 929 | - </step_error_handling> | |
| 930 | - <slave-step-copy-partition-distribution> | |
| 931 | -</slave-step-copy-partition-distribution> | |
| 932 | - <slave_transformation>N</slave_transformation> | |
| 933 | - | |
| 934 | -</transformation> | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<transformation> | |
| 3 | + <info> | |
| 4 | + <name>人员配置信息导入</name> | |
| 5 | + <description>人员配置信息导入</description> | |
| 6 | + <extended_description>人员配置信息</extended_description> | |
| 7 | + <trans_version/> | |
| 8 | + <trans_type>Normal</trans_type> | |
| 9 | + <trans_status>0</trans_status> | |
| 10 | + <directory>/</directory> | |
| 11 | + <parameters> | |
| 12 | + <parameter> | |
| 13 | + <name>erroroutputdir</name> | |
| 14 | + <default_value/> | |
| 15 | + <description>ktr step配置的错误输出目录</description> | |
| 16 | + </parameter> | |
| 17 | + <parameter> | |
| 18 | + <name>filepath</name> | |
| 19 | + <default_value/> | |
| 20 | + <description>待处理导入的excel文件</description> | |
| 21 | + </parameter> | |
| 22 | + </parameters> | |
| 23 | + <log> | |
| 24 | +<trans-log-table><connection/> | |
| 25 | +<schema/> | |
| 26 | +<table/> | |
| 27 | +<size_limit_lines/> | |
| 28 | +<interval/> | |
| 29 | +<timeout_days/> | |
| 30 | +<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field><field><id>EXECUTING_SERVER</id><enabled>N</enabled><name>EXECUTING_SERVER</name></field><field><id>EXECUTING_USER</id><enabled>N</enabled><name>EXECUTING_USER</name></field><field><id>CLIENT</id><enabled>N</enabled><name>CLIENT</name></field></trans-log-table> | |
| 31 | +<perf-log-table><connection/> | |
| 32 | +<schema/> | |
| 33 | +<table/> | |
| 34 | +<interval/> | |
| 35 | +<timeout_days/> | |
| 36 | +<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table> | |
| 37 | +<channel-log-table><connection/> | |
| 38 | +<schema/> | |
| 39 | +<table/> | |
| 40 | +<timeout_days/> | |
| 41 | +<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table> | |
| 42 | +<step-log-table><connection/> | |
| 43 | +<schema/> | |
| 44 | +<table/> | |
| 45 | +<timeout_days/> | |
| 46 | +<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table> | |
| 47 | +<metrics-log-table><connection/> | |
| 48 | +<schema/> | |
| 49 | +<table/> | |
| 50 | +<timeout_days/> | |
| 51 | +<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>METRICS_DATE</id><enabled>Y</enabled><name>METRICS_DATE</name></field><field><id>METRICS_CODE</id><enabled>Y</enabled><name>METRICS_CODE</name></field><field><id>METRICS_DESCRIPTION</id><enabled>Y</enabled><name>METRICS_DESCRIPTION</name></field><field><id>METRICS_SUBJECT</id><enabled>Y</enabled><name>METRICS_SUBJECT</name></field><field><id>METRICS_TYPE</id><enabled>Y</enabled><name>METRICS_TYPE</name></field><field><id>METRICS_VALUE</id><enabled>Y</enabled><name>METRICS_VALUE</name></field></metrics-log-table> | |
| 52 | + </log> | |
| 53 | + <maxdate> | |
| 54 | + <connection/> | |
| 55 | + <table/> | |
| 56 | + <field/> | |
| 57 | + <offset>0.0</offset> | |
| 58 | + <maxdiff>0.0</maxdiff> | |
| 59 | + </maxdate> | |
| 60 | + <size_rowset>10000</size_rowset> | |
| 61 | + <sleep_time_empty>50</sleep_time_empty> | |
| 62 | + <sleep_time_full>50</sleep_time_full> | |
| 63 | + <unique_connections>N</unique_connections> | |
| 64 | + <feedback_shown>Y</feedback_shown> | |
| 65 | + <feedback_size>50000</feedback_size> | |
| 66 | + <using_thread_priorities>Y</using_thread_priorities> | |
| 67 | + <shared_objects_file/> | |
| 68 | + <capture_step_performance>N</capture_step_performance> | |
| 69 | + <step_performance_capturing_delay>1000</step_performance_capturing_delay> | |
| 70 | + <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit> | |
| 71 | + <dependencies> | |
| 72 | + </dependencies> | |
| 73 | + <partitionschemas> | |
| 74 | + </partitionschemas> | |
| 75 | + <slaveservers> | |
| 76 | + </slaveservers> | |
| 77 | + <clusterschemas> | |
| 78 | + </clusterschemas> | |
| 79 | + <created_user>-</created_user> | |
| 80 | + <created_date>2016/06/29 15:12:27.273</created_date> | |
| 81 | + <modified_user>-</modified_user> | |
| 82 | + <modified_date>2016/06/29 15:12:27.273</modified_date> | |
| 83 | + <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> | |
| 84 | + <is_key_private>N</is_key_private> | |
| 85 | + </info> | |
| 86 | + <notepads> | |
| 87 | + <notepad> | |
| 88 | + <note>这里有些问题
在window2012的环境下,
MySql数据库查询中如果返回中文内容的字段,这个内容乱码
解决办法,就是数据库查询全部缓存,就不乱码
linux环境下没问题</note> | |
| 89 | + <xloc>101</xloc> | |
| 90 | + <yloc>264</yloc> | |
| 91 | + <width>333</width> | |
| 92 | + <heigth>90</heigth> | |
| 93 | + <fontname>YaHei Consolas Hybrid</fontname> | |
| 94 | + <fontsize>12</fontsize> | |
| 95 | + <fontbold>N</fontbold> | |
| 96 | + <fontitalic>N</fontitalic> | |
| 97 | + <fontcolorred>0</fontcolorred> | |
| 98 | + <fontcolorgreen>0</fontcolorgreen> | |
| 99 | + <fontcolorblue>0</fontcolorblue> | |
| 100 | + <backgroundcolorred>255</backgroundcolorred> | |
| 101 | + <backgroundcolorgreen>205</backgroundcolorgreen> | |
| 102 | + <backgroundcolorblue>112</backgroundcolorblue> | |
| 103 | + <bordercolorred>100</bordercolorred> | |
| 104 | + <bordercolorgreen>100</bordercolorgreen> | |
| 105 | + <bordercolorblue>100</bordercolorblue> | |
| 106 | + <drawshadow>Y</drawshadow> | |
| 107 | + </notepad> | |
| 108 | + </notepads> | |
| 109 | + <connection> | |
| 110 | + <name>192.168.168.1_jwgl_dw</name> | |
| 111 | + <server>192.168.168.1</server> | |
| 112 | + <type>ORACLE</type> | |
| 113 | + <access>Native</access> | |
| 114 | + <database>orcl</database> | |
| 115 | + <port>1521</port> | |
| 116 | + <username>jwgl_dw</username> | |
| 117 | + <password>Encrypted 2be98afc86aa7f2e4cb13b977d2adabcd</password> | |
| 118 | + <servername/> | |
| 119 | + <data_tablespace/> | |
| 120 | + <index_tablespace/> | |
| 121 | + <attributes> | |
| 122 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 123 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 124 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 125 | + <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute> | |
| 126 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 127 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 128 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 129 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 130 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 131 | + </attributes> | |
| 132 | + </connection> | |
| 133 | + <connection> | |
| 134 | + <name>bus_control_variable</name> | |
| 135 | + <server>${v_db_ip}</server> | |
| 136 | + <type>MYSQL</type> | |
| 137 | + <access>Native</access> | |
| 138 | + <database>${v_db_dname}</database> | |
| 139 | + <port>3306</port> | |
| 140 | + <username>${v_db_uname}</username> | |
| 141 | + <password>${v_db_pwd}</password> | |
| 142 | + <servername/> | |
| 143 | + <data_tablespace/> | |
| 144 | + <index_tablespace/> | |
| 145 | + <attributes> | |
| 146 | + <attribute><code>EXTRA_OPTION_MYSQL.characterEncoding</code><attribute>utf8</attribute></attribute> | |
| 147 | + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 148 | + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 149 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 150 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 151 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 152 | + <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 153 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 154 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 155 | + <attribute><code>STREAM_RESULTS</code><attribute>N</attribute></attribute> | |
| 156 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 157 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 158 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 159 | + </attributes> | |
| 160 | + </connection> | |
| 161 | + <connection> | |
| 162 | + <name>bus_control_公司_201</name> | |
| 163 | + <server>localhost</server> | |
| 164 | + <type>MYSQL</type> | |
| 165 | + <access>Native</access> | |
| 166 | + <database>control</database> | |
| 167 | + <port>3306</port> | |
| 168 | + <username>root</username> | |
| 169 | + <password>Encrypted </password> | |
| 170 | + <servername/> | |
| 171 | + <data_tablespace/> | |
| 172 | + <index_tablespace/> | |
| 173 | + <attributes> | |
| 174 | + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 175 | + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 176 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 177 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 178 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 179 | + <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 180 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 181 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 182 | + <attribute><code>STREAM_RESULTS</code><attribute>N</attribute></attribute> | |
| 183 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 184 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 185 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 186 | + </attributes> | |
| 187 | + </connection> | |
| 188 | + <connection> | |
| 189 | + <name>bus_control_本机</name> | |
| 190 | + <server>localhost</server> | |
| 191 | + <type>MYSQL</type> | |
| 192 | + <access>Native</access> | |
| 193 | + <database>control</database> | |
| 194 | + <port>3306</port> | |
| 195 | + <username>root</username> | |
| 196 | + <password>Encrypted </password> | |
| 197 | + <servername/> | |
| 198 | + <data_tablespace/> | |
| 199 | + <index_tablespace/> | |
| 200 | + <attributes> | |
| 201 | + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 202 | + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 203 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 204 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 205 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 206 | + <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 207 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 208 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 209 | + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 210 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 211 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 212 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 213 | + </attributes> | |
| 214 | + </connection> | |
| 215 | + <connection> | |
| 216 | + <name>xlab_mysql_youle</name> | |
| 217 | + <server>101.231.124.8</server> | |
| 218 | + <type>MYSQL</type> | |
| 219 | + <access>Native</access> | |
| 220 | + <database>xlab_youle</database> | |
| 221 | + <port>45687</port> | |
| 222 | + <username>xlab-youle</username> | |
| 223 | + <password>Encrypted 2be98afc86aa78a88aa1be369d187a3df</password> | |
| 224 | + <servername/> | |
| 225 | + <data_tablespace/> | |
| 226 | + <index_tablespace/> | |
| 227 | + <attributes> | |
| 228 | + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 229 | + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 230 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 231 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 232 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 233 | + <attribute><code>PORT_NUMBER</code><attribute>45687</attribute></attribute> | |
| 234 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 235 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 236 | + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 237 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 238 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 239 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 240 | + </attributes> | |
| 241 | + </connection> | |
| 242 | + <connection> | |
| 243 | + <name>xlab_mysql_youle(本机)</name> | |
| 244 | + <server>localhost</server> | |
| 245 | + <type>MYSQL</type> | |
| 246 | + <access>Native</access> | |
| 247 | + <database>xlab_youle</database> | |
| 248 | + <port>3306</port> | |
| 249 | + <username>root</username> | |
| 250 | + <password>Encrypted </password> | |
| 251 | + <servername/> | |
| 252 | + <data_tablespace/> | |
| 253 | + <index_tablespace/> | |
| 254 | + <attributes> | |
| 255 | + <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute> | |
| 256 | + <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute> | |
| 257 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 258 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 259 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 260 | + <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute> | |
| 261 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 262 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 263 | + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 264 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 265 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>N</attribute></attribute> | |
| 266 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 267 | + </attributes> | |
| 268 | + </connection> | |
| 269 | + <connection> | |
| 270 | + <name>xlab_youle</name> | |
| 271 | + <server/> | |
| 272 | + <type>MYSQL</type> | |
| 273 | + <access>JNDI</access> | |
| 274 | + <database>xlab_youle</database> | |
| 275 | + <port>1521</port> | |
| 276 | + <username/> | |
| 277 | + <password>Encrypted </password> | |
| 278 | + <servername/> | |
| 279 | + <data_tablespace/> | |
| 280 | + <index_tablespace/> | |
| 281 | + <attributes> | |
| 282 | + <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute> | |
| 283 | + <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute> | |
| 284 | + <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute> | |
| 285 | + <attribute><code>PORT_NUMBER</code><attribute>1521</attribute></attribute> | |
| 286 | + <attribute><code>PRESERVE_RESERVED_WORD_CASE</code><attribute>N</attribute></attribute> | |
| 287 | + <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute> | |
| 288 | + <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute> | |
| 289 | + <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 290 | + <attribute><code>SUPPORTS_TIMESTAMP_DATA_TYPE</code><attribute>Y</attribute></attribute> | |
| 291 | + <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute> | |
| 292 | + </attributes> | |
| 293 | + </connection> | |
| 294 | + <order> | |
| 295 | + <hop> <from>插入/更新bsth_c_s_ecinfo</from><to>错误输出</to><enabled>Y</enabled> </hop> | |
| 296 | + <hop> <from>获取变量</from><to>原始系统导出的Excel输入</to><enabled>Y</enabled> </hop> | |
| 297 | + <hop> <from>原始系统导出的Excel输入</from><to>启用被数据flag</to><enabled>Y</enabled> </hop> | |
| 298 | + <hop> <from>启用被数据flag</from><to>线路id查询</to><enabled>Y</enabled> </hop> | |
| 299 | + <hop> <from>线路id查询</from><to>过滤线路id为空记录</to><enabled>Y</enabled> </hop> | |
| 300 | + <hop> <from>驾驶员id查找</from><to>过滤驾驶员id为空记录</to><enabled>Y</enabled> </hop> | |
| 301 | + <hop> <from>过滤驾驶员id为空记录</from><to>售票员id查找</to><enabled>Y</enabled> </hop> | |
| 302 | + <hop> <from>售票员id查找</from><to>插入/更新bsth_c_s_ecinfo</to><enabled>Y</enabled> </hop> | |
| 303 | + <hop> <from>过滤线路id为空记录</from><to>驾驶员id查找</to><enabled>Y</enabled> </hop> | |
| 304 | + </order> | |
| 305 | + <step> | |
| 306 | + <name>原始系统导出的Excel输入</name> | |
| 307 | + <type>ExcelInput</type> | |
| 308 | + <description/> | |
| 309 | + <distribute>Y</distribute> | |
| 310 | + <custom_distribution/> | |
| 311 | + <copies>1</copies> | |
| 312 | + <partitioning> | |
| 313 | + <method>none</method> | |
| 314 | + <schema_name/> | |
| 315 | + </partitioning> | |
| 316 | + <header>Y</header> | |
| 317 | + <noempty>Y</noempty> | |
| 318 | + <stoponempty>N</stoponempty> | |
| 319 | + <filefield/> | |
| 320 | + <sheetfield/> | |
| 321 | + <sheetrownumfield/> | |
| 322 | + <rownumfield/> | |
| 323 | + <sheetfield/> | |
| 324 | + <filefield/> | |
| 325 | + <limit>0</limit> | |
| 326 | + <encoding/> | |
| 327 | + <add_to_result_filenames>Y</add_to_result_filenames> | |
| 328 | + <accept_filenames>Y</accept_filenames> | |
| 329 | + <accept_field>filepath_</accept_field> | |
| 330 | + <accept_stepname>获取变量</accept_stepname> | |
| 331 | + <file> | |
| 332 | + <name/> | |
| 333 | + <filemask/> | |
| 334 | + <exclude_filemask/> | |
| 335 | + <file_required>N</file_required> | |
| 336 | + <include_subfolders>N</include_subfolders> | |
| 337 | + </file> | |
| 338 | + <fields> | |
| 339 | + <field> | |
| 340 | + <name>线路</name> | |
| 341 | + <type>String</type> | |
| 342 | + <length>-1</length> | |
| 343 | + <precision>-1</precision> | |
| 344 | + <trim_type>none</trim_type> | |
| 345 | + <repeat>N</repeat> | |
| 346 | + <format/> | |
| 347 | + <currency/> | |
| 348 | + <decimal/> | |
| 349 | + <group/> | |
| 350 | + </field> | |
| 351 | + <field> | |
| 352 | + <name>搭班编码</name> | |
| 353 | + <type>String</type> | |
| 354 | + <length>-1</length> | |
| 355 | + <precision>-1</precision> | |
| 356 | + <trim_type>none</trim_type> | |
| 357 | + <repeat>N</repeat> | |
| 358 | + <format>#</format> | |
| 359 | + <currency/> | |
| 360 | + <decimal/> | |
| 361 | + <group/> | |
| 362 | + </field> | |
| 363 | + <field> | |
| 364 | + <name>驾驶员工号</name> | |
| 365 | + <type>String</type> | |
| 366 | + <length>-1</length> | |
| 367 | + <precision>-1</precision> | |
| 368 | + <trim_type>none</trim_type> | |
| 369 | + <repeat>N</repeat> | |
| 370 | + <format>#</format> | |
| 371 | + <currency/> | |
| 372 | + <decimal/> | |
| 373 | + <group/> | |
| 374 | + </field> | |
| 375 | + <field> | |
| 376 | + <name>驾驶员</name> | |
| 377 | + <type>String</type> | |
| 378 | + <length>-1</length> | |
| 379 | + <precision>-1</precision> | |
| 380 | + <trim_type>none</trim_type> | |
| 381 | + <repeat>N</repeat> | |
| 382 | + <format/> | |
| 383 | + <currency/> | |
| 384 | + <decimal/> | |
| 385 | + <group/> | |
| 386 | + </field> | |
| 387 | + <field> | |
| 388 | + <name>售票员工号</name> | |
| 389 | + <type>String</type> | |
| 390 | + <length>-1</length> | |
| 391 | + <precision>-1</precision> | |
| 392 | + <trim_type>none</trim_type> | |
| 393 | + <repeat>N</repeat> | |
| 394 | + <format>#</format> | |
| 395 | + <currency/> | |
| 396 | + <decimal/> | |
| 397 | + <group/> | |
| 398 | + </field> | |
| 399 | + <field> | |
| 400 | + <name>售票员</name> | |
| 401 | + <type>String</type> | |
| 402 | + <length>-1</length> | |
| 403 | + <precision>-1</precision> | |
| 404 | + <trim_type>none</trim_type> | |
| 405 | + <repeat>N</repeat> | |
| 406 | + <format/> | |
| 407 | + <currency/> | |
| 408 | + <decimal/> | |
| 409 | + <group/> | |
| 410 | + </field> | |
| 411 | + </fields> | |
| 412 | + <sheets> | |
| 413 | + <sheet> | |
| 414 | + <name>工作表1</name> | |
| 415 | + <startrow>0</startrow> | |
| 416 | + <startcol>0</startcol> | |
| 417 | + </sheet> | |
| 418 | + </sheets> | |
| 419 | + <strict_types>N</strict_types> | |
| 420 | + <error_ignored>N</error_ignored> | |
| 421 | + <error_line_skipped>N</error_line_skipped> | |
| 422 | + <bad_line_files_destination_directory/> | |
| 423 | + <bad_line_files_extension>warning</bad_line_files_extension> | |
| 424 | + <error_line_files_destination_directory/> | |
| 425 | + <error_line_files_extension>error</error_line_files_extension> | |
| 426 | + <line_number_files_destination_directory/> | |
| 427 | + <line_number_files_extension>line</line_number_files_extension> | |
| 428 | + <shortFileFieldName/> | |
| 429 | + <pathFieldName/> | |
| 430 | + <hiddenFieldName/> | |
| 431 | + <lastModificationTimeFieldName/> | |
| 432 | + <uriNameFieldName/> | |
| 433 | + <rootUriNameFieldName/> | |
| 434 | + <extensionFieldName/> | |
| 435 | + <sizeFieldName/> | |
| 436 | + <spreadsheet_type>JXL</spreadsheet_type> | |
| 437 | + <cluster_schema/> | |
| 438 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 439 | + <xloc>93</xloc> | |
| 440 | + <yloc>51</yloc> | |
| 441 | + <draw>Y</draw> | |
| 442 | + </GUI> | |
| 443 | + </step> | |
| 444 | + | |
| 445 | + <step> | |
| 446 | + <name>启用被数据flag</name> | |
| 447 | + <type>Constant</type> | |
| 448 | + <description/> | |
| 449 | + <distribute>Y</distribute> | |
| 450 | + <custom_distribution/> | |
| 451 | + <copies>1</copies> | |
| 452 | + <partitioning> | |
| 453 | + <method>none</method> | |
| 454 | + <schema_name/> | |
| 455 | + </partitioning> | |
| 456 | + <fields> | |
| 457 | + <field> | |
| 458 | + <name>isCancel</name> | |
| 459 | + <type>Integer</type> | |
| 460 | + <format/> | |
| 461 | + <currency/> | |
| 462 | + <decimal/> | |
| 463 | + <group/> | |
| 464 | + <nullif>0</nullif> | |
| 465 | + <length>-1</length> | |
| 466 | + <precision>-1</precision> | |
| 467 | + <set_empty_string>N</set_empty_string> | |
| 468 | + </field> | |
| 469 | + </fields> | |
| 470 | + <cluster_schema/> | |
| 471 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 472 | + <xloc>225</xloc> | |
| 473 | + <yloc>53</yloc> | |
| 474 | + <draw>Y</draw> | |
| 475 | + </GUI> | |
| 476 | + </step> | |
| 477 | + | |
| 478 | + <step> | |
| 479 | + <name>售票员id查找</name> | |
| 480 | + <type>DBJoin</type> | |
| 481 | + <description/> | |
| 482 | + <distribute>Y</distribute> | |
| 483 | + <custom_distribution/> | |
| 484 | + <copies>1</copies> | |
| 485 | + <partitioning> | |
| 486 | + <method>none</method> | |
| 487 | + <schema_name/> | |
| 488 | + </partitioning> | |
| 489 | + <connection>bus_control_variable</connection> | |
| 490 | + <rowlimit>1</rowlimit> | |
| 491 | + <sql>select id as sid from bsth_c_personnel
where job_codeori = ? and personnel_name = ?</sql> | |
| 492 | + <outer_join>Y</outer_join> | |
| 493 | + <replace_vars>N</replace_vars> | |
| 494 | + <parameter> | |
| 495 | + <field> | |
| 496 | + <name>售票员工号</name> | |
| 497 | + <type>String</type> | |
| 498 | + </field> | |
| 499 | + <field> | |
| 500 | + <name>售票员</name> | |
| 501 | + <type>String</type> | |
| 502 | + </field> | |
| 503 | + </parameter> | |
| 504 | + <cluster_schema/> | |
| 505 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 506 | + <xloc>830</xloc> | |
| 507 | + <yloc>45</yloc> | |
| 508 | + <draw>Y</draw> | |
| 509 | + </GUI> | |
| 510 | + </step> | |
| 511 | + | |
| 512 | + <step> | |
| 513 | + <name>插入/更新bsth_c_s_ecinfo</name> | |
| 514 | + <type>InsertUpdate</type> | |
| 515 | + <description/> | |
| 516 | + <distribute>Y</distribute> | |
| 517 | + <custom_distribution/> | |
| 518 | + <copies>1</copies> | |
| 519 | + <partitioning> | |
| 520 | + <method>none</method> | |
| 521 | + <schema_name/> | |
| 522 | + </partitioning> | |
| 523 | + <connection>bus_control_variable</connection> | |
| 524 | + <commit>100</commit> | |
| 525 | + <update_bypassed>N</update_bypassed> | |
| 526 | + <lookup> | |
| 527 | + <schema/> | |
| 528 | + <table>bsth_c_s_ecinfo</table> | |
| 529 | + <key> | |
| 530 | + <name>xlid</name> | |
| 531 | + <field>xl</field> | |
| 532 | + <condition>=</condition> | |
| 533 | + <name2/> | |
| 534 | + </key> | |
| 535 | + <key> | |
| 536 | + <name>搭班编码</name> | |
| 537 | + <field>dbbm</field> | |
| 538 | + <condition>=</condition> | |
| 539 | + <name2/> | |
| 540 | + </key> | |
| 541 | + <key> | |
| 542 | + <name>isCancel</name> | |
| 543 | + <field>is_cancel</field> | |
| 544 | + <condition>=</condition> | |
| 545 | + <name2/> | |
| 546 | + </key> | |
| 547 | + <value> | |
| 548 | + <name>xl</name> | |
| 549 | + <rename>xlid</rename> | |
| 550 | + <update>Y</update> | |
| 551 | + </value> | |
| 552 | + <value> | |
| 553 | + <name>dbbm</name> | |
| 554 | + <rename>搭班编码</rename> | |
| 555 | + <update>Y</update> | |
| 556 | + </value> | |
| 557 | + <value> | |
| 558 | + <name>jsy</name> | |
| 559 | + <rename>jid</rename> | |
| 560 | + <update>Y</update> | |
| 561 | + </value> | |
| 562 | + <value> | |
| 563 | + <name>spy</name> | |
| 564 | + <rename>sid</rename> | |
| 565 | + <update>Y</update> | |
| 566 | + </value> | |
| 567 | + <value> | |
| 568 | + <name>is_cancel</name> | |
| 569 | + <rename>isCancel</rename> | |
| 570 | + <update>Y</update> | |
| 571 | + </value> | |
| 572 | + </lookup> | |
| 573 | + <cluster_schema/> | |
| 574 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 575 | + <xloc>833</xloc> | |
| 576 | + <yloc>198</yloc> | |
| 577 | + <draw>Y</draw> | |
| 578 | + </GUI> | |
| 579 | + </step> | |
| 580 | + | |
| 581 | + <step> | |
| 582 | + <name>线路id查询</name> | |
| 583 | + <type>DBLookup</type> | |
| 584 | + <description/> | |
| 585 | + <distribute>Y</distribute> | |
| 586 | + <custom_distribution/> | |
| 587 | + <copies>1</copies> | |
| 588 | + <partitioning> | |
| 589 | + <method>none</method> | |
| 590 | + <schema_name/> | |
| 591 | + </partitioning> | |
| 592 | + <connection>bus_control_variable</connection> | |
| 593 | + <cache>Y</cache> | |
| 594 | + <cache_load_all>Y</cache_load_all> | |
| 595 | + <cache_size>0</cache_size> | |
| 596 | + <lookup> | |
| 597 | + <schema/> | |
| 598 | + <table>bsth_c_line</table> | |
| 599 | + <orderby/> | |
| 600 | + <fail_on_multiple>N</fail_on_multiple> | |
| 601 | + <eat_row_on_failure>N</eat_row_on_failure> | |
| 602 | + <key> | |
| 603 | + <name>线路</name> | |
| 604 | + <field>name</field> | |
| 605 | + <condition>=</condition> | |
| 606 | + <name2/> | |
| 607 | + </key> | |
| 608 | + <key> | |
| 609 | + <name>isCancel</name> | |
| 610 | + <field>destroy</field> | |
| 611 | + <condition>=</condition> | |
| 612 | + <name2/> | |
| 613 | + </key> | |
| 614 | + <value> | |
| 615 | + <name>id</name> | |
| 616 | + <rename>xlid</rename> | |
| 617 | + <default/> | |
| 618 | + <type>Integer</type> | |
| 619 | + </value> | |
| 620 | + </lookup> | |
| 621 | + <cluster_schema/> | |
| 622 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 623 | + <xloc>397</xloc> | |
| 624 | + <yloc>144</yloc> | |
| 625 | + <draw>Y</draw> | |
| 626 | + </GUI> | |
| 627 | + </step> | |
| 628 | + | |
| 629 | + <step> | |
| 630 | + <name>获取变量</name> | |
| 631 | + <type>GetVariable</type> | |
| 632 | + <description/> | |
| 633 | + <distribute>Y</distribute> | |
| 634 | + <custom_distribution/> | |
| 635 | + <copies>1</copies> | |
| 636 | + <partitioning> | |
| 637 | + <method>none</method> | |
| 638 | + <schema_name/> | |
| 639 | + </partitioning> | |
| 640 | + <fields> | |
| 641 | + <field> | |
| 642 | + <name>filepath_</name> | |
| 643 | + <variable>${filepath}</variable> | |
| 644 | + <type>String</type> | |
| 645 | + <format/> | |
| 646 | + <currency/> | |
| 647 | + <decimal/> | |
| 648 | + <group/> | |
| 649 | + <length>-1</length> | |
| 650 | + <precision>-1</precision> | |
| 651 | + <trim_type>none</trim_type> | |
| 652 | + </field> | |
| 653 | + <field> | |
| 654 | + <name>erroroutputdir_</name> | |
| 655 | + <variable>${erroroutputdir}</variable> | |
| 656 | + <type>String</type> | |
| 657 | + <format/> | |
| 658 | + <currency/> | |
| 659 | + <decimal/> | |
| 660 | + <group/> | |
| 661 | + <length>-1</length> | |
| 662 | + <precision>-1</precision> | |
| 663 | + <trim_type>none</trim_type> | |
| 664 | + </field> | |
| 665 | + </fields> | |
| 666 | + <cluster_schema/> | |
| 667 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 668 | + <xloc>94</xloc> | |
| 669 | + <yloc>178</yloc> | |
| 670 | + <draw>Y</draw> | |
| 671 | + </GUI> | |
| 672 | + </step> | |
| 673 | + | |
| 674 | + <step> | |
| 675 | + <name>过滤线路id为空记录</name> | |
| 676 | + <type>FilterRows</type> | |
| 677 | + <description/> | |
| 678 | + <distribute>Y</distribute> | |
| 679 | + <custom_distribution/> | |
| 680 | + <copies>1</copies> | |
| 681 | + <partitioning> | |
| 682 | + <method>none</method> | |
| 683 | + <schema_name/> | |
| 684 | + </partitioning> | |
| 685 | +<send_true_to/> | |
| 686 | +<send_false_to/> | |
| 687 | + <compare> | |
| 688 | +<condition> | |
| 689 | + <negated>N</negated> | |
| 690 | + <leftvalue>xlid</leftvalue> | |
| 691 | + <function>IS NOT NULL</function> | |
| 692 | + <rightvalue/> | |
| 693 | + </condition> | |
| 694 | + </compare> | |
| 695 | + <cluster_schema/> | |
| 696 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 697 | + <xloc>395</xloc> | |
| 698 | + <yloc>49</yloc> | |
| 699 | + <draw>Y</draw> | |
| 700 | + </GUI> | |
| 701 | + </step> | |
| 702 | + | |
| 703 | + <step> | |
| 704 | + <name>过滤驾驶员id为空记录</name> | |
| 705 | + <type>FilterRows</type> | |
| 706 | + <description/> | |
| 707 | + <distribute>Y</distribute> | |
| 708 | + <custom_distribution/> | |
| 709 | + <copies>1</copies> | |
| 710 | + <partitioning> | |
| 711 | + <method>none</method> | |
| 712 | + <schema_name/> | |
| 713 | + </partitioning> | |
| 714 | +<send_true_to>售票员id查找</send_true_to> | |
| 715 | +<send_false_to/> | |
| 716 | + <compare> | |
| 717 | +<condition> | |
| 718 | + <negated>N</negated> | |
| 719 | + <leftvalue>jid</leftvalue> | |
| 720 | + <function>IS NOT NULL</function> | |
| 721 | + <rightvalue/> | |
| 722 | + </condition> | |
| 723 | + </compare> | |
| 724 | + <cluster_schema/> | |
| 725 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 726 | + <xloc>604</xloc> | |
| 727 | + <yloc>46</yloc> | |
| 728 | + <draw>Y</draw> | |
| 729 | + </GUI> | |
| 730 | + </step> | |
| 731 | + | |
| 732 | + <step> | |
| 733 | + <name>错误输出</name> | |
| 734 | + <type>ExcelOutput</type> | |
| 735 | + <description/> | |
| 736 | + <distribute>Y</distribute> | |
| 737 | + <custom_distribution/> | |
| 738 | + <copies>1</copies> | |
| 739 | + <partitioning> | |
| 740 | + <method>none</method> | |
| 741 | + <schema_name/> | |
| 742 | + </partitioning> | |
| 743 | + <header>Y</header> | |
| 744 | + <footer>N</footer> | |
| 745 | + <encoding>UTF-8</encoding> | |
| 746 | + <append>N</append> | |
| 747 | + <add_to_result_filenames>Y</add_to_result_filenames> | |
| 748 | + <file> | |
| 749 | + <name>${erroroutputdir}/人员配置_错误</name> | |
| 750 | + <extention>xls</extention> | |
| 751 | + <do_not_open_newfile_init>N</do_not_open_newfile_init> | |
| 752 | + <create_parent_folder>N</create_parent_folder> | |
| 753 | + <split>N</split> | |
| 754 | + <add_date>N</add_date> | |
| 755 | + <add_time>N</add_time> | |
| 756 | + <SpecifyFormat>N</SpecifyFormat> | |
| 757 | + <date_time_format/> | |
| 758 | + <sheetname>Sheet1</sheetname> | |
| 759 | + <autosizecolums>N</autosizecolums> | |
| 760 | + <nullisblank>N</nullisblank> | |
| 761 | + <protect_sheet>N</protect_sheet> | |
| 762 | + <password>Encrypted </password> | |
| 763 | + <splitevery>0</splitevery> | |
| 764 | + <usetempfiles>N</usetempfiles> | |
| 765 | + <tempdirectory/> | |
| 766 | + </file> | |
| 767 | + <template> | |
| 768 | + <enabled>N</enabled> | |
| 769 | + <append>N</append> | |
| 770 | + <filename>template.xls</filename> | |
| 771 | + </template> | |
| 772 | + <fields> | |
| 773 | + <field> | |
| 774 | + <name>线路</name> | |
| 775 | + <type>String</type> | |
| 776 | + <format/> | |
| 777 | + </field> | |
| 778 | + <field> | |
| 779 | + <name>搭班编码</name> | |
| 780 | + <type>String</type> | |
| 781 | + <format/> | |
| 782 | + </field> | |
| 783 | + <field> | |
| 784 | + <name>驾驶员工号</name> | |
| 785 | + <type>String</type> | |
| 786 | + <format/> | |
| 787 | + </field> | |
| 788 | + <field> | |
| 789 | + <name>驾驶员</name> | |
| 790 | + <type>String</type> | |
| 791 | + <format/> | |
| 792 | + </field> | |
| 793 | + <field> | |
| 794 | + <name>售票员工号</name> | |
| 795 | + <type>String</type> | |
| 796 | + <format/> | |
| 797 | + </field> | |
| 798 | + <field> | |
| 799 | + <name>售票员</name> | |
| 800 | + <type>String</type> | |
| 801 | + <format/> | |
| 802 | + </field> | |
| 803 | + <field> | |
| 804 | + <name>isCancel</name> | |
| 805 | + <type>Integer</type> | |
| 806 | + <format/> | |
| 807 | + </field> | |
| 808 | + <field> | |
| 809 | + <name>xlid</name> | |
| 810 | + <type>Integer</type> | |
| 811 | + <format/> | |
| 812 | + </field> | |
| 813 | + <field> | |
| 814 | + <name>jid</name> | |
| 815 | + <type>Integer</type> | |
| 816 | + <format/> | |
| 817 | + </field> | |
| 818 | + <field> | |
| 819 | + <name>sid</name> | |
| 820 | + <type>Integer</type> | |
| 821 | + <format/> | |
| 822 | + </field> | |
| 823 | + <field> | |
| 824 | + <name>error_count</name> | |
| 825 | + <type>Integer</type> | |
| 826 | + <format/> | |
| 827 | + </field> | |
| 828 | + <field> | |
| 829 | + <name>error_desc</name> | |
| 830 | + <type>String</type> | |
| 831 | + <format/> | |
| 832 | + </field> | |
| 833 | + <field> | |
| 834 | + <name>error_column1</name> | |
| 835 | + <type>String</type> | |
| 836 | + <format/> | |
| 837 | + </field> | |
| 838 | + <field> | |
| 839 | + <name>error_column2</name> | |
| 840 | + <type>String</type> | |
| 841 | + <format/> | |
| 842 | + </field> | |
| 843 | + </fields> | |
| 844 | + <custom> | |
| 845 | + <header_font_name>arial</header_font_name> | |
| 846 | + <header_font_size>10</header_font_size> | |
| 847 | + <header_font_bold>N</header_font_bold> | |
| 848 | + <header_font_italic>N</header_font_italic> | |
| 849 | + <header_font_underline>no</header_font_underline> | |
| 850 | + <header_font_orientation>horizontal</header_font_orientation> | |
| 851 | + <header_font_color>black</header_font_color> | |
| 852 | + <header_background_color>none</header_background_color> | |
| 853 | + <header_row_height>255</header_row_height> | |
| 854 | + <header_alignment>left</header_alignment> | |
| 855 | + <header_image/> | |
| 856 | + <row_font_name>arial</row_font_name> | |
| 857 | + <row_font_size>10</row_font_size> | |
| 858 | + <row_font_color>black</row_font_color> | |
| 859 | + <row_background_color>none</row_background_color> | |
| 860 | + </custom> | |
| 861 | + <cluster_schema/> | |
| 862 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 863 | + <xloc>833</xloc> | |
| 864 | + <yloc>321</yloc> | |
| 865 | + <draw>Y</draw> | |
| 866 | + </GUI> | |
| 867 | + </step> | |
| 868 | + | |
| 869 | + <step> | |
| 870 | + <name>驾驶员id查找</name> | |
| 871 | + <type>DBJoin</type> | |
| 872 | + <description/> | |
| 873 | + <distribute>Y</distribute> | |
| 874 | + <custom_distribution/> | |
| 875 | + <copies>1</copies> | |
| 876 | + <partitioning> | |
| 877 | + <method>none</method> | |
| 878 | + <schema_name/> | |
| 879 | + </partitioning> | |
| 880 | + <connection>bus_control_variable</connection> | |
| 881 | + <rowlimit>1</rowlimit> | |
| 882 | + <sql>select id as jid from bsth_c_personnel
where job_codeori = ? and personnel_name = ?</sql> | |
| 883 | + <outer_join>Y</outer_join> | |
| 884 | + <replace_vars>N</replace_vars> | |
| 885 | + <parameter> | |
| 886 | + <field> | |
| 887 | + <name>驾驶员工号</name> | |
| 888 | + <type>String</type> | |
| 889 | + </field> | |
| 890 | + <field> | |
| 891 | + <name>驾驶员</name> | |
| 892 | + <type>String</type> | |
| 893 | + </field> | |
| 894 | + </parameter> | |
| 895 | + <cluster_schema/> | |
| 896 | + <remotesteps> <input> </input> <output> </output> </remotesteps> <GUI> | |
| 897 | + <xloc>603</xloc> | |
| 898 | + <yloc>142</yloc> | |
| 899 | + <draw>Y</draw> | |
| 900 | + </GUI> | |
| 901 | + </step> | |
| 902 | + | |
| 903 | + <step_error_handling> | |
| 904 | + <error> | |
| 905 | + <source_step>插入/更新bsth_c_s_ecinfo</source_step> | |
| 906 | + <target_step>错误输出</target_step> | |
| 907 | + <is_enabled>Y</is_enabled> | |
| 908 | + <nr_valuename>error_count</nr_valuename> | |
| 909 | + <descriptions_valuename>error_desc</descriptions_valuename> | |
| 910 | + <fields_valuename>error_column1</fields_valuename> | |
| 911 | + <codes_valuename>error_column2</codes_valuename> | |
| 912 | + <max_errors/> | |
| 913 | + <max_pct_errors/> | |
| 914 | + <min_pct_rows/> | |
| 915 | + </error> | |
| 916 | + </step_error_handling> | |
| 917 | + <slave-step-copy-partition-distribution> | |
| 918 | +</slave-step-copy-partition-distribution> | |
| 919 | + <slave_transformation>N</slave_transformation> | |
| 920 | + | |
| 921 | +</transformation> | ... | ... |