Commit 511dc54c authored by hezhen's avatar hezhen

123

parent df01fb7e
package com.xxfc.platform.vehicle.pojo.vo; package com.xxfc.platform.vehicle.pojo.vo;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.xxfc.platform.vehicle.entity.VehicleApply; import com.xxfc.platform.vehicle.entity.VehicleApply;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.StringUtils;
@Data @Data
public class VehicleApplyVo extends VehicleApply { public class VehicleApplyVo extends VehicleApply {
...@@ -18,4 +21,28 @@ public class VehicleApplyVo extends VehicleApply { ...@@ -18,4 +21,28 @@ public class VehicleApplyVo extends VehicleApply {
@ApiModelProperty("型号名称") @ApiModelProperty("型号名称")
String categoryName; String categoryName;
public String getBrandName(){
if (StringUtils.isNotBlank(brandName)){
String changeJson = this.getChangeJson();
if (StringUtils.isNotBlank(changeJson)){
JSONObject jsonObject = JSONObject.parseObject(changeJson);
brandName = jsonObject.getString("brandName");
}
}
return brandName;
}
public String getCategoryName(){
if (StringUtils.isNotBlank(categoryName)){
String changeJson = this.getChangeJson();
if (StringUtils.isNotBlank(changeJson)){
JSONObject jsonObject = JSONObject.parseObject(changeJson);
categoryName = jsonObject.getString("categoryName");
}
}
return categoryName;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment