| | |
| | | |
| | | <!--查询统计地块是否有轮廓--> |
| | | <select id="getLandIsAreaStatistic" resultType="java.lang.Integer"> |
| | | SELECT count(*) FROM sys_land where land_range is not null |
| | | SELECT count(*) FROM sys_land where land_range is not null AND sys_land.is_deleted = 0 |
| | | <if test="land.farmId!= null and land.farmId!=''"> |
| | | and farm_id=#{land.farmId} |
| | | </if> |
| | |
| | | and dept_id=#{land.deptId} |
| | | </if> |
| | | union all |
| | | SELECT count(*) FROM sys_land where land_range is null |
| | | SELECT count(*) FROM sys_land where land_range is null AND sys_land.is_deleted = 0 |
| | | <if test="land.farmId!= null and land.farmId!=''"> |
| | | and farm_id=#{land.farmId} |
| | | </if> |