Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b97583e
fix: update page history bug
lu-yg Dec 26, 2024
d30877c
fix: format code and fix style issue
lu-yg Jan 7, 2025
33316bf
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 7, 2025
7fc6507
fix: modify page histiry entity
lu-yg Jan 7, 2025
64be7b4
Merge branch 'opentiny:develop' into develop
lu-yg Jan 9, 2025
24474b8
feat: add code submission rules
lu-yg Jan 9, 2025
9745b66
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 9, 2025
239c624
Merge branch 'opentiny:develop' into develop
lu-yg Jan 9, 2025
b77f2f4
fix: modify app schema for test
lu-yg Jan 9, 2025
feeb8f7
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 9, 2025
7d52937
fix: modify block group
lu-yg Jan 22, 2025
6559bec
fix: modify t_i18n_entry u_idx_i18n_entity
lu-yg Jan 22, 2025
2a7fc44
Merge branch 'opentiny:develop' into develop
lu-yg Jan 22, 2025
656a4a1
fix: modify t_i18n_entry u_idx_i18n_entity
lu-yg Jan 22, 2025
9de10c5
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 22, 2025
e9aa592
fix: modify block update api
lu-yg Jan 23, 2025
aff95bb
Merge branch 'opentiny:develop' into develop
lu-yg Jan 23, 2025
02607e4
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 23, 2025
ed7483d
fix: Modify code format
lu-yg Jan 23, 2025
48267d6
fix: Modify code format
lu-yg Jan 23, 2025
cabb309
fix: Modify code format
lu-yg Jan 23, 2025
83cb48a
fix: Modify code format
lu-yg Jan 24, 2025
486944b
fix: Modify code format
lu-yg Jan 24, 2025
751f331
Merge branch 'opentiny:develop' into develop
lu-yg Jan 26, 2025
48645e1
fix: modify block group api
lu-yg Jan 26, 2025
d2f2406
fix: modify block group mapper
lu-yg Jan 26, 2025
e24d0ec
Merge branch 'develop' of github.com:lu-yg/tiny-engine-backend-java i…
lu-yg Jan 26, 2025
ee8219f
fix: modify workflows
lu-yg Jan 26, 2025
efad29b
fix: Update checkstyle.yml
lu-yg Jan 26, 2025
6868add
fix: modify workflows
lu-yg Jan 26, 2025
2e131ff
fix: Modify block create and update api
lu-yg Jan 27, 2025
9c1225a
Merge branch 'opentiny:develop' into develop
lu-yg Jan 27, 2025
8cc8ca5
fix: Modify code format
lu-yg Jan 27, 2025
4ba0818
fix: Modify code format
lu-yg Jan 27, 2025
6d978f1
fix: Modify block group
lu-yg Feb 6, 2025
b3f35a0
fix: Modify block group
lu-yg Feb 6, 2025
9717200
fix: Modify block group
lu-yg Feb 6, 2025
e757b29
fix: Modify block group
lu-yg Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public List<BlockGroup> getBlockGroupByIdsOrAppId(List<Integer> ids, Integer app
blockGroupsListResult = blockGroupMapper.queryAllBlockGroupAndBlock( blockCreatedBy, groupCreatedBy);
}

if (blockGroupsListResult.isEmpty()) {
if (blockGroupsListResult.isEmpty() || blockGroupsListResult.get(0).getId() == null) {
return blockGroupsListResult;
}
// 对查询的结果的区块赋值current_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ public Result<BlockDto> deploy(BlockBuildDto blockBuildDto) {
blockParam.setLatestVersion(blockHistory.getVersion());
blockParam.setId(blockDto.getId());
blockParam.setGroups(null);

return updateBlockById(blockParam, blockDto.getAppId());
} catch (Exception e) {
return Result.failed(ExceptionEnum.CM001);
Expand Down
43 changes: 25 additions & 18 deletions base/src/main/resources/mappers/BlockGroupMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,14 @@
r_block_group_block rbg ON rbg.block_group_id = bg.id
LEFT JOIN
t_block b ON b.id = rbg.block_id
<if test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</if>
<if test="blockCreatedBy == null">
AND b.last_build_info is not null and b.content is not null and b.assets is not null
</if>
<choose>
<when test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</when>
<otherwise>
AND b.last_build_info is not null and b.content is not null
</otherwise>
</choose>
<where>
<if test="groupCreatedBy != null">
AND bg.created_by = #{groupCreatedBy}
Expand Down Expand Up @@ -246,12 +248,14 @@
r_block_group_block rbg ON rbg.block_group_id = bg.id
LEFT JOIN
t_block b ON b.id = rbg.block_id
<if test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</if>
<if test="blockCreatedBy == null">
AND b.last_build_info is not null and b.content is not null and b.assets is not null
</if>
<choose>
<when test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</when>
<otherwise>
AND b.last_build_info is not null and b.content is not null
</otherwise>
</choose>
<where>
<if test="appId != null">
AND bg.app_id = #{appId}
Expand Down Expand Up @@ -311,12 +315,14 @@
r_block_group_block rbg ON rbg.block_group_id = bg.id
LEFT JOIN
t_block b ON b.id = rbg.block_id
<if test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</if>
<if test="blockCreatedBy == null">
AND b.last_build_info is not null and b.content is not null and b.assets is not null
</if>
<choose>
<when test="blockCreatedBy != null">
AND b.created_by = #{blockCreatedBy}
</when>
<otherwise>
AND b.last_build_info is not null and b.content is not null
</otherwise>
</choose>
<where>
<if test="id != null">
AND bg.id = #{id}
Expand All @@ -327,6 +333,7 @@
</where>
</select>


<!-- 根据条件查询表t_block_group数据 -->
<select id="queryBlockGroupByCondition" resultMap="BlockGroupMap">
SELECT
Expand Down
Loading