Commit 30208e68 by yancanhua

Merge branch 'v1.3.0' of https://gitee.com/foutouren/aus into v1.3.0

2 parents 10752892 d11e09fc
...@@ -137,7 +137,8 @@ public class InspectionReportExportBean implements Serializable { ...@@ -137,7 +137,8 @@ public class InspectionReportExportBean implements Serializable {
// 基础信息 // 基础信息
if (vehicle.getBaseInfo() != null) { if (vehicle.getBaseInfo() != null) {
this.sourceNo = vehicle.getBaseInfo().getSourceNo(); this.sourceNo = vehicle.getBaseInfo().getSourceNo();
this.carTypeName = vehicle.getBaseInfo().getCarTypeName(); String seriesName = vehicle.getBaseInfo().getCarSeriesName() == null ? "" : vehicle.getBaseInfo().getCarSeriesName();
this.carTypeName = seriesName + " " + vehicle.getBaseInfo().getCarTypeName();
this.vin = vehicle.getBaseInfo().getVin(); this.vin = vehicle.getBaseInfo().getVin();
this.licensePlate = vehicle.getBaseInfo().getLicensePlate(); this.licensePlate = vehicle.getBaseInfo().getLicensePlate();
} else { } else {
......
...@@ -185,7 +185,8 @@ public class InspectionWorkOrderExportBean implements Serializable { ...@@ -185,7 +185,8 @@ public class InspectionWorkOrderExportBean implements Serializable {
// 基础信息 // 基础信息
if (vehicle.getBaseInfo() != null) { if (vehicle.getBaseInfo() != null) {
this.sourceNo = vehicle.getBaseInfo().getSourceNo(); this.sourceNo = vehicle.getBaseInfo().getSourceNo();
this.carTypeName = vehicle.getBaseInfo().getCarSeriesName() + " " + vehicle.getBaseInfo().getCarTypeName(); String seriesName = vehicle.getBaseInfo().getCarSeriesName() == null ? "" : vehicle.getBaseInfo().getCarSeriesName();
this.carTypeName = seriesName + " " + vehicle.getBaseInfo().getCarTypeName();
this.vin = vehicle.getBaseInfo().getVin(); this.vin = vehicle.getBaseInfo().getVin();
this.licensePlate = vehicle.getBaseInfo().getLicensePlate(); this.licensePlate = vehicle.getBaseInfo().getLicensePlate();
} else { } else {
......
...@@ -116,8 +116,12 @@ public class RyInspectionTemplateCode001 implements TemplateValueStrategy { ...@@ -116,8 +116,12 @@ public class RyInspectionTemplateCode001 implements TemplateValueStrategy {
defaultValueMap.put(InspectionBaseInfoFieldEnum.CAR_SERIES_NAME.getCode(), baseInfo.getCarSeriesName()); defaultValueMap.put(InspectionBaseInfoFieldEnum.CAR_SERIES_NAME.getCode(), baseInfo.getCarSeriesName());
} }
// 车型·
if (StringUtils.hasText(baseInfo.getCarTypeName())) {
defaultValueMap.put(InspectionBaseInfoFieldEnum.CAR_TYPE_NAME.getCode(), baseInfo.getCarTypeName());
}
if (ObjectUtil.isNotNull(baseInfo.getCarTypeId())) { if (ObjectUtil.isNotNull(baseInfo.getCarTypeId())) {
defaultValueMap.put(InspectionBaseInfoFieldEnum.CAR_SERIES_ID.getCode(), StrUtil.toString(baseInfo.getCarSeriesId())); defaultValueMap.put(InspectionBaseInfoFieldEnum.CAR_TYPE_ID.getCode(), StrUtil.toString(baseInfo.getCarTypeId()));
} }
// 表显里程 // 表显里程
......
...@@ -94,7 +94,7 @@ public class AuthController { ...@@ -94,7 +94,7 @@ public class AuthController {
return BaseResp.fail("用户不存在"); return BaseResp.fail("用户不存在");
} }
String code = loginRequest.getVerifyCode(); String code = loginRequest.getVerifyCode();
if (!smsCodeUtil.validateCode(phone, code) && !envProfileUtils.isDevEnvironment()) { if (!smsCodeUtil.validateCode(phone, code) && !envProfileUtils.isDevEnvironment() && !envProfileUtils.isTestEnvironment()) {
log.warn("用户手机号{}验证码错误", phone); log.warn("用户手机号{}验证码错误", phone);
return BaseResp.fail("验证码错误或已过期"); return BaseResp.fail("验证码错误或已过期");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!