Commit 5254a581e32baca5f32fe2eb5afbfa4fc2cdacc6
1 parent
2a1db592
优化
Showing
9 changed files
with
39 additions
and
33 deletions
trash-admin/src/main/java/com/trash/Application.java
| ... | ... | @@ -3,10 +3,6 @@ package com.trash; |
| 3 | 3 | import org.springframework.boot.SpringApplication; |
| 4 | 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 5 | 5 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| 6 | -import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer; | |
| 7 | -import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | |
| 8 | -import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory; | |
| 9 | -import org.springframework.context.annotation.Bean; | |
| 10 | 6 | import org.springframework.scheduling.annotation.EnableScheduling; |
| 11 | 7 | |
| 12 | 8 | /** |
| ... | ... | @@ -20,15 +16,8 @@ public class Application |
| 20 | 16 | { |
| 21 | 17 | public static void main(String[] args) |
| 22 | 18 | { |
| 23 | - System.setProperty("spring.devtools.restart.enabled", "true"); | |
| 19 | + // System.setProperty("spring.devtools.restart.enabled", "false"); | |
| 24 | 20 | SpringApplication.run(Application.class, args); |
| 25 | 21 | System.out.println("Application start success"); |
| 26 | 22 | } |
| 27 | - | |
| 28 | - @Bean | |
| 29 | - public ConfigurableServletWebServerFactory webServerFactory() { | |
| 30 | - TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(); | |
| 31 | - factory.addConnectorCustomizers((TomcatConnectorCustomizer) connector -> connector.setProperty("relaxedQueryChars", "|{}[]\\")); | |
| 32 | - return factory; | |
| 33 | - } | |
| 34 | 23 | } | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/controller/GarbageOrderController.java
| ... | ... | @@ -94,7 +94,7 @@ public class GarbageOrderController { |
| 94 | 94 | // 上传并返回新文件名称 |
| 95 | 95 | fileName = FileUploadUtils.upload(filePath, file); |
| 96 | 96 | } catch (IOException e) { |
| 97 | -// log.error("上传图片异常",e); | |
| 97 | + log.error("上传图片异常",e); | |
| 98 | 98 | throw new BizException(ResultCode.CODE_400, ResultCode.CODE_400.getMsg()); |
| 99 | 99 | } |
| 100 | 100 | String url = serverConfig.getUrl() + fileName; | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarOrder.java
| ... | ... | @@ -169,6 +169,8 @@ public class GarOrder implements Serializable { |
| 169 | 169 | |
| 170 | 170 | private Integer garTimeOutFlag; |
| 171 | 171 | |
| 172 | + private String garEstimatedCost; | |
| 173 | + | |
| 172 | 174 | /** |
| 173 | 175 | * 是否有用户的评价,默认值是0,默认没有 |
| 174 | 176 | * |
| ... | ... | @@ -471,4 +473,12 @@ public class GarOrder implements Serializable { |
| 471 | 473 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { |
| 472 | 474 | this.haveEvaluateOfClient = haveEvaluateOfClient; |
| 473 | 475 | } |
| 476 | + | |
| 477 | + public String getGarEstimatedCost() { | |
| 478 | + return garEstimatedCost; | |
| 479 | + } | |
| 480 | + | |
| 481 | + public void setGarEstimatedCost(String garEstimatedCost) { | |
| 482 | + this.garEstimatedCost = garEstimatedCost; | |
| 483 | + } | |
| 474 | 484 | } |
| 475 | 485 | \ No newline at end of file | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarOrderCar.java
| ... | ... | @@ -55,23 +55,7 @@ public class GarOrderCar implements Serializable { |
| 55 | 55 | @TableField(fill = FieldFill.INSERT) |
| 56 | 56 | private String garCreateBy; |
| 57 | 57 | |
| 58 | - public Integer getCarId() { | |
| 59 | - return carId; | |
| 60 | - } | |
| 61 | - | |
| 62 | - public void setCarId(Integer carId) { | |
| 63 | - this.carId = carId; | |
| 64 | - } | |
| 65 | - | |
| 66 | - public String getContainerVolume() { | |
| 67 | - return containerVolume; | |
| 68 | - } | |
| 69 | - | |
| 70 | - public void setContainerVolume(String containerVolume) { | |
| 71 | - this.containerVolume = containerVolume; | |
| 72 | - } | |
| 73 | - | |
| 74 | - /** | |
| 58 | + /** | |
| 75 | 59 | * |
| 76 | 60 | */ |
| 77 | 61 | @TableField(fill = FieldFill.INSERT_UPDATE) | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/pojo/dto/OrderDto.java
| ... | ... | @@ -91,6 +91,8 @@ public class OrderDto { |
| 91 | 91 | |
| 92 | 92 | private List<CarInfo> garCarInfoList; |
| 93 | 93 | |
| 94 | + private String garEstimatedCost; | |
| 95 | + | |
| 94 | 96 | @ToString |
| 95 | 97 | @EqualsAndHashCode |
| 96 | 98 | public static class CarInfo { |
| ... | ... | @@ -107,8 +109,6 @@ public class OrderDto { |
| 107 | 109 | private String garOrderCarType; |
| 108 | 110 | |
| 109 | 111 | private String containerVolume; |
| 110 | - | |
| 111 | - | |
| 112 | 112 | |
| 113 | 113 | public Integer getGarOrderCarNumber() { |
| 114 | 114 | return garOrderCarNumber; |
| ... | ... | @@ -281,6 +281,14 @@ public class OrderDto { |
| 281 | 281 | this.garInCarStore = garInCarStore; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | + public String getGarEstimatedCost() { | |
| 285 | + return garEstimatedCost; | |
| 286 | + } | |
| 287 | + | |
| 288 | + public void setGarEstimatedCost(String garEstimatedCost) { | |
| 289 | + this.garEstimatedCost = garEstimatedCost; | |
| 290 | + } | |
| 291 | + | |
| 284 | 292 | @Override |
| 285 | 293 | public String toString() { |
| 286 | 294 | return "OrderDto{" + | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/pojo/vo/OrderDetailVo.java
| ... | ... | @@ -159,6 +159,8 @@ public class OrderDetailVo { |
| 159 | 159 | */ |
| 160 | 160 | private Integer haveEvaluateOfClient = 0; |
| 161 | 161 | |
| 162 | + private String garEstimatedCost; | |
| 163 | + | |
| 162 | 164 | public OrderDetailVo() { |
| 163 | 165 | this.currentImages = new ArrayList<>(); |
| 164 | 166 | this.putDownImages = new ArrayList<>(); |
| ... | ... | @@ -441,4 +443,12 @@ public class OrderDetailVo { |
| 441 | 443 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { |
| 442 | 444 | this.haveEvaluateOfClient = haveEvaluateOfClient; |
| 443 | 445 | } |
| 446 | + | |
| 447 | + public String getGarEstimatedCost() { | |
| 448 | + return garEstimatedCost; | |
| 449 | + } | |
| 450 | + | |
| 451 | + public void setGarEstimatedCost(String garEstimatedCost) { | |
| 452 | + this.garEstimatedCost = garEstimatedCost; | |
| 453 | + } | |
| 444 | 454 | } | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/service/impl/GarOrderServiceImpl.java
| ... | ... | @@ -96,6 +96,8 @@ public class GarOrderServiceImpl extends ServiceImpl<GarOrderMapper, GarOrder> |
| 96 | 96 | // 预估车辆等于用户选择得车辆 |
| 97 | 97 | order.setGarRealCarCount(dto.getGarCarInfoList().stream().mapToInt(OrderDto.CarInfo::getGarOrderCarNumber).sum()); |
| 98 | 98 | order.setGarTimeOutFlag(GlobalStatus.GarOrderStatus.ORDER_TIME_OUT_FLAG_NO.getValue()); |
| 99 | + order.setGarEstimatedCost(dto.getGarEstimatedCost()); | |
| 100 | + | |
| 99 | 101 | save(order); |
| 100 | 102 | |
| 101 | 103 | // 保存车辆信息 | ... | ... |
trash-unit/src/main/java/com/trash/carInfo/controller/CarInfoController.java
| ... | ... | @@ -47,10 +47,13 @@ public class CarInfoController extends BaseController |
| 47 | 47 | list = list.stream().map(car->{ |
| 48 | 48 | if(Objects.equals(car.getCarType(),"轻型货车")){ |
| 49 | 49 | car.setCarLeft("car_1.png"); |
| 50 | + car.setRemark("箱体长2.6m,宽1.7m,高1.5m;最多可容纳约90袋装修垃圾(75cm*5cm每袋)"); | |
| 50 | 51 | }else if(Objects.equals(car.getCarType(),"中型货车")){ |
| 51 | 52 | car.setCarLeft("car_2.png"); |
| 53 | + car.setRemark("箱体长3.2m,宽1.5m,高1.5m;最多可容纳约110袋装修垃圾(75cm*45cm每袋)"); | |
| 52 | 54 | }else if(Objects.equals(car.getCarType(),"大中型货车")){ |
| 53 | 55 | car.setCarLeft("car_3.png"); |
| 56 | + car.setRemark("箱体长3.2m,宽1.9m,高1.9m;最多可容纳约150袋装修垃圾(75cm*45cm每袋)"); | |
| 54 | 57 | } |
| 55 | 58 | return car; |
| 56 | 59 | }).collect(Collectors.toList()); | ... | ... |
trash-unit/src/main/java/com/trash/enterprise/domain/TransportationEnterprise.java
| ... | ... | @@ -117,7 +117,7 @@ public class TransportationEnterprise extends BaseEntity |
| 117 | 117 | private Long parentId; |
| 118 | 118 | |
| 119 | 119 | /** 公司类型(0经营单位,1运输公司) */ |
| 120 | -// @Excel(name = "公司类型", readConverterExp = "0=投放点信息,1运输公司") | |
| 120 | + @Excel(name = "公司类型", readConverterExp = "0=经营单位,1运输公司") | |
| 121 | 121 | private Integer companyType; |
| 122 | 122 | |
| 123 | 123 | /** 信用状态 */ | ... | ... |