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
29ff8615
Commit
29ff8615
authored
Aug 26, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加排序
parent
800314c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+13
-9
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
29ff8615
...
@@ -229,18 +229,22 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
...
@@ -229,18 +229,22 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
// 删除车型对应的标签
// 删除车型对应的标签
vehicleCataBiz
.
delete
(
vcDelete
);
vehicleCataBiz
.
delete
(
vcDelete
);
ArrayList
<
VehicleCata
>
vcs
=
new
ArrayList
<>();
//从新插入车型对应的标签
//从新插入车型对应的标签
// 获取cataid
// 获取cataid
String
[]
config
=
vm
.
getConfig
().
split
(
","
);
if
(
vm
.
getConfig
()!=
null
)
{
for
(
String
con
:
config
)
{
ArrayList
<
VehicleCata
>
vcs
=
new
ArrayList
<>();
VehicleCata
vc
=
new
VehicleCata
();
String
[]
config
=
vm
.
getConfig
().
split
(
","
);
vc
.
setCataId
(
Integer
.
parseInt
(
con
));
for
(
String
con
:
config
)
{
vc
.
setVehicleModelId
(
vm
.
getId
());
VehicleCata
vc
=
new
VehicleCata
();
vc
.
setCrtTime
(
System
.
currentTimeMillis
());
vc
.
setCataId
(
Integer
.
parseInt
(
con
));
vcs
.
add
(
vc
);
vc
.
setVehicleModelId
(
vm
.
getId
());
vc
.
setCrtTime
(
System
.
currentTimeMillis
());
vcs
.
add
(
vc
);
}
vehicleCataBiz
.
inserts
(
vcs
);
}
}
vehicleCataBiz
.
inserts
(
vcs
);
}
}
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
catch
(
NumberFormatException
e
)
{
}
catch
(
NumberFormatException
e
)
{
...
...
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