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 905bec2b
authored
Sep 13, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增权限控制
1 parent
4182aa8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
src/main/resources/mapper/VehicleMapper.xml
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
View file @
905bec2
...
...
@@ -45,6 +45,8 @@
and (
tu.account like '%${keywords}%'
or tu.username like '%${keywords}%'
or tv.vin like '%${keywords}%'
or tv.modelName like '%${keywords}%'
)
</if>
order by tu.account
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
905bec2
...
...
@@ -35,6 +35,7 @@
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"serve_type"
jdbcType=
"TINYINT"
property=
"serveType"
/>
<result
column=
"validate_status"
jdbcType=
"TINYINT"
property=
"validateStatus"
/>
<result
column=
"vehicle_usages"
jdbcType=
"TINYINT"
property=
"vehicleUsages"
/>
<result
column=
"validate_info"
jdbcType=
"VARCHAR"
property=
"validateInfo"
/>
<result
column=
"del_flag"
jdbcType=
"TINYINT"
property=
"delFlag"
/>
<result
column=
"created_date"
jdbcType=
"TIMESTAMP"
property=
"createdDate"
/>
...
...
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
View file @
905bec2
...
...
@@ -77,6 +77,9 @@ public class VehicleServiceTest {
@Autowired
private
DevicePowerFeignClient
devicePowerFeignClient
;
@Autowired
private
RemoteDeviceService
remoteDeviceService
;
@Before
public
void
runBeforeTestMethod
()
{
SyntheticUser
user
=
new
SyntheticUser
();
...
...
@@ -2131,4 +2134,10 @@ public class VehicleServiceTest {
}
}
@Test
public
void
test13
()
{
TrackInfoBo
trackInfoBo
=
remoteDeviceService
.
getDeviceBySn
(
"8130902038"
);
System
.
out
.
println
(
"trackInfoBo = "
+
JSON
.
toJSONString
(
trackInfoBo
));
}
}
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