Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
佟礼
HYH.APSJ
Commits
a6d5f861
Commit
a6d5f861
authored
May 21, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回数据优化
parent
aed82397
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ChromosomeDataController.java
...a/com/aps/controller/common/ChromosomeDataController.java
+3
-3
ChromosomeDataService.java
...in/java/com/aps/service/common/ChromosomeDataService.java
+4
-0
No files found.
src/main/java/com/aps/controller/common/ChromosomeDataController.java
View file @
a6d5f861
...
...
@@ -97,14 +97,14 @@ public class ChromosomeDataController {
// 文件实体必须要有sceneId
if
(
isFileEntity
(
entityName
)
&&
(
sceneId
==
null
||
sceneId
.
isEmpty
()))
{
return
R
.
ok
(
null
);
return
ok
(
Collections
.
emptyList
()
);
}
// 直接调用服务层的list查询方法
List
<
Object
>
result
=
chromosomeDataService
.
queryChromosomeDataList
(
sceneId
,
entityName
,
paged
);
if
(
result
==
null
)
{
return
ok
(
Collections
.
emptyList
()
,
"查询成功,但未找到匹配的数据"
);
return
ok
(
Collections
.
emptyList
());
}
return
ok
(
result
);
...
...
src/main/java/com/aps/service/common/ChromosomeDataService.java
View file @
a6d5f861
...
...
@@ -1755,6 +1755,10 @@ public class ChromosomeDataService {
// 检查是否是直接传入的EntityConfig(这种情况可能需要获取场景ID和实体类型)
// 实际上这个方法是在queryChromosomeDataList中调用的,此时数据已经从文件中获取
if
(
data
==
null
)
{
return
new
ArrayList
<>();
}
if
(
data
instanceof
List
)
{
List
<
Object
>
dataList
=
(
List
<
Object
>)
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment