WeBankFinTech / DataSphereStudio

DataSphereStudio is a one stop data application development& management portal, covering scenarios including data exchange, desensitization/cleansing, analysis/mining, quality measurement, visualization, and task scheduling.
https://github.com/WeBankFinTech/DataSphereStudio-Doc
Apache License 2.0
3.08k stars 1k forks source link

[Bug] DSS用户管理页面查询分页的时候提示错误 #906

Open yubingkun opened 2 years ago

yubingkun commented 2 years ago

Search before asking

DSS Component

dss-framework

What happened + What you expected to happen

在工作空间管理页面->用户信息分页查询的时候提示失败。 image

{"method":null,"status":1,"message":"operation failed(操作失败)s!the reason(原因):SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column 'dss.dss_workspace_user_role.id' which is not in SELECT list; this is incompatible with DISTINCT","data":{"errorMsg":{"serviceKind":"dss-framework-project-server","level":2,"port":9202,"errCode":0,"ip":"yubingkun","desc":"operation failed(操作失败)s!the reason(原因):SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column 'dss.dss_workspace_user_role.id' which is not in SELECT list; this is incompatible with DISTINCT"}}}

Relevent platform

系统:windows; 浏览器:chrome

Reproduction script

发现是在DSS branch-1.1.0代码中DSSWorkspaceUserMapper。
@Select({ "" }) 这里没有order by id ,id字段不存在导致的。

Anything else

No response

Are you willing to submit a PR?

6-archer-9 commented 5 months ago

这个bug 到现在还没修