Skip to content

通过数据管理的API查询数据为何总是返回第一条数据 #1421

@wang2024666

Description

@wang2024666

版本(The versions used): 最新版本

发生了什么(What happened):
在lesscode中开发应用时,通过数据管理的API查询数据。接口描述为:
/api/data-source/user/tableName/convertserviceportal/detail
{
"[key]": "query 参数,可以填写多个键值对,并使用 AND 关系查询具体的数据,如果匹配到多条数据,则返回第一条。key 可以填写任意字段。value 填写值,可以用 %xx% 的形式进行模糊匹配。示例:'name': 'xxx' 或者 'name': '%xxx%'"
}
配置请求体:
{
"[service]": "NDS2d"
}
使用get方法查询,始终返回表中的第一条数据,而不是期望的查询数据:
{
"code": 0,
"message": "success",
"data": {
"id": 2,
"updateTime": "2024-11-22T08:56:38.000Z",
"createTime": "2024-11-22T08:56:38.000Z",
"createUser": null,
"updateUser": null,
"host": "10.122.66.98",
"service": "NDS3DModelCompare_test_ai",
"path": "E:\3D\test_ai\NDS3DModelCompare\NDSConverterService.exe",
"status": "Stopped"
}
}

期望是什么(What you expected to happen):
应该如何组织 请求体,可以返回期望的查询条件的呢?

如何复现(How to reproduce it):

相关的日志详情和截图等(Log & Screenshot):

备注(Anything else we need to know):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug验收或线上环境bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions