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 e45d9f1d
authored
Aug 27, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发无在店统计和车辆管理功能+优化接口功能
1 parent
98edc9b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
src/main/java/cn/com/glsx/admin/modules/model/VehicleInfoPageDTO.java
src/main/resources/mapper/VehicleMapper.xml
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
src/main/java/cn/com/glsx/admin/modules/model/VehicleInfoPageDTO.java
View file @
e45d9f1
...
@@ -37,7 +37,7 @@ public class VehicleInfoPageDTO extends BaseOrgDto {
...
@@ -37,7 +37,7 @@ public class VehicleInfoPageDTO extends BaseOrgDto {
/**
/**
* 设备类型
* 设备类型
*/
*/
private
String
deviceType
;
private
Integer
deviceType
;
/**
/**
* 车型
* 车型
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
e45d9f1
...
@@ -63,21 +63,21 @@
...
@@ -63,21 +63,21 @@
</resultMap>
</resultMap>
<resultMap
id=
"VehicleInfoMap"
type=
"cn.com.glsx.admin.modules.model.VehicleInfoPageDTO"
>
<resultMap
id=
"VehicleInfoMap"
type=
"cn.com.glsx.admin.modules.model.VehicleInfoPageDTO"
>
<result
column=
"id"
jdbcType=
"
VARCHAR
"
property=
"id"
/>
<result
column=
"id"
jdbcType=
"
BIGINT
"
property=
"id"
/>
<result
column=
"workorder_id"
jdbcType=
"
VARCHA
R"
property=
"workorderId"
/>
<result
column=
"workorder_id"
jdbcType=
"
INTEGE
R"
property=
"workorderId"
/>
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"device_type"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"device_type"
jdbcType=
"INTEGER"
property=
"deviceType"
/>
<result
column=
"model_name"
jdbcType=
"VARCHAR"
property=
"modelName"
/>
<result
column=
"model_name"
jdbcType=
"VARCHAR"
property=
"modelName"
/>
<result
column=
"vehicle_type"
jdbcType=
"INTEGER"
property=
"vehicleType"
/>
<result
column=
"vehicle_type"
jdbcType=
"INTEGER"
property=
"vehicleType"
/>
<result
column=
"vehicle_usages"
jdbcType=
"
VARCHA
R"
property=
"vehicleUsages"
/>
<result
column=
"vehicle_usages"
jdbcType=
"
INTEGE
R"
property=
"vehicleUsages"
/>
<result
column=
"activate_time"
jdbcType=
"TIMESTAMP"
property=
"activateTime"
/>
<result
column=
"activate_time"
jdbcType=
"TIMESTAMP"
property=
"activateTime"
/>
</resultMap>
</resultMap>
<resultMap
id=
"VehicleInfoReportExportMap"
type=
"cn.com.glsx.admin.modules.model.export.VehicleInfoReportExport"
>
<resultMap
id=
"VehicleInfoReportExportMap"
type=
"cn.com.glsx.admin.modules.model.export.VehicleInfoReportExport"
>
<result
column=
"id"
jdbcType=
"
VARCHAR
"
property=
"id"
/>
<result
column=
"id"
jdbcType=
"
BIGINT
"
property=
"id"
/>
<result
column=
"workorder_id"
jdbcType=
"
VARCHA
R"
property=
"workorderId"
/>
<result
column=
"workorder_id"
jdbcType=
"
INTEGE
R"
property=
"workorderId"
/>
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"owner_name"
jdbcType=
"VARCHAR"
property=
"ownerName"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"vin"
jdbcType=
"VARCHAR"
property=
"vin"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
<result
column=
"sn"
jdbcType=
"VARCHAR"
property=
"sn"
/>
...
...
src/test/java/cn/com/glsx/admin/modules/service/VehicleServiceTest.java
View file @
e45d9f1
...
@@ -250,6 +250,8 @@ public class VehicleServiceTest {
...
@@ -250,6 +250,8 @@ public class VehicleServiceTest {
@Test
@Test
public
void
test01
()
{
public
void
test01
()
{
VehicleInfoSearch
search
=
new
VehicleInfoSearch
();
VehicleInfoSearch
search
=
new
VehicleInfoSearch
();
search
.
setPageNumber
(
1
);
search
.
setPageSize
(
10
);
PageInfo
<
VehicleInfoPageDTO
>
vehicleInfoPageDTOPageInfo
=
vehicleService
.
searchVehicleInfo
(
search
);
PageInfo
<
VehicleInfoPageDTO
>
vehicleInfoPageDTOPageInfo
=
vehicleService
.
searchVehicleInfo
(
search
);
System
.
out
.
println
(
"vehicleInfoPageDTOPageInfo = "
+
JSON
.
toJSONString
(
vehicleInfoPageDTOPageInfo
));
System
.
out
.
println
(
"vehicleInfoPageDTOPageInfo = "
+
JSON
.
toJSONString
(
vehicleInfoPageDTOPageInfo
));
}
}
...
...
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