智慧农业后台管理
tangzy
2022-06-14 1976d790db5d2230e0e74662701b71b6740b3b20
src/main/java/org/springblade/modules/lang/mapper/LandMapper.xml
@@ -90,26 +90,26 @@
    <select id="selectZAre" resultType="java.util.HashMap">
        SELECT IFNULL(land_area, 0) as area, IFNULL(land_unit, 0) as unit
        FROM sys_land
        WHERE is_deleted = 0
        WHERE is_deleted = 0 and  dept_id=#{deprId}
    </select>
    <!--土地使用面积-->
    <select id="selectSAre" resultType="java.util.HashMap">
        SELECT IFNULL(land_area, 0) as area, IFNULL(land_unit, 0) as unit
        FROM sys_land
        WHERE is_deleted = 0
          and type = 0
          and type = 0 and  dept_id=#{deprId}
    </select>
    <!--土地未使用面积-->
    <select id="selectWAre" resultType="java.util.HashMap">
        SELECT IFNULL(land_area, 0) as area, IFNULL(land_unit, 0) as unit
        FROM sys_land
        WHERE is_deleted = 0
          and type = 1
          and type = 1 and  dept_id=#{deprId}
    </select>
    <select id="selectNum" resultType="java.util.HashMap">
        SELECT strain_id
        FROM `sys_farm_plant`
        WHERE status = 1
        WHERE status = 1 and dept_id=#{deprId}
        GROUP BY strain_id
    </select>