Commit 79af7dd7f982117a63ef396431d07bebd0c0f7fa
1 parent
9d4a81a2
update...
Showing
2 changed files
with
24 additions
and
208 deletions
src/main/java/com/bsth/server_rs/base_info/car/Car.java
| @@ -38,10 +38,6 @@ public class Car implements Serializable { | @@ -38,10 +38,6 @@ public class Car implements Serializable { | ||
| 38 | */ | 38 | */ |
| 39 | private String carPlate; | 39 | private String carPlate; |
| 40 | /** | 40 | /** |
| 41 | - * 供应商名称 | ||
| 42 | - */ | ||
| 43 | - private String supplierName; | ||
| 44 | - /** | ||
| 45 | * 设备终端号 | 41 | * 设备终端号 |
| 46 | */ | 42 | */ |
| 47 | private String equipmentCode; | 43 | private String equipmentCode; |
| @@ -63,14 +59,7 @@ public class Car implements Serializable { | @@ -63,14 +59,7 @@ public class Car implements Serializable { | ||
| 63 | * 载客标准 | 59 | * 载客标准 |
| 64 | */ | 60 | */ |
| 65 | private String carStandard; | 61 | private String carStandard; |
| 66 | - /** | ||
| 67 | - * 标准油耗(开空调) | ||
| 68 | - */ | ||
| 69 | - private Double kburnStandard; | ||
| 70 | - /** | ||
| 71 | - * 标准油耗(关空调) | ||
| 72 | - */ | ||
| 73 | - private Double gburnStandard; | 62 | + |
| 74 | /** | 63 | /** |
| 75 | * 报废号 | 64 | * 报废号 |
| 76 | */ | 65 | */ |
| @@ -79,38 +68,12 @@ public class Car implements Serializable { | @@ -79,38 +68,12 @@ public class Car implements Serializable { | ||
| 79 | * 报废日期 | 68 | * 报废日期 |
| 80 | */ | 69 | */ |
| 81 | private Date scrapDate; | 70 | private Date scrapDate; |
| 82 | - /** | ||
| 83 | - * 厂牌型号1 | ||
| 84 | - */ | ||
| 85 | - private String makeCodeOne; | ||
| 86 | - /** | ||
| 87 | - * 厂牌型号2 | ||
| 88 | - */ | ||
| 89 | - private String makeCodeTwo; | 71 | + |
| 90 | /** | 72 | /** |
| 91 | * 车辆等级标准 | 73 | * 车辆等级标准 |
| 92 | */ | 74 | */ |
| 93 | private String carGride; | 75 | private String carGride; |
| 94 | - /** | ||
| 95 | - * 出厂排放标准 | ||
| 96 | - */ | ||
| 97 | - private String emissionsStandard; | ||
| 98 | - /** | ||
| 99 | - * 发动机号码1 | ||
| 100 | - */ | ||
| 101 | - private String engineCodeOne; | ||
| 102 | - /** | ||
| 103 | - * 发动机号码2 | ||
| 104 | - */ | ||
| 105 | - private String engineCodeTwo; | ||
| 106 | - /** | ||
| 107 | - * 车架号码1 | ||
| 108 | - */ | ||
| 109 | - private String carNumberOne; | ||
| 110 | - /** | ||
| 111 | - * 车架号码2 | ||
| 112 | - */ | ||
| 113 | - private String carNumberTwo; | 76 | + |
| 114 | /** | 77 | /** |
| 115 | * 启用日期 | 78 | * 启用日期 |
| 116 | */ | 79 | */ |
| @@ -121,23 +84,6 @@ public class Car implements Serializable { | @@ -121,23 +84,6 @@ public class Car implements Serializable { | ||
| 121 | private Date closeDate; | 84 | private Date closeDate; |
| 122 | 85 | ||
| 123 | /** | 86 | /** |
| 124 | - * 是否空调车 | ||
| 125 | - */ | ||
| 126 | - private Boolean hvacCar; | ||
| 127 | - /** | ||
| 128 | - * 有无人售票 | ||
| 129 | - */ | ||
| 130 | - private Boolean ticketType; | ||
| 131 | - /** | ||
| 132 | - * 是否有LED服务屏 | ||
| 133 | - */ | ||
| 134 | - private Boolean ledScreen; | ||
| 135 | - /** | ||
| 136 | - * 是否有TV视频 | ||
| 137 | - */ | ||
| 138 | - private Boolean tvVideoType; | ||
| 139 | - | ||
| 140 | - /** | ||
| 141 | * 车辆类型 | 87 | * 车辆类型 |
| 142 | */ | 88 | */ |
| 143 | private String carType; | 89 | private String carType; |
| @@ -145,10 +91,7 @@ public class Car implements Serializable { | @@ -145,10 +91,7 @@ public class Car implements Serializable { | ||
| 145 | * 是否机动车(机动车类型选择) | 91 | * 是否机动车(机动车类型选择) |
| 146 | */ | 92 | */ |
| 147 | private String vehicleStats; | 93 | private String vehicleStats; |
| 148 | - /** | ||
| 149 | - * 营运状态 | ||
| 150 | - */ | ||
| 151 | - private String operatorsState; | 94 | + |
| 152 | /** | 95 | /** |
| 153 | * 营运证编码 | 96 | * 营运证编码 |
| 154 | */ | 97 | */ |
| @@ -157,10 +100,6 @@ public class Car implements Serializable { | @@ -157,10 +100,6 @@ public class Car implements Serializable { | ||
| 157 | * 是否电车(TODO:在原系统里没有,这里暂时留着) | 100 | * 是否电车(TODO:在原系统里没有,这里暂时留着) |
| 158 | */ | 101 | */ |
| 159 | private Boolean sfdc; | 102 | private Boolean sfdc; |
| 160 | - /** | ||
| 161 | - * 备注/描述 | ||
| 162 | - */ | ||
| 163 | - private String descriptions; | ||
| 164 | 103 | ||
| 165 | /** | 104 | /** |
| 166 | * 视频编号 | 105 | * 视频编号 |
| @@ -172,14 +111,14 @@ public class Car implements Serializable { | @@ -172,14 +111,14 @@ public class Car implements Serializable { | ||
| 172 | private Boolean scrapState; | 111 | private Boolean scrapState; |
| 173 | 112 | ||
| 174 | /** | 113 | /** |
| 175 | - * RFID 车卡号 | 114 | + * RFID 车卡ID号(16进制) |
| 176 | */ | 115 | */ |
| 177 | - private String icRFID; | 116 | + private String idRfid; |
| 178 | 117 | ||
| 179 | /** | 118 | /** |
| 180 | * RFID 标签号 | 119 | * RFID 标签号 |
| 181 | */ | 120 | */ |
| 182 | - private String tagRFID; | 121 | + private String tagRfid; |
| 183 | 122 | ||
| 184 | public Integer getId() { | 123 | public Integer getId() { |
| 185 | return id; | 124 | return id; |
| @@ -221,14 +160,6 @@ public class Car implements Serializable { | @@ -221,14 +160,6 @@ public class Car implements Serializable { | ||
| 221 | this.carPlate = carPlate; | 160 | this.carPlate = carPlate; |
| 222 | } | 161 | } |
| 223 | 162 | ||
| 224 | - public String getSupplierName() { | ||
| 225 | - return supplierName; | ||
| 226 | - } | ||
| 227 | - | ||
| 228 | - public void setSupplierName(String supplierName) { | ||
| 229 | - this.supplierName = supplierName; | ||
| 230 | - } | ||
| 231 | - | ||
| 232 | public String getEquipmentCode() { | 163 | public String getEquipmentCode() { |
| 233 | return equipmentCode; | 164 | return equipmentCode; |
| 234 | } | 165 | } |
| @@ -269,22 +200,6 @@ public class Car implements Serializable { | @@ -269,22 +200,6 @@ public class Car implements Serializable { | ||
| 269 | this.carStandard = carStandard; | 200 | this.carStandard = carStandard; |
| 270 | } | 201 | } |
| 271 | 202 | ||
| 272 | - public Double getKburnStandard() { | ||
| 273 | - return kburnStandard; | ||
| 274 | - } | ||
| 275 | - | ||
| 276 | - public void setKburnStandard(Double kburnStandard) { | ||
| 277 | - this.kburnStandard = kburnStandard; | ||
| 278 | - } | ||
| 279 | - | ||
| 280 | - public Double getGburnStandard() { | ||
| 281 | - return gburnStandard; | ||
| 282 | - } | ||
| 283 | - | ||
| 284 | - public void setGburnStandard(Double gburnStandard) { | ||
| 285 | - this.gburnStandard = gburnStandard; | ||
| 286 | - } | ||
| 287 | - | ||
| 288 | public String getScrapCode() { | 203 | public String getScrapCode() { |
| 289 | return scrapCode; | 204 | return scrapCode; |
| 290 | } | 205 | } |
| @@ -302,22 +217,6 @@ public class Car implements Serializable { | @@ -302,22 +217,6 @@ public class Car implements Serializable { | ||
| 302 | this.scrapDate = scrapDate; | 217 | this.scrapDate = scrapDate; |
| 303 | } | 218 | } |
| 304 | 219 | ||
| 305 | - public String getMakeCodeOne() { | ||
| 306 | - return makeCodeOne; | ||
| 307 | - } | ||
| 308 | - | ||
| 309 | - public void setMakeCodeOne(String makeCodeOne) { | ||
| 310 | - this.makeCodeOne = makeCodeOne; | ||
| 311 | - } | ||
| 312 | - | ||
| 313 | - public String getMakeCodeTwo() { | ||
| 314 | - return makeCodeTwo; | ||
| 315 | - } | ||
| 316 | - | ||
| 317 | - public void setMakeCodeTwo(String makeCodeTwo) { | ||
| 318 | - this.makeCodeTwo = makeCodeTwo; | ||
| 319 | - } | ||
| 320 | - | ||
| 321 | public String getCarGride() { | 220 | public String getCarGride() { |
| 322 | return carGride; | 221 | return carGride; |
| 323 | } | 222 | } |
| @@ -326,46 +225,6 @@ public class Car implements Serializable { | @@ -326,46 +225,6 @@ public class Car implements Serializable { | ||
| 326 | this.carGride = carGride; | 225 | this.carGride = carGride; |
| 327 | } | 226 | } |
| 328 | 227 | ||
| 329 | - public String getEmissionsStandard() { | ||
| 330 | - return emissionsStandard; | ||
| 331 | - } | ||
| 332 | - | ||
| 333 | - public void setEmissionsStandard(String emissionsStandard) { | ||
| 334 | - this.emissionsStandard = emissionsStandard; | ||
| 335 | - } | ||
| 336 | - | ||
| 337 | - public String getEngineCodeOne() { | ||
| 338 | - return engineCodeOne; | ||
| 339 | - } | ||
| 340 | - | ||
| 341 | - public void setEngineCodeOne(String engineCodeOne) { | ||
| 342 | - this.engineCodeOne = engineCodeOne; | ||
| 343 | - } | ||
| 344 | - | ||
| 345 | - public String getEngineCodeTwo() { | ||
| 346 | - return engineCodeTwo; | ||
| 347 | - } | ||
| 348 | - | ||
| 349 | - public void setEngineCodeTwo(String engineCodeTwo) { | ||
| 350 | - this.engineCodeTwo = engineCodeTwo; | ||
| 351 | - } | ||
| 352 | - | ||
| 353 | - public String getCarNumberOne() { | ||
| 354 | - return carNumberOne; | ||
| 355 | - } | ||
| 356 | - | ||
| 357 | - public void setCarNumberOne(String carNumberOne) { | ||
| 358 | - this.carNumberOne = carNumberOne; | ||
| 359 | - } | ||
| 360 | - | ||
| 361 | - public String getCarNumberTwo() { | ||
| 362 | - return carNumberTwo; | ||
| 363 | - } | ||
| 364 | - | ||
| 365 | - public void setCarNumberTwo(String carNumberTwo) { | ||
| 366 | - this.carNumberTwo = carNumberTwo; | ||
| 367 | - } | ||
| 368 | - | ||
| 369 | @XmlJavaTypeAdapter(DateAdapter_yMd.class) | 228 | @XmlJavaTypeAdapter(DateAdapter_yMd.class) |
| 370 | public Date getOpenDate() { | 229 | public Date getOpenDate() { |
| 371 | return openDate; | 230 | return openDate; |
| @@ -384,38 +243,6 @@ public class Car implements Serializable { | @@ -384,38 +243,6 @@ public class Car implements Serializable { | ||
| 384 | this.closeDate = closeDate; | 243 | this.closeDate = closeDate; |
| 385 | } | 244 | } |
| 386 | 245 | ||
| 387 | - public Boolean getHvacCar() { | ||
| 388 | - return hvacCar; | ||
| 389 | - } | ||
| 390 | - | ||
| 391 | - public void setHvacCar(Boolean hvacCar) { | ||
| 392 | - this.hvacCar = hvacCar; | ||
| 393 | - } | ||
| 394 | - | ||
| 395 | - public Boolean getTicketType() { | ||
| 396 | - return ticketType; | ||
| 397 | - } | ||
| 398 | - | ||
| 399 | - public void setTicketType(Boolean ticketType) { | ||
| 400 | - this.ticketType = ticketType; | ||
| 401 | - } | ||
| 402 | - | ||
| 403 | - public Boolean getLedScreen() { | ||
| 404 | - return ledScreen; | ||
| 405 | - } | ||
| 406 | - | ||
| 407 | - public void setLedScreen(Boolean ledScreen) { | ||
| 408 | - this.ledScreen = ledScreen; | ||
| 409 | - } | ||
| 410 | - | ||
| 411 | - public Boolean getTvVideoType() { | ||
| 412 | - return tvVideoType; | ||
| 413 | - } | ||
| 414 | - | ||
| 415 | - public void setTvVideoType(Boolean tvVideoType) { | ||
| 416 | - this.tvVideoType = tvVideoType; | ||
| 417 | - } | ||
| 418 | - | ||
| 419 | public String getCarType() { | 246 | public String getCarType() { |
| 420 | return carType; | 247 | return carType; |
| 421 | } | 248 | } |
| @@ -432,14 +259,6 @@ public class Car implements Serializable { | @@ -432,14 +259,6 @@ public class Car implements Serializable { | ||
| 432 | this.vehicleStats = vehicleStats; | 259 | this.vehicleStats = vehicleStats; |
| 433 | } | 260 | } |
| 434 | 261 | ||
| 435 | - public String getOperatorsState() { | ||
| 436 | - return operatorsState; | ||
| 437 | - } | ||
| 438 | - | ||
| 439 | - public void setOperatorsState(String operatorsState) { | ||
| 440 | - this.operatorsState = operatorsState; | ||
| 441 | - } | ||
| 442 | - | ||
| 443 | public String getServiceNo() { | 262 | public String getServiceNo() { |
| 444 | return serviceNo; | 263 | return serviceNo; |
| 445 | } | 264 | } |
| @@ -456,14 +275,6 @@ public class Car implements Serializable { | @@ -456,14 +275,6 @@ public class Car implements Serializable { | ||
| 456 | this.sfdc = sfdc; | 275 | this.sfdc = sfdc; |
| 457 | } | 276 | } |
| 458 | 277 | ||
| 459 | - public String getDescriptions() { | ||
| 460 | - return descriptions; | ||
| 461 | - } | ||
| 462 | - | ||
| 463 | - public void setDescriptions(String descriptions) { | ||
| 464 | - this.descriptions = descriptions; | ||
| 465 | - } | ||
| 466 | - | ||
| 467 | public String getVideoCode() { | 278 | public String getVideoCode() { |
| 468 | return videoCode; | 279 | return videoCode; |
| 469 | } | 280 | } |
| @@ -480,19 +291,19 @@ public class Car implements Serializable { | @@ -480,19 +291,19 @@ public class Car implements Serializable { | ||
| 480 | this.scrapState = scrapState; | 291 | this.scrapState = scrapState; |
| 481 | } | 292 | } |
| 482 | 293 | ||
| 483 | - public String getIcRFID() { | ||
| 484 | - return icRFID; | 294 | + public String getIdRfid() { |
| 295 | + return idRfid; | ||
| 485 | } | 296 | } |
| 486 | 297 | ||
| 487 | - public void setIcRFID(String icRFID) { | ||
| 488 | - this.icRFID = icRFID; | 298 | + public void setIdRfid(String idRfid) { |
| 299 | + this.idRfid = idRfid; | ||
| 489 | } | 300 | } |
| 490 | 301 | ||
| 491 | - public String getTagRFID() { | ||
| 492 | - return tagRFID; | 302 | + public String getTagRfid() { |
| 303 | + return tagRfid; | ||
| 493 | } | 304 | } |
| 494 | 305 | ||
| 495 | - public void setTagRFID(String tagRFID) { | ||
| 496 | - this.tagRFID = tagRFID; | 306 | + public void setTagRfid(String tagRfid) { |
| 307 | + this.tagRfid = tagRfid; | ||
| 497 | } | 308 | } |
| 498 | } | 309 | } |
src/main/java/com/bsth/server_rs/base_info/person/PersonRestService.java
| 1 | package com.bsth.server_rs.base_info.person; | 1 | package com.bsth.server_rs.base_info.person; |
| 2 | 2 | ||
| 3 | +import com.bsth.server_rs.base_info.dto.PersonCardDto; | ||
| 3 | import com.bsth.server_rs.base_info.person.buffer.PersonBufferData; | 4 | import com.bsth.server_rs.base_info.person.buffer.PersonBufferData; |
| 4 | 5 | ||
| 5 | -import javax.ws.rs.GET; | ||
| 6 | -import javax.ws.rs.Path; | ||
| 7 | -import javax.ws.rs.PathParam; | ||
| 8 | -import javax.ws.rs.Produces; | 6 | +import javax.ws.rs.*; |
| 9 | import javax.ws.rs.core.MediaType; | 7 | import javax.ws.rs.core.MediaType; |
| 10 | import java.util.List; | 8 | import java.util.List; |
| 9 | +import java.util.Map; | ||
| 11 | 10 | ||
| 12 | /** | 11 | /** |
| 13 | * Created by panzhao on 2017/3/28. | 12 | * Created by panzhao on 2017/3/28. |
| @@ -33,4 +32,10 @@ public class PersonRestService { | @@ -33,4 +32,10 @@ public class PersonRestService { | ||
| 33 | public Personnel findOne(@PathParam("workId") String workId) { | 32 | public Personnel findOne(@PathParam("workId") String workId) { |
| 34 | return PersonBufferData.findOne(workId); | 33 | return PersonBufferData.findOne(workId); |
| 35 | } | 34 | } |
| 35 | + | ||
| 36 | + @POST | ||
| 37 | + public Map<String, Object> multiPostCards(List<PersonCardDto> list){ | ||
| 38 | + System.out.println(list); | ||
| 39 | + return null; | ||
| 40 | + } | ||
| 36 | } | 41 | } |