Commit ad81287d authored by huangcb's avatar huangcb

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

parent 24d71786
......@@ -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("/listByDriver")
public EResponse listByDriver(@RequestBody @Validated(ValidatorDetail.class) DriverQueryForm form) throws EException {
return EResponse.ok(driverVehicleService.getDriverBindVehicleList(form.getId()));
}
......
......@@ -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/listByDriver";
// 构造数据
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/listByDriver";
// 构造数据
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/listByDriver";
// 构造数据
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