| | |
| | | SELECT IFNULL(land_area, 0) as area, IFNULL(land_unit, 0) as unit FROM sys_land |
| | | WHERE is_deleted = 0 |
| | | <if test="land.farmId!= null and land.farmId!=''"> |
| | | and sl.farm_id=#{land.farmId} |
| | | and farm_id=#{land.farmId} |
| | | </if> |
| | | <if test="land.deptId!= null and land.deptId!=''"> |
| | | and sl.dept_id=#{land.deptId} |
| | | and dept_id=#{land.deptId} |
| | | </if> |
| | | </select> |
| | | <!--土地使用面积--> |
| | |
| | | WHERE is_deleted = 0 |
| | | and type = 0 |
| | | <if test="land.farmId!= null and land.farmId!=''"> |
| | | and sl.farm_id=#{land.farmId} |
| | | and farm_id=#{land.farmId} |
| | | </if> |
| | | <if test="land.deptId!= null and land.deptId!=''"> |
| | | and sl.dept_id=#{land.deptId} |
| | | and dept_id=#{land.deptId} |
| | | </if> |
| | | </select> |
| | | <!--土地未使用面积--> |
| | |
| | | WHERE is_deleted = 0 |
| | | and type = 1 |
| | | <if test="land.farmId!= null and land.farmId!=''"> |
| | | and sl.farm_id=#{land.farmId} |
| | | and farm_id=#{land.farmId} |
| | | </if> |
| | | <if test="land.deptId!= null and land.deptId!=''"> |
| | | and sl.dept_id=#{land.deptId} |
| | | and dept_id=#{land.deptId} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | and sl.farm_id=#{land.farmId} |
| | | </if> |
| | | <if test="land.deptId!= null and land.deptId!=''"> |
| | | and sl.dept_id=#{land.deptId} |
| | | and sfp.dept_id=#{land.deptId} |
| | | </if> |
| | | GROUP BY sfp.strain_id |
| | | </select> |