Merge branch 'feature/bug-1286' into develop

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

View File

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