Commit 937051939a221997998524ad77fd039dd24de7fd
1 parent
c6dc0b52
1.行车路单、服务热线上报修正
Showing
2 changed files
with
718 additions
and
722 deletions
Too many changes to show.
To preserve performance only 2 of 4 files are displayed.
src/main/java/com/bsth/data/report_register/entity/ReportRegister.java
| 1 | -package com.bsth.data.report_register.entity; | ||
| 2 | - | ||
| 3 | -import javax.persistence.Column; | ||
| 4 | -import javax.persistence.Entity; | ||
| 5 | -import javax.persistence.GeneratedValue; | ||
| 6 | -import javax.persistence.Id; | ||
| 7 | -import javax.persistence.Table; | ||
| 8 | -import java.text.DateFormat; | ||
| 9 | -import java.text.SimpleDateFormat; | ||
| 10 | -import java.util.Date; | ||
| 11 | - | ||
| 12 | - | ||
| 13 | -@Entity | ||
| 14 | -@Table(name = "bsth_t_report") | ||
| 15 | -public class ReportRegister { | ||
| 16 | - | ||
| 17 | - @Id | ||
| 18 | - @GeneratedValue | ||
| 19 | - private long ID; | ||
| 20 | - | ||
| 21 | - /** 类型*/ | ||
| 22 | - private String REPORT_TYPE; | ||
| 23 | - /** 公司 */ | ||
| 24 | - private String REPORT_GS; | ||
| 25 | - /** 分公司 */ | ||
| 26 | - private String REPORT_FGS; | ||
| 27 | - /** 公司名 */ | ||
| 28 | - private String REPORT_GSNAME; | ||
| 29 | - /** 分公司名 */ | ||
| 30 | - private String REPORT_FGSNAME; | ||
| 31 | - /** 时间*/ | ||
| 32 | - private Date REPORT_DATE; | ||
| 33 | - /** 报备人*/ | ||
| 34 | - private String REPORT_BBR; | ||
| 35 | - /** 线路编码 */ | ||
| 36 | - private String REPORT_XL; | ||
| 37 | - /** 线路名*/ | ||
| 38 | - private String REPORT_XLNAME; | ||
| 39 | - /** 站点*/ | ||
| 40 | - private String REPORT_STATION; | ||
| 41 | - /** 对外上报部门*/ | ||
| 42 | - private String REPORT_DWSBBM; | ||
| 43 | - /** 对外上报时间*/ | ||
| 44 | - private String REPORT_DWSBSJ; | ||
| 45 | - /** 延误时间*/ | ||
| 46 | - private String REPORT_YWSJ; | ||
| 47 | - /** 首末班误点原因*/ | ||
| 48 | - private String REPORT_SMBWD; | ||
| 49 | - /** 大间隔时间*/ | ||
| 50 | - private String REPORT_DJGSJ; | ||
| 51 | - /** 大间隔原因*/ | ||
| 52 | - private String REPORT_DJGYY; | ||
| 53 | - /** 突发事件*/ | ||
| 54 | - private String REPORT_TFSJ; | ||
| 55 | - /** 影响时间*/ | ||
| 56 | - private String REPORT_YXSJ; | ||
| 57 | - /** 影响班次数*/ | ||
| 58 | - private String REPORT_YXBC; | ||
| 59 | - /** 调整措施*/ | ||
| 60 | - private String REPORT_TZCS; | ||
| 61 | - /** 报案事故编号*/ | ||
| 62 | - private String REPORT_SGBH; | ||
| 63 | - /** 车辆自编号*/ | ||
| 64 | - private String REPORT_ZBH; | ||
| 65 | - /** 车辆牌照号*/ | ||
| 66 | - private String REPORT_PZH; | ||
| 67 | - /** 驾驶员*/ | ||
| 68 | - private String REPORT_JSY; | ||
| 69 | - /** 事故发生时间*/ | ||
| 70 | - private String REPORT_SGSJ; | ||
| 71 | - /** 事故发生地点*/ | ||
| 72 | - private String REPORT_SGDD; | ||
| 73 | - /** 行驶方向*/ | ||
| 74 | - private String REPORT_XSFX; | ||
| 75 | - /** 事故对象*/ | ||
| 76 | - private String REPORT_SGDX; | ||
| 77 | - /** 对象车牌照号*/ | ||
| 78 | - private String REPORT_DXPZH; | ||
| 79 | - /** 事故概况*/ | ||
| 80 | - private String REPORT_SGGK; | ||
| 81 | - /** 受伤人数*/ | ||
| 82 | - private String REPORT_SSRS; | ||
| 83 | - /** 死亡人数*/ | ||
| 84 | - private String REPORT_SWRS; | ||
| 85 | - /** 报告人 */ | ||
| 86 | - private String REPORT_BGR; | ||
| 87 | - /** 报告人电话 */ | ||
| 88 | - private String REPORT_BGRDH; | ||
| 89 | - /** 备注 */ | ||
| 90 | - private String REPORT_BZ; | ||
| 91 | - /** 路段*/ | ||
| 92 | - private String REPORT_ROAD; | ||
| 93 | - /** 访问接口时使用的状态码 操作类型,0:新增;1:修改;2:删除 */ | ||
| 94 | - private String STATUS; | ||
| 95 | - /** 创建人*/ | ||
| 96 | - private String CREATE_BY; | ||
| 97 | - /** 创建时间 */ | ||
| 98 | - @Column(updatable = false, name = "CREATE_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | ||
| 99 | - private Date CREATE_DATE; | ||
| 100 | - /** 修改人*/ | ||
| 101 | - private String UPDATE_BY; | ||
| 102 | - /** 修改时间*/ | ||
| 103 | - @Column(name = "UPDATE_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | ||
| 104 | - private Date UPDATE_DATE; | ||
| 105 | - | ||
| 106 | - public long getID() { | ||
| 107 | - return ID; | ||
| 108 | - } | ||
| 109 | - | ||
| 110 | - public void setID(long ID) { | ||
| 111 | - this.ID = ID; | ||
| 112 | - } | ||
| 113 | - | ||
| 114 | - public String getREPORT_TYPE() { | ||
| 115 | - return REPORT_TYPE; | ||
| 116 | - } | ||
| 117 | - | ||
| 118 | - public void setREPORT_TYPE(String REPORT_TYPE) { | ||
| 119 | - this.REPORT_TYPE = REPORT_TYPE; | ||
| 120 | - } | ||
| 121 | - | ||
| 122 | - public String getREPORT_GS() { | ||
| 123 | - return REPORT_GS; | ||
| 124 | - } | ||
| 125 | - | ||
| 126 | - public void setREPORT_GS(String REPORT_GS) { | ||
| 127 | - this.REPORT_GS = REPORT_GS; | ||
| 128 | - } | ||
| 129 | - | ||
| 130 | - public String getREPORT_FGS() { | ||
| 131 | - return REPORT_FGS; | ||
| 132 | - } | ||
| 133 | - | ||
| 134 | - public void setREPORT_FGS(String REPORT_FGS) { | ||
| 135 | - this.REPORT_FGS = REPORT_FGS; | ||
| 136 | - } | ||
| 137 | - | ||
| 138 | - public String getREPORT_GSNAME() { | ||
| 139 | - return REPORT_GSNAME; | ||
| 140 | - } | ||
| 141 | - | ||
| 142 | - public void setREPORT_GSNAME(String REPORT_GSNAME) { | ||
| 143 | - this.REPORT_GSNAME = REPORT_GSNAME; | ||
| 144 | - } | ||
| 145 | - | ||
| 146 | - public String getREPORT_FGSNAME() { | ||
| 147 | - return REPORT_FGSNAME; | ||
| 148 | - } | ||
| 149 | - | ||
| 150 | - public void setREPORT_FGSNAME(String REPORT_FGSNAME) { | ||
| 151 | - this.REPORT_FGSNAME = REPORT_FGSNAME; | ||
| 152 | - } | ||
| 153 | - | ||
| 154 | - public Date getREPORT_DATE() { | ||
| 155 | - return REPORT_DATE; | ||
| 156 | - } | ||
| 157 | - | ||
| 158 | - public void setREPORT_DATE(Date REPORT_DATE) { | ||
| 159 | - this.REPORT_DATE = REPORT_DATE; | ||
| 160 | - } | ||
| 161 | - | ||
| 162 | - public String getREPORT_BBR() { | ||
| 163 | - return REPORT_BBR; | ||
| 164 | - } | ||
| 165 | - | ||
| 166 | - public void setREPORT_BBR(String REPORT_BBR) { | ||
| 167 | - this.REPORT_BBR = REPORT_BBR; | ||
| 168 | - } | ||
| 169 | - | ||
| 170 | - public String getREPORT_XL() { | ||
| 171 | - return REPORT_XL; | ||
| 172 | - } | ||
| 173 | - | ||
| 174 | - public void setREPORT_XL(String REPORT_XL) { | ||
| 175 | - this.REPORT_XL = REPORT_XL; | ||
| 176 | - } | ||
| 177 | - | ||
| 178 | - public String getREPORT_XLNAME() { | ||
| 179 | - return REPORT_XLNAME; | ||
| 180 | - } | ||
| 181 | - | ||
| 182 | - public void setREPORT_XLNAME(String REPORT_XLNAME) { | ||
| 183 | - this.REPORT_XLNAME = REPORT_XLNAME; | ||
| 184 | - } | ||
| 185 | - | ||
| 186 | - public String getREPORT_STATION() { | ||
| 187 | - return REPORT_STATION; | ||
| 188 | - } | ||
| 189 | - | ||
| 190 | - public void setREPORT_STATION(String REPORT_STATION) { | ||
| 191 | - this.REPORT_STATION = REPORT_STATION; | ||
| 192 | - } | ||
| 193 | - | ||
| 194 | - public String getREPORT_DWSBBM() { | ||
| 195 | - return REPORT_DWSBBM; | ||
| 196 | - } | ||
| 197 | - | ||
| 198 | - public void setREPORT_DWSBBM(String REPORT_DWSBBM) { | ||
| 199 | - this.REPORT_DWSBBM = REPORT_DWSBBM; | ||
| 200 | - } | ||
| 201 | - | ||
| 202 | - public String getREPORT_DWSBSJ() { | ||
| 203 | - return REPORT_DWSBSJ; | ||
| 204 | - } | ||
| 205 | - | ||
| 206 | - public void setREPORT_DWSBSJ(String REPORT_DWSBSJ) { | ||
| 207 | - this.REPORT_DWSBSJ = REPORT_DWSBSJ; | ||
| 208 | - } | ||
| 209 | - | ||
| 210 | - public String getREPORT_YWSJ() { | ||
| 211 | - return REPORT_YWSJ; | ||
| 212 | - } | ||
| 213 | - | ||
| 214 | - public void setREPORT_YWSJ(String REPORT_YWSJ) { | ||
| 215 | - this.REPORT_YWSJ = REPORT_YWSJ; | ||
| 216 | - } | ||
| 217 | - | ||
| 218 | - public String getREPORT_SMBWD() { | ||
| 219 | - return REPORT_SMBWD; | ||
| 220 | - } | ||
| 221 | - | ||
| 222 | - public void setREPORT_SMBWD(String REPORT_SMBWD) { | ||
| 223 | - this.REPORT_SMBWD = REPORT_SMBWD; | ||
| 224 | - } | ||
| 225 | - | ||
| 226 | - public String getREPORT_DJGSJ() { | ||
| 227 | - return REPORT_DJGSJ; | ||
| 228 | - } | ||
| 229 | - | ||
| 230 | - public void setREPORT_DJGSJ(String REPORT_DJGSJ) { | ||
| 231 | - this.REPORT_DJGSJ = REPORT_DJGSJ; | ||
| 232 | - } | ||
| 233 | - | ||
| 234 | - public String getREPORT_DJGYY() { | ||
| 235 | - return REPORT_DJGYY; | ||
| 236 | - } | ||
| 237 | - | ||
| 238 | - public void setREPORT_DJGYY(String REPORT_DJGYY) { | ||
| 239 | - this.REPORT_DJGYY = REPORT_DJGYY; | ||
| 240 | - } | ||
| 241 | - | ||
| 242 | - public String getREPORT_TFSJ() { | ||
| 243 | - return REPORT_TFSJ; | ||
| 244 | - } | ||
| 245 | - | ||
| 246 | - public void setREPORT_TFSJ(String REPORT_TFSJ) { | ||
| 247 | - this.REPORT_TFSJ = REPORT_TFSJ; | ||
| 248 | - } | ||
| 249 | - | ||
| 250 | - public String getREPORT_YXSJ() { | ||
| 251 | - return REPORT_YXSJ; | ||
| 252 | - } | ||
| 253 | - | ||
| 254 | - public void setREPORT_YXSJ(String REPORT_YXSJ) { | ||
| 255 | - this.REPORT_YXSJ = REPORT_YXSJ; | ||
| 256 | - } | ||
| 257 | - | ||
| 258 | - public String getREPORT_YXBC() { | ||
| 259 | - return REPORT_YXBC; | ||
| 260 | - } | ||
| 261 | - | ||
| 262 | - public void setREPORT_YXBC(String REPORT_YXBC) { | ||
| 263 | - this.REPORT_YXBC = REPORT_YXBC; | ||
| 264 | - } | ||
| 265 | - | ||
| 266 | - public String getREPORT_TZCS() { | ||
| 267 | - return REPORT_TZCS; | ||
| 268 | - } | ||
| 269 | - | ||
| 270 | - public void setREPORT_TZCS(String REPORT_TZCS) { | ||
| 271 | - this.REPORT_TZCS = REPORT_TZCS; | ||
| 272 | - } | ||
| 273 | - | ||
| 274 | - public String getREPORT_SGBH() { | ||
| 275 | - return REPORT_SGBH; | ||
| 276 | - } | ||
| 277 | - | ||
| 278 | - public void setREPORT_SGBH(String REPORT_SGBH) { | ||
| 279 | - this.REPORT_SGBH = REPORT_SGBH; | ||
| 280 | - } | ||
| 281 | - | ||
| 282 | - public String getREPORT_ZBH() { | ||
| 283 | - return REPORT_ZBH; | ||
| 284 | - } | ||
| 285 | - | ||
| 286 | - public void setREPORT_ZBH(String REPORT_ZBH) { | ||
| 287 | - this.REPORT_ZBH = REPORT_ZBH; | ||
| 288 | - } | ||
| 289 | - | ||
| 290 | - public String getREPORT_PZH() { | ||
| 291 | - return REPORT_PZH; | ||
| 292 | - } | ||
| 293 | - | ||
| 294 | - public void setREPORT_PZH(String REPORT_PZH) { | ||
| 295 | - this.REPORT_PZH = REPORT_PZH; | ||
| 296 | - } | ||
| 297 | - | ||
| 298 | - public String getREPORT_JSY() { | ||
| 299 | - return REPORT_JSY; | ||
| 300 | - } | ||
| 301 | - | ||
| 302 | - public void setREPORT_JSY(String REPORT_JSY) { | ||
| 303 | - this.REPORT_JSY = REPORT_JSY; | ||
| 304 | - } | ||
| 305 | - | ||
| 306 | - public String getREPORT_SGSJ() { | ||
| 307 | - return REPORT_SGSJ; | ||
| 308 | - } | ||
| 309 | - | ||
| 310 | - public void setREPORT_SGSJ(String REPORT_SGSJ) { | ||
| 311 | - this.REPORT_SGSJ = REPORT_SGSJ; | ||
| 312 | - } | ||
| 313 | - | ||
| 314 | - public String getREPORT_SGDD() { | ||
| 315 | - return REPORT_SGDD; | ||
| 316 | - } | ||
| 317 | - | ||
| 318 | - public void setREPORT_SGDD(String REPORT_SGDD) { | ||
| 319 | - this.REPORT_SGDD = REPORT_SGDD; | ||
| 320 | - } | ||
| 321 | - | ||
| 322 | - public String getREPORT_XSFX() { | ||
| 323 | - return REPORT_XSFX; | ||
| 324 | - } | ||
| 325 | - | ||
| 326 | - public void setREPORT_XSFX(String REPORT_XSFX) { | ||
| 327 | - this.REPORT_XSFX = REPORT_XSFX; | ||
| 328 | - } | ||
| 329 | - | ||
| 330 | - public String getREPORT_SGDX() { | ||
| 331 | - return REPORT_SGDX; | ||
| 332 | - } | ||
| 333 | - | ||
| 334 | - public void setREPORT_SGDX(String REPORT_SGDX) { | ||
| 335 | - this.REPORT_SGDX = REPORT_SGDX; | ||
| 336 | - } | ||
| 337 | - | ||
| 338 | - public String getREPORT_DXPZH() { | ||
| 339 | - return REPORT_DXPZH; | ||
| 340 | - } | ||
| 341 | - | ||
| 342 | - public void setREPORT_DXPZH(String REPORT_DXPZH) { | ||
| 343 | - this.REPORT_DXPZH = REPORT_DXPZH; | ||
| 344 | - } | ||
| 345 | - | ||
| 346 | - public String getREPORT_SGGK() { | ||
| 347 | - return REPORT_SGGK; | ||
| 348 | - } | ||
| 349 | - | ||
| 350 | - public void setREPORT_SGGK(String REPORT_SGGK) { | ||
| 351 | - this.REPORT_SGGK = REPORT_SGGK; | ||
| 352 | - } | ||
| 353 | - | ||
| 354 | - public String getREPORT_SSRS() { | ||
| 355 | - return REPORT_SSRS; | ||
| 356 | - } | ||
| 357 | - | ||
| 358 | - public void setREPORT_SSRS(String REPORT_SSRS) { | ||
| 359 | - this.REPORT_SSRS = REPORT_SSRS; | ||
| 360 | - } | ||
| 361 | - | ||
| 362 | - public String getREPORT_SWRS() { | ||
| 363 | - return REPORT_SWRS; | ||
| 364 | - } | ||
| 365 | - | ||
| 366 | - public void setREPORT_SWRS(String REPORT_SWRS) { | ||
| 367 | - this.REPORT_SWRS = REPORT_SWRS; | ||
| 368 | - } | ||
| 369 | - | ||
| 370 | - public String getREPORT_BGR() { | ||
| 371 | - return REPORT_BGR; | ||
| 372 | - } | ||
| 373 | - | ||
| 374 | - public void setREPORT_BGR(String REPORT_BGR) { | ||
| 375 | - this.REPORT_BGR = REPORT_BGR; | ||
| 376 | - } | ||
| 377 | - | ||
| 378 | - public String getREPORT_BGRDH() { | ||
| 379 | - return REPORT_BGRDH; | ||
| 380 | - } | ||
| 381 | - | ||
| 382 | - public void setREPORT_BGRDH(String REPORT_BGRDH) { | ||
| 383 | - this.REPORT_BGRDH = REPORT_BGRDH; | ||
| 384 | - } | ||
| 385 | - | ||
| 386 | - public String getREPORT_BZ() { | ||
| 387 | - return REPORT_BZ; | ||
| 388 | - } | ||
| 389 | - | ||
| 390 | - public void setREPORT_BZ(String REPORT_BZ) { | ||
| 391 | - this.REPORT_BZ = REPORT_BZ; | ||
| 392 | - } | ||
| 393 | - | ||
| 394 | - public String getCREATE_BY() { | ||
| 395 | - return CREATE_BY; | ||
| 396 | - } | ||
| 397 | - | ||
| 398 | - public void setCREATE_BY(String CREATE_BY) { | ||
| 399 | - this.CREATE_BY = CREATE_BY; | ||
| 400 | - } | ||
| 401 | - | ||
| 402 | - public Date getCREATE_DATE() { | ||
| 403 | - return CREATE_DATE; | ||
| 404 | - } | ||
| 405 | - | ||
| 406 | - public void setCREATE_DATE(Date CREATE_DATE) { | ||
| 407 | - this.CREATE_DATE = CREATE_DATE; | ||
| 408 | - } | ||
| 409 | - | ||
| 410 | - public String getUPDATE_BY() { | ||
| 411 | - return UPDATE_BY; | ||
| 412 | - } | ||
| 413 | - | ||
| 414 | - public void setUPDATE_BY(String UPDATE_BY) { | ||
| 415 | - this.UPDATE_BY = UPDATE_BY; | ||
| 416 | - } | ||
| 417 | - | ||
| 418 | - public Date getUPDATE_DATE() { | ||
| 419 | - return UPDATE_DATE; | ||
| 420 | - } | ||
| 421 | - | ||
| 422 | - public void setUPDATE_DATE(Date UPDATE_DATE) { | ||
| 423 | - this.UPDATE_DATE = UPDATE_DATE; | ||
| 424 | - } | ||
| 425 | - | ||
| 426 | - public String getREPORT_ROAD() { | ||
| 427 | - return REPORT_ROAD; | ||
| 428 | - } | ||
| 429 | - | ||
| 430 | - public void setREPORT_ROAD(String REPORT_ROAD) { | ||
| 431 | - this.REPORT_ROAD = REPORT_ROAD; | ||
| 432 | - } | ||
| 433 | - | ||
| 434 | - public String getSTATUS() { | ||
| 435 | - return STATUS; | ||
| 436 | - } | ||
| 437 | - | ||
| 438 | - public void setSTATUS(String STATUS) { | ||
| 439 | - this.STATUS = STATUS; | ||
| 440 | - } | ||
| 441 | - | ||
| 442 | - @Override | ||
| 443 | - public String toString() { | ||
| 444 | - DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
| 445 | - return "{" + | ||
| 446 | - "ID:'" + ID + '\'' + | ||
| 447 | - ", REPORT_TYPE:'" + REPORT_TYPE + '\'' + | ||
| 448 | - ", REPORT_GS:'" + REPORT_GS + '\'' + | ||
| 449 | - ", REPORT_FGS:'" + REPORT_FGS + '\'' + | ||
| 450 | - ", REPORT_DATE:'" + dateFormat.format(REPORT_DATE) + '\'' + | ||
| 451 | - ", REPORT_BBR:'" + REPORT_BBR + '\'' + | ||
| 452 | - ", REPORT_XL:'" + REPORT_XL + '\'' + | ||
| 453 | - ", REPORT_XLNAME:'" + REPORT_XLNAME + '\'' + | ||
| 454 | - ", REPORT_STATION:'" + REPORT_STATION + '\'' + | ||
| 455 | - ", REPORT_DWSBBM:'" + REPORT_DWSBBM + '\'' + | ||
| 456 | - ", REPORT_DWSBSJ:'" + REPORT_DWSBSJ + '\'' + | ||
| 457 | - ", REPORT_YWSJ:'" + REPORT_YWSJ + '\'' + | ||
| 458 | - ", REPORT_SMBWD:'" + REPORT_SMBWD + '\'' + | ||
| 459 | - ", REPORT_DJGSJ:'" + REPORT_DJGSJ + '\'' + | ||
| 460 | - ", REPORT_DJGYY:'" + REPORT_DJGYY + '\'' + | ||
| 461 | - ", REPORT_TFSJ:'" + REPORT_TFSJ + '\'' + | ||
| 462 | - ", REPORT_YXSJ:'" + REPORT_YXSJ + '\'' + | ||
| 463 | - ", REPORT_YXBC:'" + REPORT_YXBC + '\'' + | ||
| 464 | - ", REPORT_TZCS:'" + REPORT_TZCS + '\'' + | ||
| 465 | - ", REPORT_SGBH:'" + REPORT_SGBH + '\'' + | ||
| 466 | - ", REPORT_ZBH:'" + REPORT_ZBH + '\'' + | ||
| 467 | - ", REPORT_PZH:'" + REPORT_PZH + '\'' + | ||
| 468 | - ", REPORT_JSY:'" + REPORT_JSY + '\'' + | ||
| 469 | - ", REPORT_SGSJ:'" + REPORT_SGSJ + '\'' + | ||
| 470 | - ", REPORT_SGDD:'" + REPORT_SGDD + '\'' + | ||
| 471 | - ", REPORT_XSFX:'" + REPORT_XSFX + '\'' + | ||
| 472 | - ", REPORT_SGDX:'" + REPORT_SGDX + '\'' + | ||
| 473 | - ", REPORT_DXPZH:'" + REPORT_DXPZH + '\'' + | ||
| 474 | - ", REPORT_SGGK:'" + REPORT_SGGK + '\'' + | ||
| 475 | - ", REPORT_SSRS:'" + REPORT_SSRS + '\'' + | ||
| 476 | - ", REPORT_SWRS:'" + REPORT_SWRS + '\'' + | ||
| 477 | - ", REPORT_BGR:'" + REPORT_BGR + '\'' + | ||
| 478 | - ", REPORT_BGRDH:'" + REPORT_BGRDH + '\'' + | ||
| 479 | - ", REPORT_BZ:'" + REPORT_BZ + '\'' + | ||
| 480 | - ", CREATE_BY:'" + CREATE_BY + '\'' + | ||
| 481 | - ", CREATE_DATE:" + CREATE_DATE + | ||
| 482 | - ", UPDATE_BY:'" + UPDATE_BY + '\'' + | ||
| 483 | - ", UPDATE_DATE:" + UPDATE_DATE + | ||
| 484 | - ", REPORT_ROAD:'" + REPORT_ROAD + '\'' + | ||
| 485 | - ", STATUS:'" + STATUS + '\'' + | ||
| 486 | - '}'; | ||
| 487 | - } | ||
| 488 | -} | 1 | +package com.bsth.data.report_register.entity; |
| 2 | + | ||
| 3 | +import javax.persistence.*; | ||
| 4 | +import java.text.DateFormat; | ||
| 5 | +import java.text.SimpleDateFormat; | ||
| 6 | +import java.util.Date; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +@Entity | ||
| 10 | +@Table(name = "bsth_t_report") | ||
| 11 | +public class ReportRegister { | ||
| 12 | + | ||
| 13 | + @Id | ||
| 14 | + @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
| 15 | + private long ID; | ||
| 16 | + | ||
| 17 | + /** 类型*/ | ||
| 18 | + private String REPORT_TYPE; | ||
| 19 | + /** 公司 */ | ||
| 20 | + private String REPORT_GS; | ||
| 21 | + /** 分公司 */ | ||
| 22 | + private String REPORT_FGS; | ||
| 23 | + /** 公司名 */ | ||
| 24 | + private String REPORT_GSNAME; | ||
| 25 | + /** 分公司名 */ | ||
| 26 | + private String REPORT_FGSNAME; | ||
| 27 | + /** 时间*/ | ||
| 28 | + private Date REPORT_DATE; | ||
| 29 | + /** 报备人*/ | ||
| 30 | + private String REPORT_BBR; | ||
| 31 | + /** 线路编码 */ | ||
| 32 | + private String REPORT_XL; | ||
| 33 | + /** 线路名*/ | ||
| 34 | + private String REPORT_XLNAME; | ||
| 35 | + /** 站点*/ | ||
| 36 | + private String REPORT_STATION; | ||
| 37 | + /** 对外上报部门*/ | ||
| 38 | + private String REPORT_DWSBBM; | ||
| 39 | + /** 对外上报时间*/ | ||
| 40 | + private String REPORT_DWSBSJ; | ||
| 41 | + /** 延误时间*/ | ||
| 42 | + private String REPORT_YWSJ; | ||
| 43 | + /** 首末班误点原因*/ | ||
| 44 | + private String REPORT_SMBWD; | ||
| 45 | + /** 大间隔时间*/ | ||
| 46 | + private String REPORT_DJGSJ; | ||
| 47 | + /** 大间隔原因*/ | ||
| 48 | + private String REPORT_DJGYY; | ||
| 49 | + /** 突发事件*/ | ||
| 50 | + private String REPORT_TFSJ; | ||
| 51 | + /** 影响时间*/ | ||
| 52 | + private String REPORT_YXSJ; | ||
| 53 | + /** 影响班次数*/ | ||
| 54 | + private String REPORT_YXBC; | ||
| 55 | + /** 调整措施*/ | ||
| 56 | + private String REPORT_TZCS; | ||
| 57 | + /** 报案事故编号*/ | ||
| 58 | + private String REPORT_SGBH; | ||
| 59 | + /** 车辆自编号*/ | ||
| 60 | + private String REPORT_ZBH; | ||
| 61 | + /** 车辆牌照号*/ | ||
| 62 | + private String REPORT_PZH; | ||
| 63 | + /** 驾驶员*/ | ||
| 64 | + private String REPORT_JSY; | ||
| 65 | + /** 事故发生时间*/ | ||
| 66 | + private String REPORT_SGSJ; | ||
| 67 | + /** 事故发生地点*/ | ||
| 68 | + private String REPORT_SGDD; | ||
| 69 | + /** 行驶方向*/ | ||
| 70 | + private String REPORT_XSFX; | ||
| 71 | + /** 事故对象*/ | ||
| 72 | + private String REPORT_SGDX; | ||
| 73 | + /** 对象车牌照号*/ | ||
| 74 | + private String REPORT_DXPZH; | ||
| 75 | + /** 事故概况*/ | ||
| 76 | + private String REPORT_SGGK; | ||
| 77 | + /** 受伤人数*/ | ||
| 78 | + private String REPORT_SSRS; | ||
| 79 | + /** 死亡人数*/ | ||
| 80 | + private String REPORT_SWRS; | ||
| 81 | + /** 报告人 */ | ||
| 82 | + private String REPORT_BGR; | ||
| 83 | + /** 报告人电话 */ | ||
| 84 | + private String REPORT_BGRDH; | ||
| 85 | + /** 备注 */ | ||
| 86 | + private String REPORT_BZ; | ||
| 87 | + /** 路段*/ | ||
| 88 | + private String REPORT_ROAD; | ||
| 89 | + /** 访问接口时使用的状态码 操作类型,0:新增;1:修改;2:删除 */ | ||
| 90 | + private String STATUS; | ||
| 91 | + /** 创建人*/ | ||
| 92 | + private String CREATE_BY; | ||
| 93 | + /** 创建时间 */ | ||
| 94 | + @Column(updatable = false, name = "CREATE_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | ||
| 95 | + private Date CREATE_DATE; | ||
| 96 | + /** 修改人*/ | ||
| 97 | + private String UPDATE_BY; | ||
| 98 | + /** 修改时间*/ | ||
| 99 | + @Column(name = "UPDATE_DATE", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | ||
| 100 | + private Date UPDATE_DATE; | ||
| 101 | + | ||
| 102 | + public long getID() { | ||
| 103 | + return ID; | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + public void setID(long ID) { | ||
| 107 | + this.ID = ID; | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + public String getREPORT_TYPE() { | ||
| 111 | + return REPORT_TYPE; | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + public void setREPORT_TYPE(String REPORT_TYPE) { | ||
| 115 | + this.REPORT_TYPE = REPORT_TYPE; | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + public String getREPORT_GS() { | ||
| 119 | + return REPORT_GS; | ||
| 120 | + } | ||
| 121 | + | ||
| 122 | + public void setREPORT_GS(String REPORT_GS) { | ||
| 123 | + this.REPORT_GS = REPORT_GS; | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + public String getREPORT_FGS() { | ||
| 127 | + return REPORT_FGS; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + public void setREPORT_FGS(String REPORT_FGS) { | ||
| 131 | + this.REPORT_FGS = REPORT_FGS; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public String getREPORT_GSNAME() { | ||
| 135 | + return REPORT_GSNAME; | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + public void setREPORT_GSNAME(String REPORT_GSNAME) { | ||
| 139 | + this.REPORT_GSNAME = REPORT_GSNAME; | ||
| 140 | + } | ||
| 141 | + | ||
| 142 | + public String getREPORT_FGSNAME() { | ||
| 143 | + return REPORT_FGSNAME; | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + public void setREPORT_FGSNAME(String REPORT_FGSNAME) { | ||
| 147 | + this.REPORT_FGSNAME = REPORT_FGSNAME; | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + public Date getREPORT_DATE() { | ||
| 151 | + return REPORT_DATE; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public void setREPORT_DATE(Date REPORT_DATE) { | ||
| 155 | + this.REPORT_DATE = REPORT_DATE; | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + public String getREPORT_BBR() { | ||
| 159 | + return REPORT_BBR; | ||
| 160 | + } | ||
| 161 | + | ||
| 162 | + public void setREPORT_BBR(String REPORT_BBR) { | ||
| 163 | + this.REPORT_BBR = REPORT_BBR; | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + public String getREPORT_XL() { | ||
| 167 | + return REPORT_XL; | ||
| 168 | + } | ||
| 169 | + | ||
| 170 | + public void setREPORT_XL(String REPORT_XL) { | ||
| 171 | + this.REPORT_XL = REPORT_XL; | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + public String getREPORT_XLNAME() { | ||
| 175 | + return REPORT_XLNAME; | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + public void setREPORT_XLNAME(String REPORT_XLNAME) { | ||
| 179 | + this.REPORT_XLNAME = REPORT_XLNAME; | ||
| 180 | + } | ||
| 181 | + | ||
| 182 | + public String getREPORT_STATION() { | ||
| 183 | + return REPORT_STATION; | ||
| 184 | + } | ||
| 185 | + | ||
| 186 | + public void setREPORT_STATION(String REPORT_STATION) { | ||
| 187 | + this.REPORT_STATION = REPORT_STATION; | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + public String getREPORT_DWSBBM() { | ||
| 191 | + return REPORT_DWSBBM; | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public void setREPORT_DWSBBM(String REPORT_DWSBBM) { | ||
| 195 | + this.REPORT_DWSBBM = REPORT_DWSBBM; | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + public String getREPORT_DWSBSJ() { | ||
| 199 | + return REPORT_DWSBSJ; | ||
| 200 | + } | ||
| 201 | + | ||
| 202 | + public void setREPORT_DWSBSJ(String REPORT_DWSBSJ) { | ||
| 203 | + this.REPORT_DWSBSJ = REPORT_DWSBSJ; | ||
| 204 | + } | ||
| 205 | + | ||
| 206 | + public String getREPORT_YWSJ() { | ||
| 207 | + return REPORT_YWSJ; | ||
| 208 | + } | ||
| 209 | + | ||
| 210 | + public void setREPORT_YWSJ(String REPORT_YWSJ) { | ||
| 211 | + this.REPORT_YWSJ = REPORT_YWSJ; | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + public String getREPORT_SMBWD() { | ||
| 215 | + return REPORT_SMBWD; | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + public void setREPORT_SMBWD(String REPORT_SMBWD) { | ||
| 219 | + this.REPORT_SMBWD = REPORT_SMBWD; | ||
| 220 | + } | ||
| 221 | + | ||
| 222 | + public String getREPORT_DJGSJ() { | ||
| 223 | + return REPORT_DJGSJ; | ||
| 224 | + } | ||
| 225 | + | ||
| 226 | + public void setREPORT_DJGSJ(String REPORT_DJGSJ) { | ||
| 227 | + this.REPORT_DJGSJ = REPORT_DJGSJ; | ||
| 228 | + } | ||
| 229 | + | ||
| 230 | + public String getREPORT_DJGYY() { | ||
| 231 | + return REPORT_DJGYY; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + public void setREPORT_DJGYY(String REPORT_DJGYY) { | ||
| 235 | + this.REPORT_DJGYY = REPORT_DJGYY; | ||
| 236 | + } | ||
| 237 | + | ||
| 238 | + public String getREPORT_TFSJ() { | ||
| 239 | + return REPORT_TFSJ; | ||
| 240 | + } | ||
| 241 | + | ||
| 242 | + public void setREPORT_TFSJ(String REPORT_TFSJ) { | ||
| 243 | + this.REPORT_TFSJ = REPORT_TFSJ; | ||
| 244 | + } | ||
| 245 | + | ||
| 246 | + public String getREPORT_YXSJ() { | ||
| 247 | + return REPORT_YXSJ; | ||
| 248 | + } | ||
| 249 | + | ||
| 250 | + public void setREPORT_YXSJ(String REPORT_YXSJ) { | ||
| 251 | + this.REPORT_YXSJ = REPORT_YXSJ; | ||
| 252 | + } | ||
| 253 | + | ||
| 254 | + public String getREPORT_YXBC() { | ||
| 255 | + return REPORT_YXBC; | ||
| 256 | + } | ||
| 257 | + | ||
| 258 | + public void setREPORT_YXBC(String REPORT_YXBC) { | ||
| 259 | + this.REPORT_YXBC = REPORT_YXBC; | ||
| 260 | + } | ||
| 261 | + | ||
| 262 | + public String getREPORT_TZCS() { | ||
| 263 | + return REPORT_TZCS; | ||
| 264 | + } | ||
| 265 | + | ||
| 266 | + public void setREPORT_TZCS(String REPORT_TZCS) { | ||
| 267 | + this.REPORT_TZCS = REPORT_TZCS; | ||
| 268 | + } | ||
| 269 | + | ||
| 270 | + public String getREPORT_SGBH() { | ||
| 271 | + return REPORT_SGBH; | ||
| 272 | + } | ||
| 273 | + | ||
| 274 | + public void setREPORT_SGBH(String REPORT_SGBH) { | ||
| 275 | + this.REPORT_SGBH = REPORT_SGBH; | ||
| 276 | + } | ||
| 277 | + | ||
| 278 | + public String getREPORT_ZBH() { | ||
| 279 | + return REPORT_ZBH; | ||
| 280 | + } | ||
| 281 | + | ||
| 282 | + public void setREPORT_ZBH(String REPORT_ZBH) { | ||
| 283 | + this.REPORT_ZBH = REPORT_ZBH; | ||
| 284 | + } | ||
| 285 | + | ||
| 286 | + public String getREPORT_PZH() { | ||
| 287 | + return REPORT_PZH; | ||
| 288 | + } | ||
| 289 | + | ||
| 290 | + public void setREPORT_PZH(String REPORT_PZH) { | ||
| 291 | + this.REPORT_PZH = REPORT_PZH; | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + public String getREPORT_JSY() { | ||
| 295 | + return REPORT_JSY; | ||
| 296 | + } | ||
| 297 | + | ||
| 298 | + public void setREPORT_JSY(String REPORT_JSY) { | ||
| 299 | + this.REPORT_JSY = REPORT_JSY; | ||
| 300 | + } | ||
| 301 | + | ||
| 302 | + public String getREPORT_SGSJ() { | ||
| 303 | + return REPORT_SGSJ; | ||
| 304 | + } | ||
| 305 | + | ||
| 306 | + public void setREPORT_SGSJ(String REPORT_SGSJ) { | ||
| 307 | + this.REPORT_SGSJ = REPORT_SGSJ; | ||
| 308 | + } | ||
| 309 | + | ||
| 310 | + public String getREPORT_SGDD() { | ||
| 311 | + return REPORT_SGDD; | ||
| 312 | + } | ||
| 313 | + | ||
| 314 | + public void setREPORT_SGDD(String REPORT_SGDD) { | ||
| 315 | + this.REPORT_SGDD = REPORT_SGDD; | ||
| 316 | + } | ||
| 317 | + | ||
| 318 | + public String getREPORT_XSFX() { | ||
| 319 | + return REPORT_XSFX; | ||
| 320 | + } | ||
| 321 | + | ||
| 322 | + public void setREPORT_XSFX(String REPORT_XSFX) { | ||
| 323 | + this.REPORT_XSFX = REPORT_XSFX; | ||
| 324 | + } | ||
| 325 | + | ||
| 326 | + public String getREPORT_SGDX() { | ||
| 327 | + return REPORT_SGDX; | ||
| 328 | + } | ||
| 329 | + | ||
| 330 | + public void setREPORT_SGDX(String REPORT_SGDX) { | ||
| 331 | + this.REPORT_SGDX = REPORT_SGDX; | ||
| 332 | + } | ||
| 333 | + | ||
| 334 | + public String getREPORT_DXPZH() { | ||
| 335 | + return REPORT_DXPZH; | ||
| 336 | + } | ||
| 337 | + | ||
| 338 | + public void setREPORT_DXPZH(String REPORT_DXPZH) { | ||
| 339 | + this.REPORT_DXPZH = REPORT_DXPZH; | ||
| 340 | + } | ||
| 341 | + | ||
| 342 | + public String getREPORT_SGGK() { | ||
| 343 | + return REPORT_SGGK; | ||
| 344 | + } | ||
| 345 | + | ||
| 346 | + public void setREPORT_SGGK(String REPORT_SGGK) { | ||
| 347 | + this.REPORT_SGGK = REPORT_SGGK; | ||
| 348 | + } | ||
| 349 | + | ||
| 350 | + public String getREPORT_SSRS() { | ||
| 351 | + return REPORT_SSRS; | ||
| 352 | + } | ||
| 353 | + | ||
| 354 | + public void setREPORT_SSRS(String REPORT_SSRS) { | ||
| 355 | + this.REPORT_SSRS = REPORT_SSRS; | ||
| 356 | + } | ||
| 357 | + | ||
| 358 | + public String getREPORT_SWRS() { | ||
| 359 | + return REPORT_SWRS; | ||
| 360 | + } | ||
| 361 | + | ||
| 362 | + public void setREPORT_SWRS(String REPORT_SWRS) { | ||
| 363 | + this.REPORT_SWRS = REPORT_SWRS; | ||
| 364 | + } | ||
| 365 | + | ||
| 366 | + public String getREPORT_BGR() { | ||
| 367 | + return REPORT_BGR; | ||
| 368 | + } | ||
| 369 | + | ||
| 370 | + public void setREPORT_BGR(String REPORT_BGR) { | ||
| 371 | + this.REPORT_BGR = REPORT_BGR; | ||
| 372 | + } | ||
| 373 | + | ||
| 374 | + public String getREPORT_BGRDH() { | ||
| 375 | + return REPORT_BGRDH; | ||
| 376 | + } | ||
| 377 | + | ||
| 378 | + public void setREPORT_BGRDH(String REPORT_BGRDH) { | ||
| 379 | + this.REPORT_BGRDH = REPORT_BGRDH; | ||
| 380 | + } | ||
| 381 | + | ||
| 382 | + public String getREPORT_BZ() { | ||
| 383 | + return REPORT_BZ; | ||
| 384 | + } | ||
| 385 | + | ||
| 386 | + public void setREPORT_BZ(String REPORT_BZ) { | ||
| 387 | + this.REPORT_BZ = REPORT_BZ; | ||
| 388 | + } | ||
| 389 | + | ||
| 390 | + public String getCREATE_BY() { | ||
| 391 | + return CREATE_BY; | ||
| 392 | + } | ||
| 393 | + | ||
| 394 | + public void setCREATE_BY(String CREATE_BY) { | ||
| 395 | + this.CREATE_BY = CREATE_BY; | ||
| 396 | + } | ||
| 397 | + | ||
| 398 | + public Date getCREATE_DATE() { | ||
| 399 | + return CREATE_DATE; | ||
| 400 | + } | ||
| 401 | + | ||
| 402 | + public void setCREATE_DATE(Date CREATE_DATE) { | ||
| 403 | + this.CREATE_DATE = CREATE_DATE; | ||
| 404 | + } | ||
| 405 | + | ||
| 406 | + public String getUPDATE_BY() { | ||
| 407 | + return UPDATE_BY; | ||
| 408 | + } | ||
| 409 | + | ||
| 410 | + public void setUPDATE_BY(String UPDATE_BY) { | ||
| 411 | + this.UPDATE_BY = UPDATE_BY; | ||
| 412 | + } | ||
| 413 | + | ||
| 414 | + public Date getUPDATE_DATE() { | ||
| 415 | + return UPDATE_DATE; | ||
| 416 | + } | ||
| 417 | + | ||
| 418 | + public void setUPDATE_DATE(Date UPDATE_DATE) { | ||
| 419 | + this.UPDATE_DATE = UPDATE_DATE; | ||
| 420 | + } | ||
| 421 | + | ||
| 422 | + public String getREPORT_ROAD() { | ||
| 423 | + return REPORT_ROAD; | ||
| 424 | + } | ||
| 425 | + | ||
| 426 | + public void setREPORT_ROAD(String REPORT_ROAD) { | ||
| 427 | + this.REPORT_ROAD = REPORT_ROAD; | ||
| 428 | + } | ||
| 429 | + | ||
| 430 | + public String getSTATUS() { | ||
| 431 | + return STATUS; | ||
| 432 | + } | ||
| 433 | + | ||
| 434 | + public void setSTATUS(String STATUS) { | ||
| 435 | + this.STATUS = STATUS; | ||
| 436 | + } | ||
| 437 | + | ||
| 438 | + @Override | ||
| 439 | + public String toString() { | ||
| 440 | + DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
| 441 | + return "{" + | ||
| 442 | + "ID:'" + ID + '\'' + | ||
| 443 | + ", REPORT_TYPE:'" + REPORT_TYPE + '\'' + | ||
| 444 | + ", REPORT_GS:'" + REPORT_GS + '\'' + | ||
| 445 | + ", REPORT_FGS:'" + REPORT_FGS + '\'' + | ||
| 446 | + ", REPORT_DATE:'" + dateFormat.format(REPORT_DATE) + '\'' + | ||
| 447 | + ", REPORT_BBR:'" + REPORT_BBR + '\'' + | ||
| 448 | + ", REPORT_XL:'" + REPORT_XL + '\'' + | ||
| 449 | + ", REPORT_XLNAME:'" + REPORT_XLNAME + '\'' + | ||
| 450 | + ", REPORT_STATION:'" + REPORT_STATION + '\'' + | ||
| 451 | + ", REPORT_DWSBBM:'" + REPORT_DWSBBM + '\'' + | ||
| 452 | + ", REPORT_DWSBSJ:'" + REPORT_DWSBSJ + '\'' + | ||
| 453 | + ", REPORT_YWSJ:'" + REPORT_YWSJ + '\'' + | ||
| 454 | + ", REPORT_SMBWD:'" + REPORT_SMBWD + '\'' + | ||
| 455 | + ", REPORT_DJGSJ:'" + REPORT_DJGSJ + '\'' + | ||
| 456 | + ", REPORT_DJGYY:'" + REPORT_DJGYY + '\'' + | ||
| 457 | + ", REPORT_TFSJ:'" + REPORT_TFSJ + '\'' + | ||
| 458 | + ", REPORT_YXSJ:'" + REPORT_YXSJ + '\'' + | ||
| 459 | + ", REPORT_YXBC:'" + REPORT_YXBC + '\'' + | ||
| 460 | + ", REPORT_TZCS:'" + REPORT_TZCS + '\'' + | ||
| 461 | + ", REPORT_SGBH:'" + REPORT_SGBH + '\'' + | ||
| 462 | + ", REPORT_ZBH:'" + REPORT_ZBH + '\'' + | ||
| 463 | + ", REPORT_PZH:'" + REPORT_PZH + '\'' + | ||
| 464 | + ", REPORT_JSY:'" + REPORT_JSY + '\'' + | ||
| 465 | + ", REPORT_SGSJ:'" + REPORT_SGSJ + '\'' + | ||
| 466 | + ", REPORT_SGDD:'" + REPORT_SGDD + '\'' + | ||
| 467 | + ", REPORT_XSFX:'" + REPORT_XSFX + '\'' + | ||
| 468 | + ", REPORT_SGDX:'" + REPORT_SGDX + '\'' + | ||
| 469 | + ", REPORT_DXPZH:'" + REPORT_DXPZH + '\'' + | ||
| 470 | + ", REPORT_SGGK:'" + REPORT_SGGK + '\'' + | ||
| 471 | + ", REPORT_SSRS:'" + REPORT_SSRS + '\'' + | ||
| 472 | + ", REPORT_SWRS:'" + REPORT_SWRS + '\'' + | ||
| 473 | + ", REPORT_BGR:'" + REPORT_BGR + '\'' + | ||
| 474 | + ", REPORT_BGRDH:'" + REPORT_BGRDH + '\'' + | ||
| 475 | + ", REPORT_BZ:'" + REPORT_BZ + '\'' + | ||
| 476 | + ", CREATE_BY:'" + CREATE_BY + '\'' + | ||
| 477 | + ", CREATE_DATE:" + CREATE_DATE + | ||
| 478 | + ", UPDATE_BY:'" + UPDATE_BY + '\'' + | ||
| 479 | + ", UPDATE_DATE:" + UPDATE_DATE + | ||
| 480 | + ", REPORT_ROAD:'" + REPORT_ROAD + '\'' + | ||
| 481 | + ", STATUS:'" + STATUS + '\'' + | ||
| 482 | + '}'; | ||
| 483 | + } | ||
| 484 | +} |
src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
| 1 | -package com.bsth.repository.realcontrol; | ||
| 2 | - | ||
| 3 | -import com.bsth.entity.realcontrol.ScheduleRealInfo; | ||
| 4 | -import com.bsth.entity.schedule.CarConfigInfo; | ||
| 5 | -import com.bsth.repository.BaseRepository; | ||
| 6 | -import org.springframework.data.domain.Page; | ||
| 7 | -import org.springframework.data.domain.Pageable; | ||
| 8 | -import org.springframework.data.jpa.domain.Specification; | ||
| 9 | -import org.springframework.data.jpa.repository.EntityGraph; | ||
| 10 | -import org.springframework.data.jpa.repository.Modifying; | ||
| 11 | -import org.springframework.data.jpa.repository.Query; | ||
| 12 | -import org.springframework.stereotype.Repository; | ||
| 13 | - | ||
| 14 | -import javax.transaction.Transactional; | ||
| 15 | -import java.util.List; | ||
| 16 | -import java.util.Map; | ||
| 17 | - | ||
| 18 | -@Repository | ||
| 19 | -public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealInfo, Long>{ | ||
| 20 | - | ||
| 21 | - @Query("select s from ScheduleRealInfo s where s.xlBm in ?1") | ||
| 22 | - List<ScheduleRealInfo> findByLines(List<String> lines); | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - @Query(value="select s from ScheduleRealInfo s where s.id = ?1 ") | ||
| 26 | - ScheduleRealInfo scheduleById(Long id); | ||
| 27 | - | ||
| 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 | - List<ScheduleRealInfo> scheduleDailyQp(String line,String date); | ||
| 30 | - | ||
| 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 | - List<ScheduleRealInfo> queryUserInfo(String line,String date); | ||
| 33 | - | ||
| 34 | - @Query(value="select min(s.id), s.jGh,s.clZbh,s.lpName,min(s.jName) from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 GROUP BY s.jGh,s.clZbh,s.lpName order by (lpName+1)") | ||
| 35 | - List<ScheduleRealInfo> queryUserInfo2(String line,String date); | ||
| 36 | - | ||
| 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 | - List<ScheduleRealInfo> queryUserInfo3(String line,String date); | ||
| 39 | - | ||
| 40 | - @Query(value="select s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 order by bcs") | ||
| 41 | - List<ScheduleRealInfo> exportWaybill(String jName,String clZbh,String lpName); | ||
| 42 | - | ||
| 43 | - //把sum(addMileage) 替换为0 数据表去掉了 add_mileage 字段 | ||
| 44 | - @Query(value="select new map(clZbh as clZbh,jGh as jGh,jName as jName,sum(jhlc) as zgl," | ||
| 45 | - + "0 as ksgl,count(jName) as bcs) from ScheduleRealInfo s where" | ||
| 46 | - + " s.xlBm = ?1 and s.scheduleDateStr = ?2 group by clZbh,jGh,jName") | ||
| 47 | - List<Map<String, Object>> dailyInfo(String line,String date); | ||
| 48 | - | ||
| 49 | - @Query(value="select d.device_id,d.sender,d.txt_content,d.timestamp,d.line_code from " | ||
| 50 | - + " bsth_v_directive_60 d where d.line_code=?1 and d.timestamp >=?2 and " | ||
| 51 | - + "d.timestamp <=?3 and d.device_id like %?4% ",nativeQuery=true) | ||
| 52 | - List<Object[]> historyMessage(String line,long d,long t,String code); | ||
| 53 | - | ||
| 54 | - @Query(value="SELECT r.xl_name,r.lp_name,r.cl_zbh,count(*) as cs " | ||
| 55 | - + " FROM bsth_c_s_sp_info_real r RIGHT JOIN bsth_v_directive_60 d " | ||
| 56 | - + " ON r.id = d.sch WHERE d.is_dispatch = 1 AND r.xl_bm like %?1% AND " | ||
| 57 | - + " r.schedule_date_str = ?2 and r.cl_zbh like %?3% group by " | ||
| 58 | - + " lp_name,xl_name,cl_zbh",nativeQuery=true) | ||
| 59 | - List<Object[]> historyMessageCount(String line,String date,String code); | ||
| 60 | - | ||
| 61 | - @Query(value="SELECT r.xl_name,r.cl_zbh,d.sender,d.timestamp,d.txt_content " | ||
| 62 | - + " FROM bsth_c_s_sp_info_real r RIGHT JOIN bsth_v_directive_60 d " | ||
| 63 | - + " ON r.id = d.sch WHERE d.is_dispatch = 1 AND r.xl_bm like %?1% AND " | ||
| 64 | - + " r.schedule_date_str = ?2 and r.cl_zbh =?3 ",nativeQuery=true) | ||
| 65 | - List<Object[]> historyMessageList(String line,String date,String code); | ||
| 66 | - | ||
| 67 | - @Query(value = "select max(id) from ScheduleRealInfo") | ||
| 68 | - Long getMaxId(); | ||
| 69 | - | ||
| 70 | - @Query(value = "select count(*) from ScheduleRealInfo s where s.scheduleDateStr = ?1") | ||
| 71 | - int countByDate(String date); | ||
| 72 | - | ||
| 73 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 74 | - @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.scheduleDateStr = ?1") | ||
| 75 | - List<ScheduleRealInfo> findByDate(String dateStr); | ||
| 76 | - | ||
| 77 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 78 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and cl_zbh=?3 order by bcs") | ||
| 79 | - List<ScheduleRealInfo> findByDate2(String line,String date,String clzbh); | ||
| 80 | - | ||
| 81 | - @Query(value="select count(jName) from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.status = -1") | ||
| 82 | - int findCjbc(String jName,String clZbh,String lpName); | ||
| 83 | - | ||
| 84 | - @Query(value="select count(jName) from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and sflj != 0") | ||
| 85 | - int findLjbc(String jName,String clZbh,String lpName); | ||
| 86 | - | ||
| 87 | - @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) | ||
| 88 | - List<Object[]> account(String line,String date,String code); | ||
| 89 | - | ||
| 90 | - @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 " | ||
| 91 | - + " and s.scheduleDateStr <= ?3 and s.lpName like %?4% " | ||
| 92 | - + " and clZbh like %?5% order by s.fcsj") | ||
| 93 | - List<ScheduleRealInfo> correctForm(String line,String startDate,String endDate,String lpName,String code); | ||
| 94 | - | ||
| 95 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 96 | - @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") | ||
| 97 | - List<ScheduleRealInfo> queryListWaybill(String jName,String clZbh,String lpName,String date,String line); | ||
| 98 | - | ||
| 99 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 100 | - @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") | ||
| 101 | - List<ScheduleRealInfo> queryListWaybillXcld(String jGh,String clZbh,String lpName,String date,String line); | ||
| 102 | - | ||
| 103 | -// @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 104 | -// @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,fcsj") | ||
| 105 | -// List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); | ||
| 106 | - | ||
| 107 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 108 | - @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.realExecDate,s.fcsj") | ||
| 109 | - List<ScheduleRealInfo> scheduleByDateAndLineTjrb(String line,String date); | ||
| 110 | - | ||
| 111 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 112 | - @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") | ||
| 113 | - List<ScheduleRealInfo> scheduleByDateAndLineInOut(String line,String date,String zd); | ||
| 114 | - | ||
| 115 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 116 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.clZbh = ?1 and s.scheduleDateStr = ?2 and xlBm =?3 order by realExecDate,fcsj") | ||
| 117 | - List<ScheduleRealInfo> queryListWaybill2(String clZbh,String date,String line); | ||
| 118 | - | ||
| 119 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 120 | - @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") | ||
| 121 | - List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); | ||
| 122 | - | ||
| 123 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 124 | - @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") | ||
| 125 | - List<ScheduleRealInfo> queryListWaybill4(String jName,String clZbh,String date,String enddate); | ||
| 126 | - | ||
| 127 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 128 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2") | ||
| 129 | - List<ScheduleRealInfo> scheduleDaily(String line,String date); | ||
| 130 | - | ||
| 131 | - @Query(value = "select count(*) from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") | ||
| 132 | - int countByLineCodeAndDate(String xlBm, String schDate); | ||
| 133 | - | ||
| 134 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 135 | - @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2 and ccService=false") | ||
| 136 | - List<ScheduleRealInfo> findByLineCodeAndDate(String xlBm, String schDate); | ||
| 137 | - | ||
| 138 | - @Modifying | ||
| 139 | - @Transactional | ||
| 140 | - @Query(value = "delete ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") | ||
| 141 | - void deleteByLineCodeAndDate(String xlBm, String schDate); | ||
| 142 | - | ||
| 143 | - //去掉了 xlBm is not null | ||
| 144 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 145 | - @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") | ||
| 146 | - List<ScheduleRealInfo> scheduleByDateAndLine(String line,String date); | ||
| 147 | - | ||
| 148 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 149 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 order by s.lpName, s.realExecDate,s.fcsj") | ||
| 150 | - List<ScheduleRealInfo> scheduleByDateAndLineQp(String line,String date); | ||
| 151 | - | ||
| 152 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 153 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.ccService=false order by s.lpName, s.realExecDate,s.fcsj") | ||
| 154 | - List<ScheduleRealInfo> scheduleDdrb(String line,String date); | ||
| 155 | - | ||
| 156 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 157 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr= ?2 and s.ccService=false order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | ||
| 158 | - List<ScheduleRealInfo> scheduleDdrb2(String line,String date); | ||
| 159 | - | ||
| 160 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 161 | - @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") | ||
| 162 | - List<ScheduleRealInfo> scheduleByDateAndLineByGs_(String gsdm,String fgsdm,String date); | ||
| 163 | - | ||
| 164 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 165 | - @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") | ||
| 166 | - List<ScheduleRealInfo> scheduleByDateAndLineByGs(String gsdm,String fgsdm,String date); | ||
| 167 | - | ||
| 168 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 169 | - @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") | ||
| 170 | - List<ScheduleRealInfo> scheduleByDateAndLineQp2(String line,String date); | ||
| 171 | - | ||
| 172 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 173 | - @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.realExecDate,s.fcsj") | ||
| 174 | - List<ScheduleRealInfo> scheduleByDateAndLine2(String line,String date); | ||
| 175 | - | ||
| 176 | - //按月统计 | ||
| 177 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 178 | - @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") | ||
| 179 | - List<ScheduleRealInfo> scheduleByDateAndLine3(String line,String date); | ||
| 180 | - | ||
| 181 | - //按照时间段统计 | ||
| 182 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 183 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr between ?2 and ?3 and gsBm = ?4 and fgsBm like %?5% order by s.fgsBm, s.xlBm") | ||
| 184 | - List<ScheduleRealInfo> scheduleByDateAndLineTj(String line,String date,String date2,String gsdm,String fgsdm); | ||
| 185 | - | ||
| 186 | - //按照时间段统计 | ||
| 187 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 188 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.fgsBm,s.xlBm") | ||
| 189 | - List<ScheduleRealInfo> scheduleByDateAndLineTj2(String line,String date,String date2); | ||
| 190 | - //月报表 | ||
| 191 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 192 | - @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.xlBm") | ||
| 193 | - List<ScheduleRealInfo> scheduleByDateAndLineYbb(String line,String date,String date2); | ||
| 194 | - | ||
| 195 | - | ||
| 196 | - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(CONCAT(s.realExecDate,' ',s.fcsj)) AS realExecDate ) 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,lpName ORDER BY clZbh,realExecDate") | ||
| 197 | - List<Map<String,Object>> yesterdayDataList(String line,String date,String gsbm,String fgsbm,String nbbm); | ||
| 198 | - | ||
| 199 | - @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(CONCAT(s.realExecDate,' ',s.fcsj)) AS realExecDate ) 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,lpName ORDER BY clZbh,realExecDate") | ||
| 200 | - List<Map<String,Object>> yesterdayDataList_eq(String line,String date,String gsbm,String fgsbm,String nbbm); | ||
| 201 | - | ||
| 202 | - @Query(value="select s from ScheduleRealInfo s where s.scheduleDateStr = ?1 ORDER BY xlBm,lpName,clZbh,xlDir") | ||
| 203 | - List<ScheduleRealInfo> setLD(String date); | ||
| 204 | - | ||
| 205 | - @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") | ||
| 206 | - List<Map<String,Object>> setLDGroup(String date); | ||
| 207 | - | ||
| 208 | - @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") | ||
| 209 | - List<Map<String,Object>> setLCYHGroup(String date); | ||
| 210 | - | ||
| 211 | - @Query(value="select new map(xlBm as xlBm) from ScheduleRealInfo s where s.scheduleDateStr = ?1 GROUP BY xlBm ORDER BY xlBm") | ||
| 212 | - List<Map<String,Object>> setDDRBGroup(String date); | ||
| 213 | - | ||
| 214 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 215 | - @Override | ||
| 216 | - Page<ScheduleRealInfo> findAll(Specification<ScheduleRealInfo> spec, Pageable pageable); | ||
| 217 | - | ||
| 218 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 219 | - @Override | ||
| 220 | - List<ScheduleRealInfo> findAll(Specification<ScheduleRealInfo> spec); | ||
| 221 | - | ||
| 222 | - @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 223 | - @Override | ||
| 224 | - List<ScheduleRealInfo> findAll(); | ||
| 225 | - | ||
| 226 | - @Modifying | ||
| 227 | - @Transactional | ||
| 228 | - @Query(value = "update ScheduleRealInfo s set s.lpChange=1 where s.id=?1 ") | ||
| 229 | - Integer updateLpChange(Long id); | ||
| 230 | - | ||
| 231 | - @Query(value = "select count (s.id) from ScheduleRealInfo s where s.clZbh=?1 and s.scheduleDateStr=?2 and s.xlBm=?3 and s.qdzCode=?4") | ||
| 232 | - Long isCircleQdz(String clzbh,String sdr,String xlbm,String qdzCode); | ||
| 233 | - | ||
| 234 | -} | 1 | +package com.bsth.repository.realcontrol; |
| 2 | + | ||
| 3 | +import com.bsth.entity.realcontrol.ScheduleRealInfo; | ||
| 4 | +import com.bsth.entity.schedule.CarConfigInfo; | ||
| 5 | +import com.bsth.repository.BaseRepository; | ||
| 6 | +import org.springframework.data.domain.Page; | ||
| 7 | +import org.springframework.data.domain.Pageable; | ||
| 8 | +import org.springframework.data.jpa.domain.Specification; | ||
| 9 | +import org.springframework.data.jpa.repository.EntityGraph; | ||
| 10 | +import org.springframework.data.jpa.repository.Modifying; | ||
| 11 | +import org.springframework.data.jpa.repository.Query; | ||
| 12 | +import org.springframework.stereotype.Repository; | ||
| 13 | + | ||
| 14 | +import javax.transaction.Transactional; | ||
| 15 | +import java.util.List; | ||
| 16 | +import java.util.Map; | ||
| 17 | + | ||
| 18 | +@Repository | ||
| 19 | +public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealInfo, Long>{ | ||
| 20 | + | ||
| 21 | + @Query("select s from ScheduleRealInfo s where s.xlBm in ?1") | ||
| 22 | + List<ScheduleRealInfo> findByLines(List<String> lines); | ||
| 23 | + | ||
| 24 | + | ||
| 25 | + @Query(value="select s from ScheduleRealInfo s where s.id = ?1 ") | ||
| 26 | + ScheduleRealInfo scheduleById(Long id); | ||
| 27 | + | ||
| 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 | + List<ScheduleRealInfo> scheduleDailyQp(String line,String date); | ||
| 30 | + | ||
| 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 | + List<ScheduleRealInfo> queryUserInfo(String line,String date); | ||
| 33 | + | ||
| 34 | + @Query(value="select min(s.id), s.jGh,s.clZbh,s.lpName,min(s.jName) from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 GROUP BY s.jGh,s.clZbh,s.lpName order by (lpName+1)") | ||
| 35 | + List<Object[]> queryUserInfo2(String line,String date); | ||
| 36 | + | ||
| 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 | + List<Object[]> queryUserInfo3(String line,String date); | ||
| 39 | + | ||
| 40 | + @Query(value="select s from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 order by bcs") | ||
| 41 | + List<ScheduleRealInfo> exportWaybill(String jName,String clZbh,String lpName); | ||
| 42 | + | ||
| 43 | + //把sum(addMileage) 替换为0 数据表去掉了 add_mileage 字段 | ||
| 44 | + @Query(value="select new map(clZbh as clZbh,jGh as jGh,jName as jName,sum(jhlc) as zgl," | ||
| 45 | + + "0 as ksgl,count(jName) as bcs) from ScheduleRealInfo s where" | ||
| 46 | + + " s.xlBm = ?1 and s.scheduleDateStr = ?2 group by clZbh,jGh,jName") | ||
| 47 | + List<Map<String, Object>> dailyInfo(String line,String date); | ||
| 48 | + | ||
| 49 | + @Query(value="select d.device_id,d.sender,d.txt_content,d.timestamp,d.line_code from " | ||
| 50 | + + " bsth_v_directive_60 d where d.line_code=?1 and d.timestamp >=?2 and " | ||
| 51 | + + "d.timestamp <=?3 and d.device_id like %?4% ",nativeQuery=true) | ||
| 52 | + List<Object[]> historyMessage(String line,long d,long t,String code); | ||
| 53 | + | ||
| 54 | + @Query(value="SELECT r.xl_name,r.lp_name,r.cl_zbh,count(*) as cs " | ||
| 55 | + + " FROM bsth_c_s_sp_info_real r RIGHT JOIN bsth_v_directive_60 d " | ||
| 56 | + + " ON r.id = d.sch WHERE d.is_dispatch = 1 AND r.xl_bm like %?1% AND " | ||
| 57 | + + " r.schedule_date_str = ?2 and r.cl_zbh like %?3% group by " | ||
| 58 | + + " lp_name,xl_name,cl_zbh",nativeQuery=true) | ||
| 59 | + List<Object[]> historyMessageCount(String line,String date,String code); | ||
| 60 | + | ||
| 61 | + @Query(value="SELECT r.xl_name,r.cl_zbh,d.sender,d.timestamp,d.txt_content " | ||
| 62 | + + " FROM bsth_c_s_sp_info_real r RIGHT JOIN bsth_v_directive_60 d " | ||
| 63 | + + " ON r.id = d.sch WHERE d.is_dispatch = 1 AND r.xl_bm like %?1% AND " | ||
| 64 | + + " r.schedule_date_str = ?2 and r.cl_zbh =?3 ",nativeQuery=true) | ||
| 65 | + List<Object[]> historyMessageList(String line,String date,String code); | ||
| 66 | + | ||
| 67 | + @Query(value = "select max(id) from ScheduleRealInfo") | ||
| 68 | + Long getMaxId(); | ||
| 69 | + | ||
| 70 | + @Query(value = "select count(*) from ScheduleRealInfo s where s.scheduleDateStr = ?1") | ||
| 71 | + int countByDate(String date); | ||
| 72 | + | ||
| 73 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 74 | + @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.scheduleDateStr = ?1") | ||
| 75 | + List<ScheduleRealInfo> findByDate(String dateStr); | ||
| 76 | + | ||
| 77 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 78 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2 and cl_zbh=?3 order by bcs") | ||
| 79 | + List<ScheduleRealInfo> findByDate2(String line,String date,String clzbh); | ||
| 80 | + | ||
| 81 | + @Query(value="select count(jName) from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and s.status = -1") | ||
| 82 | + int findCjbc(String jName,String clZbh,String lpName); | ||
| 83 | + | ||
| 84 | + @Query(value="select count(jName) from ScheduleRealInfo s where s.jName = ?1 and s.clZbh = ?2 and s.lpName = ?3 and sflj != 0") | ||
| 85 | + int findLjbc(String jName,String clZbh,String lpName); | ||
| 86 | + | ||
| 87 | + @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) | ||
| 88 | + List<Object[]> account(String line,String date,String code); | ||
| 89 | + | ||
| 90 | + @Query(value="select s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 " | ||
| 91 | + + " and s.scheduleDateStr <= ?3 and s.lpName like %?4% " | ||
| 92 | + + " and clZbh like %?5% order by s.fcsj") | ||
| 93 | + List<ScheduleRealInfo> correctForm(String line,String startDate,String endDate,String lpName,String code); | ||
| 94 | + | ||
| 95 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 96 | + @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") | ||
| 97 | + List<ScheduleRealInfo> queryListWaybill(String jName,String clZbh,String lpName,String date,String line); | ||
| 98 | + | ||
| 99 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 100 | + @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") | ||
| 101 | + List<ScheduleRealInfo> queryListWaybillXcld(String jGh,String clZbh,String lpName,String date,String line); | ||
| 102 | + | ||
| 103 | +// @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 104 | +// @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,fcsj") | ||
| 105 | +// List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); | ||
| 106 | + | ||
| 107 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 108 | + @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.realExecDate,s.fcsj") | ||
| 109 | + List<ScheduleRealInfo> scheduleByDateAndLineTjrb(String line,String date); | ||
| 110 | + | ||
| 111 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 112 | + @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") | ||
| 113 | + List<ScheduleRealInfo> scheduleByDateAndLineInOut(String line,String date,String zd); | ||
| 114 | + | ||
| 115 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 116 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.clZbh = ?1 and s.scheduleDateStr = ?2 and xlBm =?3 order by realExecDate,fcsj") | ||
| 117 | + List<ScheduleRealInfo> queryListWaybill2(String clZbh,String date,String line); | ||
| 118 | + | ||
| 119 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 120 | + @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") | ||
| 121 | + List<ScheduleRealInfo> queryListWaybill3(String jName,String clZbh,String date,String gsbm,String fgsbm); | ||
| 122 | + | ||
| 123 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 124 | + @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") | ||
| 125 | + List<ScheduleRealInfo> queryListWaybill4(String jName,String clZbh,String date,String enddate); | ||
| 126 | + | ||
| 127 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 128 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr = ?2") | ||
| 129 | + List<ScheduleRealInfo> scheduleDaily(String line,String date); | ||
| 130 | + | ||
| 131 | + @Query(value = "select count(*) from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") | ||
| 132 | + int countByLineCodeAndDate(String xlBm, String schDate); | ||
| 133 | + | ||
| 134 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 135 | + @Query(value = "select DISTINCT s from ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2 and ccService=false") | ||
| 136 | + List<ScheduleRealInfo> findByLineCodeAndDate(String xlBm, String schDate); | ||
| 137 | + | ||
| 138 | + @Modifying | ||
| 139 | + @Transactional | ||
| 140 | + @Query(value = "delete ScheduleRealInfo s where s.xlBm=?1 and s.scheduleDateStr=?2") | ||
| 141 | + void deleteByLineCodeAndDate(String xlBm, String schDate); | ||
| 142 | + | ||
| 143 | + //去掉了 xlBm is not null | ||
| 144 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 145 | + @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") | ||
| 146 | + List<ScheduleRealInfo> scheduleByDateAndLine(String line,String date); | ||
| 147 | + | ||
| 148 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 149 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 order by s.lpName, s.realExecDate,s.fcsj") | ||
| 150 | + List<ScheduleRealInfo> scheduleByDateAndLineQp(String line,String date); | ||
| 151 | + | ||
| 152 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 153 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm =?1 and s.scheduleDateStr = ?2 and s.ccService=false order by s.lpName, s.realExecDate,s.fcsj") | ||
| 154 | + List<ScheduleRealInfo> scheduleDdrb(String line,String date); | ||
| 155 | + | ||
| 156 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 157 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr= ?2 and s.ccService=false order by s.xlDir,s.realExecDate,s.fcsj, s.lpName") | ||
| 158 | + List<ScheduleRealInfo> scheduleDdrb2(String line,String date); | ||
| 159 | + | ||
| 160 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 161 | + @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") | ||
| 162 | + List<ScheduleRealInfo> scheduleByDateAndLineByGs_(String gsdm,String fgsdm,String date); | ||
| 163 | + | ||
| 164 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 165 | + @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") | ||
| 166 | + List<ScheduleRealInfo> scheduleByDateAndLineByGs(String gsdm,String fgsdm,String date); | ||
| 167 | + | ||
| 168 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 169 | + @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") | ||
| 170 | + List<ScheduleRealInfo> scheduleByDateAndLineQp2(String line,String date); | ||
| 171 | + | ||
| 172 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 173 | + @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.realExecDate,s.fcsj") | ||
| 174 | + List<ScheduleRealInfo> scheduleByDateAndLine2(String line,String date); | ||
| 175 | + | ||
| 176 | + //按月统计 | ||
| 177 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 178 | + @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") | ||
| 179 | + List<ScheduleRealInfo> scheduleByDateAndLine3(String line,String date); | ||
| 180 | + | ||
| 181 | + //按照时间段统计 | ||
| 182 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 183 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm like %?1% and s.scheduleDateStr between ?2 and ?3 and gsBm = ?4 and fgsBm like %?5% order by s.fgsBm, s.xlBm") | ||
| 184 | + List<ScheduleRealInfo> scheduleByDateAndLineTj(String line,String date,String date2,String gsdm,String fgsdm); | ||
| 185 | + | ||
| 186 | + //按照时间段统计 | ||
| 187 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 188 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.fgsBm,s.xlBm") | ||
| 189 | + List<ScheduleRealInfo> scheduleByDateAndLineTj2(String line,String date,String date2); | ||
| 190 | + //月报表 | ||
| 191 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 192 | + @Query(value="select DISTINCT s from ScheduleRealInfo s where s.xlBm = ?1 and s.scheduleDateStr >= ?2 and s.scheduleDateStr<= ?3 order by s.xlBm") | ||
| 193 | + List<ScheduleRealInfo> scheduleByDateAndLineYbb(String line,String date,String date2); | ||
| 194 | + | ||
| 195 | + | ||
| 196 | + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(CONCAT(s.realExecDate,' ',s.fcsj)) AS realExecDate ) 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,lpName ORDER BY clZbh,realExecDate") | ||
| 197 | + List<Map<String,Object>> yesterdayDataList(String line,String date,String gsbm,String fgsbm,String nbbm); | ||
| 198 | + | ||
| 199 | + @Query(value="select new map(s.scheduleDate as scheduleDate,s.xlBm as xlBm,s.clZbh as clZbh,s.jGh as jGh,s.lpName as lpName,min(CONCAT(s.realExecDate,' ',s.fcsj)) AS realExecDate ) 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,lpName ORDER BY clZbh,realExecDate") | ||
| 200 | + List<Map<String,Object>> yesterdayDataList_eq(String line,String date,String gsbm,String fgsbm,String nbbm); | ||
| 201 | + | ||
| 202 | + @Query(value="select s from ScheduleRealInfo s where s.scheduleDateStr = ?1 ORDER BY xlBm,lpName,clZbh,xlDir") | ||
| 203 | + List<ScheduleRealInfo> setLD(String date); | ||
| 204 | + | ||
| 205 | + @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") | ||
| 206 | + List<Map<String,Object>> setLDGroup(String date); | ||
| 207 | + | ||
| 208 | + @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") | ||
| 209 | + List<Map<String,Object>> setLCYHGroup(String date); | ||
| 210 | + | ||
| 211 | + @Query(value="select new map(xlBm as xlBm) from ScheduleRealInfo s where s.scheduleDateStr = ?1 GROUP BY xlBm ORDER BY xlBm") | ||
| 212 | + List<Map<String,Object>> setDDRBGroup(String date); | ||
| 213 | + | ||
| 214 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 215 | + @Override | ||
| 216 | + Page<ScheduleRealInfo> findAll(Specification<ScheduleRealInfo> spec, Pageable pageable); | ||
| 217 | + | ||
| 218 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 219 | + @Override | ||
| 220 | + List<ScheduleRealInfo> findAll(Specification<ScheduleRealInfo> spec); | ||
| 221 | + | ||
| 222 | + @EntityGraph(value = "scheduleRealInfo_cTasks", type = EntityGraph.EntityGraphType.FETCH) | ||
| 223 | + @Override | ||
| 224 | + List<ScheduleRealInfo> findAll(); | ||
| 225 | + | ||
| 226 | + @Modifying | ||
| 227 | + @Transactional | ||
| 228 | + @Query(value = "update ScheduleRealInfo s set s.lpChange=1 where s.id=?1 ") | ||
| 229 | + Integer updateLpChange(Long id); | ||
| 230 | + | ||
| 231 | + @Query(value = "select count (s.id) from ScheduleRealInfo s where s.clZbh=?1 and s.scheduleDateStr=?2 and s.xlBm=?3 and s.qdzCode=?4") | ||
| 232 | + Long isCircleQdz(String clzbh,String sdr,String xlbm,String qdzCode); | ||
| 233 | + | ||
| 234 | +} |