Skip to content

Commit 9717200

Browse files
committed
fix: Modify block group
1 parent b3f35a0 commit 9717200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/src/main/java/com/tinyengine/it/service/material/impl/BlockGroupServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public List<BlockGroup> getBlockGroupByIdsOrAppId(List<Integer> ids, Integer app
183183
blockGroupsListResult = blockGroupMapper.queryAllBlockGroupAndBlock( blockCreatedBy, groupCreatedBy);
184184
}
185185

186-
if (blockGroupsListResult.get(0).getId() == null) {
186+
if (blockGroupsListResult.isEmpty() || blockGroupsListResult.get(0).getId() == null) {
187187
return blockGroupsListResult;
188188
}
189189
// 对查询的结果的区块赋值current_version

0 commit comments

Comments
 (0)