Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
customer-service
Commits
ad81287d
Commit
ad81287d
authored
Apr 30, 2020
by
huangcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
承运商接口:查询指定司机绑定的车辆列表
parent
24d71786
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
DriverVehicleController.java
...mer/module/driver/controller/DriverVehicleController.java
+3
-3
DriverVehicleControllerTest.java
...module/driver/controller/DriverVehicleControllerTest.java
+6
-6
No files found.
src/main/java/com/esv/freight/customer/module/driver/controller/DriverVehicleController.java
View file @
ad81287d
...
...
@@ -40,14 +40,14 @@ public class DriverVehicleController {
}
/**
* description 查询司机绑定的车辆列表
* description 查询
指定
司机绑定的车辆列表
* param [form]
* return com.esv.freight.customer.common.response.EResponse
* author Administrator
* createTime 2020/04/29 19:16
**/
@PostMapping
(
"/list"
)
public
EResponse
list
(
@RequestBody
@Validated
(
ValidatorDetail
.
class
)
DriverQueryForm
form
)
throws
EException
{
@PostMapping
(
"/list
ByDriver
"
)
public
EResponse
list
ByDriver
(
@RequestBody
@Validated
(
ValidatorDetail
.
class
)
DriverQueryForm
form
)
throws
EException
{
return
EResponse
.
ok
(
driverVehicleService
.
getDriverBindVehicleList
(
form
.
getId
()));
}
...
...
src/test/java/com/esv/freight/customer/module/driver/controller/DriverVehicleControllerTest.java
View file @
ad81287d
...
...
@@ -39,11 +39,11 @@ import org.springframework.transaction.annotation.Transactional;
public
class
DriverVehicleControllerTest
extends
BaseTestController
{
/**
* 查询司机绑定的车辆列表
* 查询
指定
司机绑定的车辆列表
**/
@Test
public
void
a1_list_success_test
()
throws
Exception
{
String
url
=
"/carrier/driver/vehicle/list"
;
String
url
=
"/carrier/driver/vehicle/list
ByDriver
"
;
// 构造数据
DriverQueryForm
form
=
new
DriverQueryForm
();
...
...
@@ -66,11 +66,11 @@ public class DriverVehicleControllerTest extends BaseTestController {
}
/**
* 查询司机绑定的车辆列表:无效的司机ID
* 查询
指定
司机绑定的车辆列表:无效的司机ID
**/
@Test
public
void
a2_list_wrong_id_failure_test
()
throws
Exception
{
String
url
=
"/carrier/driver/vehicle/list"
;
String
url
=
"/carrier/driver/vehicle/list
ByDriver
"
;
// 构造数据
DriverQueryForm
form
=
new
DriverQueryForm
();
...
...
@@ -92,11 +92,11 @@ public class DriverVehicleControllerTest extends BaseTestController {
}
/**
* 查询司机绑定的车辆列表:该司机未绑定车辆
* 查询
指定
司机绑定的车辆列表:该司机未绑定车辆
**/
@Test
public
void
a3_list_not_bind_vehicle_failure_test
()
throws
Exception
{
String
url
=
"/carrier/driver/vehicle/list"
;
String
url
=
"/carrier/driver/vehicle/list
ByDriver
"
;
// 构造数据
DriverQueryForm
form
=
new
DriverQueryForm
();
...
...
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