分配客户 接口注释
This commit is contained in:
@ -126,26 +126,26 @@ public class DeviceController extends BaseController {
|
||||
|
||||
|
||||
// @Log("分配客户")
|
||||
@Operation(summary = "分配客户")
|
||||
@PutMapping(value = "/assignCustomer")
|
||||
public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
|
||||
deviceService.assignCustomer(customerVo);
|
||||
return R.ok();
|
||||
}
|
||||
// @Operation(summary = "分配客户")
|
||||
// @PutMapping(value = "/assignCustomer")
|
||||
// public R<Void> assignCustomer(@Validated @RequestBody CustomerVo customerVo) {
|
||||
// deviceService.assignCustomer(customerVo);
|
||||
// return R.ok();
|
||||
// }
|
||||
|
||||
|
||||
// @Log("撤回设备")
|
||||
@Operation(summary = "撤回分配设备")
|
||||
@PostMapping(value = "/withdraw")
|
||||
public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
|
||||
try {
|
||||
deviceService.withdrawDevice(ids);
|
||||
} catch (Exception e) {
|
||||
log.error("updateDevice error: " + e.getMessage());
|
||||
return R.fail(e.getMessage());
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
// @Operation(summary = "撤回分配设备")
|
||||
// @PostMapping(value = "/withdraw")
|
||||
// public R<Void> withdrawDevice(@RequestBody List<Long> ids) {
|
||||
// try {
|
||||
// deviceService.withdrawDevice(ids);
|
||||
// } catch (Exception e) {
|
||||
// log.error("updateDevice error: " + e.getMessage());
|
||||
// return R.fail(e.getMessage());
|
||||
// }
|
||||
// return R.ok();
|
||||
// }
|
||||
|
||||
//
|
||||
// /**
|
||||
|
Reference in New Issue
Block a user