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
8ef96d8d
Commit
8ef96d8d
authored
Aug 08, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
20f02648
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+9
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
8ef96d8d
...
...
@@ -157,6 +157,9 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
}
String
host
=
request
.
getRemoteHost
();
if
(
StringUtils
.
isBlank
(
host
))
{
return
ObjectRestResponse
.
createDefaultFail
();
}
//设置信息
vm
.
setCrtName
(
uorr
.
getData
().
getName
());
vm
.
setCrtUser
(
uorr
.
getData
().
getId
());
...
...
@@ -208,7 +211,9 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"获取不到用户信息"
);
}
String
host
=
request
.
getRemoteHost
();
if
(
StringUtils
.
isBlank
(
host
))
{
return
ObjectRestResponse
.
createDefaultFail
();
}
// 插入修改时间
vm
.
setUpdName
(
uorr
.
getData
().
getName
());
vm
.
setUpdUser
(
uorr
.
getData
().
getId
());
...
...
@@ -309,6 +314,9 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"获取不到用户信息"
);
}
String
host
=
request
.
getRemoteHost
();
if
(
StringUtils
.
isBlank
(
host
))
{
return
ObjectRestResponse
.
createDefaultFail
();
}
VehicleModel
vehicleModel
=
new
VehicleModel
();
vehicleModel
.
setId
(
id
);
vehicleModel
.
setStatus
(
status
);
...
...
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