feat (farm): 农事记录,生产计划

- 基地统计信息
- 增加 实际产量字段
This commit is contained in:
达富斌
2025-09-03 15:26:49 +08:00
parent 024249f524
commit 7b904663e9
14 changed files with 154 additions and 14 deletions

View File

@@ -15,4 +15,17 @@
where tenant_id = #{tenantId}
and deleted = 0
</select>
<select id="getTotalBaseArea" resultType="java.math.BigDecimal">
SELECT
SUM(area) AS total_area
FROM
farm_base_info
<where>
deleted = b'0'
<if test="id != null and id != ''">
AND id = #{id}
</if>
</where>
</select>
</mapper>