Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
511dc54c
Commit
511dc54c
authored
Nov 26, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
df01fb7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
VehicleApplyVo.java
...ava/com/xxfc/platform/vehicle/pojo/vo/VehicleApplyVo.java
+27
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleApplyVo.java
View file @
511dc54c
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
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment