Merge remote-tracking branch 'origin/main'

This commit is contained in:
顾君禹
2025-08-27 17:27:10 +08:00
8 changed files with 256 additions and 54 deletions

View File

@@ -9,4 +9,14 @@
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="getSpeciesCount" parameterType="Long" resultType="java.lang.Integer">
SELECT count(*)
FROM farm_species_library
<where>
deleted = 0
<if test="tenantId != null and tenantId !=''">AND tenant_id = #{tenantId}</if>
<if test="baseId != null and baseId !=''">AND base_id = #{baseId}</if>
</where>
</select>
</mapper>