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 package com.trash.garbage.pojo.dto; 1 package com.trash.garbage.pojo.dto;
2 2
3 -import lombok.Data;  
4 import lombok.EqualsAndHashCode; 3 import lombok.EqualsAndHashCode;
5 import lombok.ToString; 4 import lombok.ToString;
  5 +import org.apache.commons.lang3.StringUtils;
6 6
7 import javax.validation.constraints.NotBlank; 7 import javax.validation.constraints.NotBlank;
8 import javax.validation.constraints.NotEmpty; 8 import javax.validation.constraints.NotEmpty;
@@ -102,6 +102,8 @@ public class OrderDto { @@ -102,6 +102,8 @@ public class OrderDto {
102 /** 102 /**
103 * 车子类型 103 * 车子类型
104 */ 104 */
  105 + private String carType;
  106 + private Integer id;
105 private String garOrderCarType; 107 private String garOrderCarType;
106 108
107 public Integer getGarOrderCarNumber() { 109 public Integer getGarOrderCarNumber() {
@@ -113,13 +115,34 @@ public class OrderDto { @@ -113,13 +115,34 @@ public class OrderDto {
113 } 115 }
114 116
115 public String getGarOrderCarType() { 117 public String getGarOrderCarType() {
  118 + if(StringUtils.isEmpty(garOrderCarType)){
  119 + garOrderCarType = carType;
  120 + }
116 return garOrderCarType; 121 return garOrderCarType;
117 } 122 }
118 123
119 public void setGarOrderCarType(String garOrderCarType) { 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 public List<CarInfo> getGarCarInfoList() { 148 public List<CarInfo> getGarCarInfoList() {