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,10 +3,6 @@ package com.trash; | ||
| 3 | import org.springframework.boot.SpringApplication; | 3 | import org.springframework.boot.SpringApplication; |
| 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; | 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 5 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | 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 | import org.springframework.scheduling.annotation.EnableScheduling; | 6 | import org.springframework.scheduling.annotation.EnableScheduling; |
| 11 | 7 | ||
| 12 | /** | 8 | /** |
| @@ -20,15 +16,8 @@ public class Application | @@ -20,15 +16,8 @@ public class Application | ||
| 20 | { | 16 | { |
| 21 | public static void main(String[] args) | 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 | SpringApplication.run(Application.class, args); | 20 | SpringApplication.run(Application.class, args); |
| 25 | System.out.println("Application start success"); | 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,7 +94,7 @@ public class GarbageOrderController { | ||
| 94 | // 上传并返回新文件名称 | 94 | // 上传并返回新文件名称 |
| 95 | fileName = FileUploadUtils.upload(filePath, file); | 95 | fileName = FileUploadUtils.upload(filePath, file); |
| 96 | } catch (IOException e) { | 96 | } catch (IOException e) { |
| 97 | -// log.error("上传图片异常",e); | 97 | + log.error("上传图片异常",e); |
| 98 | throw new BizException(ResultCode.CODE_400, ResultCode.CODE_400.getMsg()); | 98 | throw new BizException(ResultCode.CODE_400, ResultCode.CODE_400.getMsg()); |
| 99 | } | 99 | } |
| 100 | String url = serverConfig.getUrl() + fileName; | 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,6 +169,8 @@ public class GarOrder implements Serializable { | ||
| 169 | 169 | ||
| 170 | private Integer garTimeOutFlag; | 170 | private Integer garTimeOutFlag; |
| 171 | 171 | ||
| 172 | + private String garEstimatedCost; | ||
| 173 | + | ||
| 172 | /** | 174 | /** |
| 173 | * 是否有用户的评价,默认值是0,默认没有 | 175 | * 是否有用户的评价,默认值是0,默认没有 |
| 174 | * | 176 | * |
| @@ -471,4 +473,12 @@ public class GarOrder implements Serializable { | @@ -471,4 +473,12 @@ public class GarOrder implements Serializable { | ||
| 471 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { | 473 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { |
| 472 | this.haveEvaluateOfClient = haveEvaluateOfClient; | 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 | \ No newline at end of file | 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,23 +55,7 @@ public class GarOrderCar implements Serializable { | ||
| 55 | @TableField(fill = FieldFill.INSERT) | 55 | @TableField(fill = FieldFill.INSERT) |
| 56 | private String garCreateBy; | 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 | @TableField(fill = FieldFill.INSERT_UPDATE) | 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,6 +91,8 @@ public class OrderDto { | ||
| 91 | 91 | ||
| 92 | private List<CarInfo> garCarInfoList; | 92 | private List<CarInfo> garCarInfoList; |
| 93 | 93 | ||
| 94 | + private String garEstimatedCost; | ||
| 95 | + | ||
| 94 | @ToString | 96 | @ToString |
| 95 | @EqualsAndHashCode | 97 | @EqualsAndHashCode |
| 96 | public static class CarInfo { | 98 | public static class CarInfo { |
| @@ -107,8 +109,6 @@ public class OrderDto { | @@ -107,8 +109,6 @@ public class OrderDto { | ||
| 107 | private String garOrderCarType; | 109 | private String garOrderCarType; |
| 108 | 110 | ||
| 109 | private String containerVolume; | 111 | private String containerVolume; |
| 110 | - | ||
| 111 | - | ||
| 112 | 112 | ||
| 113 | public Integer getGarOrderCarNumber() { | 113 | public Integer getGarOrderCarNumber() { |
| 114 | return garOrderCarNumber; | 114 | return garOrderCarNumber; |
| @@ -281,6 +281,14 @@ public class OrderDto { | @@ -281,6 +281,14 @@ public class OrderDto { | ||
| 281 | this.garInCarStore = garInCarStore; | 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 | @Override | 292 | @Override |
| 285 | public String toString() { | 293 | public String toString() { |
| 286 | return "OrderDto{" + | 294 | return "OrderDto{" + |
trash-garbage/src/main/java/com/trash/garbage/pojo/vo/OrderDetailVo.java
| @@ -159,6 +159,8 @@ public class OrderDetailVo { | @@ -159,6 +159,8 @@ public class OrderDetailVo { | ||
| 159 | */ | 159 | */ |
| 160 | private Integer haveEvaluateOfClient = 0; | 160 | private Integer haveEvaluateOfClient = 0; |
| 161 | 161 | ||
| 162 | + private String garEstimatedCost; | ||
| 163 | + | ||
| 162 | public OrderDetailVo() { | 164 | public OrderDetailVo() { |
| 163 | this.currentImages = new ArrayList<>(); | 165 | this.currentImages = new ArrayList<>(); |
| 164 | this.putDownImages = new ArrayList<>(); | 166 | this.putDownImages = new ArrayList<>(); |
| @@ -441,4 +443,12 @@ public class OrderDetailVo { | @@ -441,4 +443,12 @@ public class OrderDetailVo { | ||
| 441 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { | 443 | public void setHaveEvaluateOfClient(Integer haveEvaluateOfClient) { |
| 442 | this.haveEvaluateOfClient = haveEvaluateOfClient; | 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,6 +96,8 @@ public class GarOrderServiceImpl extends ServiceImpl<GarOrderMapper, GarOrder> | ||
| 96 | // 预估车辆等于用户选择得车辆 | 96 | // 预估车辆等于用户选择得车辆 |
| 97 | order.setGarRealCarCount(dto.getGarCarInfoList().stream().mapToInt(OrderDto.CarInfo::getGarOrderCarNumber).sum()); | 97 | order.setGarRealCarCount(dto.getGarCarInfoList().stream().mapToInt(OrderDto.CarInfo::getGarOrderCarNumber).sum()); |
| 98 | order.setGarTimeOutFlag(GlobalStatus.GarOrderStatus.ORDER_TIME_OUT_FLAG_NO.getValue()); | 98 | order.setGarTimeOutFlag(GlobalStatus.GarOrderStatus.ORDER_TIME_OUT_FLAG_NO.getValue()); |
| 99 | + order.setGarEstimatedCost(dto.getGarEstimatedCost()); | ||
| 100 | + | ||
| 99 | save(order); | 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,10 +47,13 @@ public class CarInfoController extends BaseController | ||
| 47 | list = list.stream().map(car->{ | 47 | list = list.stream().map(car->{ |
| 48 | if(Objects.equals(car.getCarType(),"轻型货车")){ | 48 | if(Objects.equals(car.getCarType(),"轻型货车")){ |
| 49 | car.setCarLeft("car_1.png"); | 49 | car.setCarLeft("car_1.png"); |
| 50 | + car.setRemark("箱体长2.6m,宽1.7m,高1.5m;最多可容纳约90袋装修垃圾(75cm*5cm每袋)"); | ||
| 50 | }else if(Objects.equals(car.getCarType(),"中型货车")){ | 51 | }else if(Objects.equals(car.getCarType(),"中型货车")){ |
| 51 | car.setCarLeft("car_2.png"); | 52 | car.setCarLeft("car_2.png"); |
| 53 | + car.setRemark("箱体长3.2m,宽1.5m,高1.5m;最多可容纳约110袋装修垃圾(75cm*45cm每袋)"); | ||
| 52 | }else if(Objects.equals(car.getCarType(),"大中型货车")){ | 54 | }else if(Objects.equals(car.getCarType(),"大中型货车")){ |
| 53 | car.setCarLeft("car_3.png"); | 55 | car.setCarLeft("car_3.png"); |
| 56 | + car.setRemark("箱体长3.2m,宽1.9m,高1.9m;最多可容纳约150袋装修垃圾(75cm*45cm每袋)"); | ||
| 54 | } | 57 | } |
| 55 | return car; | 58 | return car; |
| 56 | }).collect(Collectors.toList()); | 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,7 +117,7 @@ public class TransportationEnterprise extends BaseEntity | ||
| 117 | private Long parentId; | 117 | private Long parentId; |
| 118 | 118 | ||
| 119 | /** 公司类型(0经营单位,1运输公司) */ | 119 | /** 公司类型(0经营单位,1运输公司) */ |
| 120 | -// @Excel(name = "公司类型", readConverterExp = "0=投放点信息,1运输公司") | 120 | + @Excel(name = "公司类型", readConverterExp = "0=经营单位,1运输公司") |
| 121 | private Integer companyType; | 121 | private Integer companyType; |
| 122 | 122 | ||
| 123 | /** 信用状态 */ | 123 | /** 信用状态 */ |