We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 898e66d commit 3c66527Copy full SHA for 3c66527
base/src/main/resources/mappers/ComponentLibraryMapper.xml
@@ -273,6 +273,7 @@
273
C.site_id AS componentSiteId
274
FROM t_component_library CL
275
LEFT JOIN t_component C ON CL.id = C.library_id
276
+ WHERE CL.is_default = false
277
278
</select>
279
base/src/main/resources/mappers/ComponentMapper.xml
@@ -267,7 +267,7 @@
267
<select id="findUserComponentsByMaterialHistoryId" resultMap="ComponentMap">
268
SELECT C.*
269
FROM t_component C
270
- JOIN r_material_history_component MHC ON C.id = MHC.`component_id`
+ JOIN r_material_history_component MHC ON C.id = MHC.`component_id` AND C.is_official = true
271
WHERE MHC.`material_history_id` = #{id}
272
0 commit comments