Skip to content

Commit 3c66527

Browse files
committed
fix: Component and component library mapper
1 parent 898e66d commit 3c66527

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

base/src/main/resources/mappers/ComponentLibraryMapper.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
C.site_id AS componentSiteId
274274
FROM t_component_library CL
275275
LEFT JOIN t_component C ON CL.id = C.library_id
276+
WHERE CL.is_default = false
276277

277278
</select>
278279

base/src/main/resources/mappers/ComponentMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
<select id="findUserComponentsByMaterialHistoryId" resultMap="ComponentMap">
268268
SELECT C.*
269269
FROM t_component C
270-
JOIN r_material_history_component MHC ON C.id = MHC.`component_id`
270+
JOIN r_material_history_component MHC ON C.id = MHC.`component_id` AND C.is_official = true
271271
WHERE MHC.`material_history_id` = #{id}
272272
</select>
273273

0 commit comments

Comments
 (0)