fix (farm): 租户初始化

- 初始化数据null异常
This commit is contained in:
达富斌
2025-09-21 20:58:46 +08:00
parent 62d8c25f6f
commit 63b9c8f4f1
6 changed files with 14 additions and 14 deletions

View File

@@ -10,7 +10,8 @@
-->
<select id="selectSum" parameterType="Long" resultType="java.lang.Long">
select sum(quote_count)
select
COALESCE(sum(quote_count),0)
from farm_model_management
where tenant_id = #{tenantId}
and deleted = 0