feat: bug-1286 设备售后公司转移

This commit is contained in:
曹鹏飞 2026-01-29 17:01:13 +08:00
parent 4f204375af
commit c1f91ad75a
2 changed files with 22 additions and 0 deletions

View File

@ -803,4 +803,15 @@ public class DeviceController extends ControllerBase {
); );
return ApiResult.success(); return ApiResult.success();
} }
/**
* 获取服务代理商公司变更记录
*/
@GetMapping("getServiceAgentChangeRecord")
public ApiResult<List<DeviceAgentRecord>> getServiceAgentChangeRecord(@RequestParam Integer deviceId) {
return ApiResult.success(deviceAgentRecordService.lambdaQuery()
.eq(DeviceAgentRecord::getDeviceId, deviceId)
.orderByDesc(DeviceAgentRecord::getId)
.list());
}
} }

View File

@ -843,4 +843,15 @@ public class DeviceController extends ControllerBase {
); );
return ApiResult.success(); return ApiResult.success();
} }
/**
* 获取服务代理商公司变更记录
*/
@GetMapping("getServiceAgentChangeRecord")
public ApiResult<List<GongfuDeviceAgentRecord>> getServiceAgentChangeRecord(@RequestParam Long deviceId) {
return ApiResult.success(gongfuDeviceAgentRecordService.lambdaQuery()
.eq(GongfuDeviceAgentRecord::getDeviceId, deviceId)
.orderByDesc(GongfuDeviceAgentRecord::getId)
.list());
}
} }