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 9dc8fcd5
authored
Jun 05, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
3b88fe25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
9dc8fcd
...
...
@@ -454,7 +454,8 @@ public class VehicleService {
}
else
{
vehicle
.
setServeType
(
ConstantsVehicle
.
UN_VEHICLE_TYPE_PLATE
);
}
vehicle
.
setCreatedBy
(
ShieldContextHolder
.
getUserId
());
List
<
User
>
userList
=
findByNameAndCode
(
vi
.
getShopName
(),
vi
.
getShopCode
());
vehicle
.
setCreatedBy
(
userList
.
get
(
0
).
getId
());
vehicle
.
setCreatedDate
(
new
Date
());
vehicle
.
setVehicleType
(
ConstantsVehicle
.
TRIAL_DRIVE_TYPE
);
vehicle
.
setServeType
(
ConstantsVehicle
.
UN_VEHICLE_TYPE_PLATE
);
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
9dc8fcd
...
...
@@ -71,8 +71,8 @@
<sql
id=
"search_sql_condition"
>
<if
test=
"searchKey != null and searchKey != '' "
>
and (
t
tds.shop_code
like concat('%',#{searchKey},'%')
or t
tds.shop_
name like concat('%',#{searchKey},'%')
t
u.account
like concat('%',#{searchKey},'%')
or t
u.user
name like concat('%',#{searchKey},'%')
or tv.vin like concat('%',#{searchKey},'%')
or tvd.sn like concat('%',#{searchKey},'%')
or tv.model_name like concat('%',#{searchKey},'%')
...
...
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