Commit ad81287d authored by huangcb's avatar huangcb

承运商接口:查询指定司机绑定的车辆列表

parent 24d71786
...@@ -40,14 +40,14 @@ public class DriverVehicleController { ...@@ -40,14 +40,14 @@ public class DriverVehicleController {
} }
/** /**
* description 查询司机绑定的车辆列表 * description 查询指定司机绑定的车辆列表
* param [form] * param [form]
* return com.esv.freight.customer.common.response.EResponse * return com.esv.freight.customer.common.response.EResponse
* author Administrator * author Administrator
* createTime 2020/04/29 19:16 * createTime 2020/04/29 19:16
**/ **/
@PostMapping("/list") @PostMapping("/listByDriver")
public EResponse list(@RequestBody @Validated(ValidatorDetail.class) DriverQueryForm form) throws EException { public EResponse listByDriver(@RequestBody @Validated(ValidatorDetail.class) DriverQueryForm form) throws EException {
return EResponse.ok(driverVehicleService.getDriverBindVehicleList(form.getId())); return EResponse.ok(driverVehicleService.getDriverBindVehicleList(form.getId()));
} }
......
...@@ -39,11 +39,11 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -39,11 +39,11 @@ import org.springframework.transaction.annotation.Transactional;
public class DriverVehicleControllerTest extends BaseTestController { public class DriverVehicleControllerTest extends BaseTestController {
/** /**
* 查询司机绑定的车辆列表 * 查询指定司机绑定的车辆列表
**/ **/
@Test @Test
public void a1_list_success_test() throws Exception { public void a1_list_success_test() throws Exception {
String url = "/carrier/driver/vehicle/list"; String url = "/carrier/driver/vehicle/listByDriver";
// 构造数据 // 构造数据
DriverQueryForm form = new DriverQueryForm(); DriverQueryForm form = new DriverQueryForm();
...@@ -66,11 +66,11 @@ public class DriverVehicleControllerTest extends BaseTestController { ...@@ -66,11 +66,11 @@ public class DriverVehicleControllerTest extends BaseTestController {
} }
/** /**
* 查询司机绑定的车辆列表:无效的司机ID * 查询指定司机绑定的车辆列表:无效的司机ID
**/ **/
@Test @Test
public void a2_list_wrong_id_failure_test() throws Exception { public void a2_list_wrong_id_failure_test() throws Exception {
String url = "/carrier/driver/vehicle/list"; String url = "/carrier/driver/vehicle/listByDriver";
// 构造数据 // 构造数据
DriverQueryForm form = new DriverQueryForm(); DriverQueryForm form = new DriverQueryForm();
...@@ -92,11 +92,11 @@ public class DriverVehicleControllerTest extends BaseTestController { ...@@ -92,11 +92,11 @@ public class DriverVehicleControllerTest extends BaseTestController {
} }
/** /**
* 查询司机绑定的车辆列表:该司机未绑定车辆 * 查询指定司机绑定的车辆列表:该司机未绑定车辆
**/ **/
@Test @Test
public void a3_list_not_bind_vehicle_failure_test() throws Exception { public void a3_list_not_bind_vehicle_failure_test() throws Exception {
String url = "/carrier/driver/vehicle/list"; String url = "/carrier/driver/vehicle/listByDriver";
// 构造数据 // 构造数据
DriverQueryForm form = new DriverQueryForm(); DriverQueryForm form = new DriverQueryForm();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment