farm模块-模型统计

This commit is contained in:
顾君禹
2025-08-27 17:26:58 +08:00
parent 83a2828d0d
commit bd77157fe2
5 changed files with 45 additions and 6 deletions

View File

@@ -9,4 +9,16 @@
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="selectSum" parameterType="Long" resultType="java.lang.Long">
select sum(quote_count)
from farm_model_management
where tenant_id = #{tenantId}
and deleted = 0
</select>
<select id="selectCountBySpecies" parameterType="Long" resultType="java.lang.Long">
select count(distinct species_id)
from farm_model_management
where tenant_id = #{tenantId}
and deleted = 0
</select>
</mapper>