feat (farm): 农事记录,生产计划
- 基地统计信息 - 增加 实际产量字段
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user