Commit 6a53ff56 by 章家宝

feat:填充默认值

1 parent c37253f9
...@@ -1135,8 +1135,24 @@ public class VrAuditService { ...@@ -1135,8 +1135,24 @@ public class VrAuditService {
// 设置评估与交易 EvaluationTransaction // 设置评估与交易 EvaluationTransaction
EvaluationTransaction evaluationTransaction = new EvaluationTransaction(); EvaluationTransaction evaluationTransaction = new EvaluationTransaction();
evaluationTransaction.setOverallRating(1); // 车辆整体评级默认1-优 evaluationTransaction.setOverallRating(1); // 车辆整体评级默认1-优
evaluationTransaction.setEvalOrderNo(""); // 评估单编号,默认空
evaluationTransaction.setEvalOpinion(""); // 评估意见,默认空
evaluationTransaction.setSellerMerchantName("");
evaluationTransaction.setSellerName(""); // 销售顾问
vehicle.setEvaluationTransaction(evaluationTransaction); vehicle.setEvaluationTransaction(evaluationTransaction);
// 设置车辆保管信息 CustodianInfo
CustodianInfo custodianInfo = new CustodianInfo();
custodianInfo.setCustodianName(""); // 保管人姓名,默认发拍人
custodianInfo.setCustodianPhone(""); // 保管人联系方式
vehicle.setCustodianInfo(custodianInfo);
// 设置车主信息 OwnerInfo
OwnerInfo ownerInfo = new OwnerInfo();
ownerInfo.setPreviousOwnerName(""); // 车主姓名,默认空
ownerInfo.setPreviousOwnerPhone(""); // 车主联系方式,默认空
vehicle.setOwnerInfo(ownerInfo);
// 设置车辆图片 carImages // 设置车辆图片 carImages
List<CarImage> carImages = buildCarImages(vrAudit); List<CarImage> carImages = buildCarImages(vrAudit);
vehicle.setCarImages(carImages); vehicle.setCarImages(carImages);
......
...@@ -9,7 +9,7 @@ import org.springframework.data.domain.AuditorAware; ...@@ -9,7 +9,7 @@ import org.springframework.data.domain.AuditorAware;
* *
*/ */
@Configuration @Configuration
public class BeanConfig { public class InspectorBeanConfig {
@Bean @Bean
public AuditorAware<String> auditorProvider() { public AuditorAware<String> auditorProvider() {
......
...@@ -2,6 +2,7 @@ package com.glsx.usedcar.controller; ...@@ -2,6 +2,7 @@ package com.glsx.usedcar.controller;
import com.glsx.usedcar.handler.AliyunOssHandler; import com.glsx.usedcar.handler.AliyunOssHandler;
import com.glsx.usedcar.handler.AliyunToken; import com.glsx.usedcar.handler.AliyunToken;
import com.glsx.usedcar.resp.BaseResp;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
...@@ -26,8 +27,8 @@ public class OssController { ...@@ -26,8 +27,8 @@ public class OssController {
@GetMapping("/getToken") @GetMapping("/getToken")
@Operation(summary = "获取token信息", description = "获取oss临时凭证") @Operation(summary = "获取token信息", description = "获取oss临时凭证")
@ApiResponse(responseCode = "200", description = "获取OSS临时凭证") @ApiResponse(responseCode = "200", description = "获取OSS临时凭证")
public AliyunToken getToken() { public BaseResp<AliyunToken> getToken() {
return aliyunOssHandler.getToken(); return BaseResp.success(aliyunOssHandler.getToken());
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!