Commit 2e6309e4287a0587a0b59bfb419f64b42dcd0c43

Authored by liujun001
1 parent 07e2cf74

车辆信息展示修改

trash-admin/src/main/resources/static/car_1.png 0 → 100644

51.5 KB

trash-admin/src/main/resources/static/car_2.png 0 → 100644

74.2 KB

trash-admin/src/main/resources/static/car_3.png 0 → 100644

86.1 KB

trash-garbage/src/main/java/com/trash/garbage/pojo/dto/OrderDto.java
1 1 package com.trash.garbage.pojo.dto;
2 2  
3   -import lombok.Data;
4 3 import lombok.EqualsAndHashCode;
5 4 import lombok.ToString;
  5 +import org.apache.commons.lang3.StringUtils;
6 6  
7 7 import javax.validation.constraints.NotBlank;
8 8 import javax.validation.constraints.NotEmpty;
... ... @@ -102,6 +102,8 @@ public class OrderDto {
102 102 /**
103 103 * 车子类型
104 104 */
  105 + private String carType;
  106 + private Integer id;
105 107 private String garOrderCarType;
106 108  
107 109 public Integer getGarOrderCarNumber() {
... ... @@ -113,13 +115,34 @@ public class OrderDto {
113 115 }
114 116  
115 117 public String getGarOrderCarType() {
  118 + if(StringUtils.isEmpty(garOrderCarType)){
  119 + garOrderCarType = carType;
  120 + }
116 121 return garOrderCarType;
117 122 }
118 123  
119 124 public void setGarOrderCarType(String garOrderCarType) {
120   - this.garOrderCarType = garOrderCarType;
  125 + this.garOrderCarType = garOrderCarType;
121 126 }
122 127  
  128 + public String getCarType() {
  129 + return carType;
  130 + }
  131 +
  132 + public void setCarType(String carType) {
  133 + this.carType = carType;
  134 + }
  135 +
  136 + public Integer getId() {
  137 + return id;
  138 + }
  139 +
  140 + public void setId(Integer id) {
  141 + this.id = id;
  142 + }
  143 +
  144 +
  145 +
123 146 }
124 147  
125 148 public List<CarInfo> getGarCarInfoList() {
... ...