Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bfb9458b
authored
May 24, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
脚手架版本升级
1 parent
be2200d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
bfb9458
...
@@ -27,6 +27,7 @@ import com.github.pagehelper.PageHelper;
...
@@ -27,6 +27,7 @@ import com.github.pagehelper.PageHelper;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.plat.core.web.R
;
import
com.google.gson.reflect.TypeToken
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.Log
;
...
@@ -266,7 +267,8 @@ public class VehicleService {
...
@@ -266,7 +267,8 @@ public class VehicleService {
R
<
List
<
User
>>
userR
=
userService
.
findByUser
(
new
FindUserRequest
().
setUsername
(
shopName
));
R
<
List
<
User
>>
userR
=
userService
.
findByUser
(
new
FindUserRequest
().
setUsername
(
shopName
));
Long
createId
=
null
;
Long
createId
=
null
;
if
(
userR
!=
null
)
{
if
(
userR
!=
null
)
{
List
<
User
>
userList
=
userR
.
getData
();
List
<
User
>
userList
=
userR
.
getDataList
(
new
TypeToken
<
List
<
User
>>()
{
}.
getType
());
if
(
CollectionUtils
.
isNotEmpty
(
userList
)
&&
userList
.
size
()
==
1
)
{
if
(
CollectionUtils
.
isNotEmpty
(
userList
)
&&
userList
.
size
()
==
1
)
{
createId
=
userList
.
get
(
0
).
getId
();
createId
=
userList
.
get
(
0
).
getId
();
vehicle
.
setCreatedBy
(
createId
);
vehicle
.
setCreatedBy
(
createId
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment