Преглед на файлове

修改httpOKUtil请求时长

zhujinghui преди 4 години
родител
ревизия
beaf48a797

+ 2 - 4
src/main/java/com/example/demo/controller/ManagerController.java

@@ -446,10 +446,8 @@ public class ManagerController {
                 renovationPartsDetailEntity.setPartsBrandId(1L);
             }
             RenovationPartsBrandEntity renovationPartsBrandEntity = renovationPartsBrandService.findById(renovationPartsDetailEntity.getPartsBrandId());
-
-            if(renovationPartsBrandEntity != null){
-                responseRenovationPartsDetailManager.setBrandName(renovationPartsBrandEntity.getBrandName());
-            }
+            responseRenovationPartsDetailManager.setBrandName(renovationPartsBrandEntity.getBrandName());
+            responseRenovationPartsDetailManager.setPartsBrandId(renovationPartsBrandEntity.getId());
 
 
             if(renovationPartsDetailEntity.getCompanyId() != null){

+ 1 - 1
src/main/java/com/example/demo/vo/response/ResponseRenovationPartsDetailManager.java

@@ -28,7 +28,7 @@ public class ResponseRenovationPartsDetailManager {
     private String brandName;
 
     @ApiModelProperty(value = "品牌id", name = "brandId")
-    private Long brandId;
+    private Long partsBrandId;
 
     @ApiModelProperty(value = "风格id", name = "partsColorId")
     private Long partsStyleId;