fix (farm): 大屏-驾驶舱
- 修改package结构 - 修复bug
This commit is contained in:
@@ -31,4 +31,20 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getBaseStatisticsInfo"
|
||||
resultType="cn.iocoder.yudao.module.farm.controller.admin.digitalcockpit.vo.BaseStatisticsInfoRespVO">
|
||||
SELECT
|
||||
COALESCE(SUM(fbi.area), 0) as totalArea,
|
||||
COUNT(DISTINCT fbi.id) as totalBase,
|
||||
COUNT(DISTINCT fpi.id) as totalPlot
|
||||
FROM farm_base_info fbi
|
||||
LEFT JOIN farm_plot_info fpi ON fbi.id = fpi.base_id
|
||||
<where>
|
||||
fbi.deleted = b'0'
|
||||
<if test="baseId != null and baseId !=''">
|
||||
AND fbi.id = #{baseId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user