| | |
| | | return R.data(landService.selectLandList(userid)); |
| | | } |
| | | |
| | | /** |
| | | * 获取采收地块列表 |
| | | */ |
| | | @GetMapping("/selectRecoveryLandList") |
| | | public R selectRecoveryLandList(String farmId){return R.data(landService.selectRecoveryLandList(farmId));} |
| | | |
| | | /** |
| | | * 地块列表(不分页) |
| | |
| | | List<Land> getByStrainIdFarmId(@Param("land")LandVO land); |
| | | |
| | | List<LandVO> findPlantInLand(String ids); |
| | | |
| | | List<LandVO> selectRecoveryLandList(@Param("farmId") String farmId); |
| | | } |
| | |
| | | WHERE land.is_deleted = 0 AND sfp.status = 1 |
| | | AND land.id = #{ids} |
| | | </select> |
| | | <select id="selectRecoveryLandList" resultType="org.springblade.modules.lang.vo.LandVO"> |
| | | SELECT |
| | | l.id,l.land_name AS landName |
| | | FROM |
| | | sys_recovery r |
| | | LEFT JOIN sys_land l ON r.land_id = l.id |
| | | WHERE l.is_deleted = 0 |
| | | <if test="farmId !=null and farmId !=''"> |
| | | AND r.dept_id = #{farmId} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | List<Land> getByStrainIdFarmId(LandVO land); |
| | | |
| | | List<LandVO> findPlantInLand(String ids); |
| | | |
| | | List<LandVO> selectRecoveryLandList(String farmId); |
| | | } |
| | |
| | | public List<LandVO> findPlantInLand(String ids) { |
| | | return baseMapper.findPlantInLand(ids); |
| | | } |
| | | |
| | | @Override |
| | | public List<LandVO> selectRecoveryLandList(String farmId) { |
| | | return baseMapper.selectRecoveryLandList(farmId); |
| | | } |
| | | } |
| | |
| | | </if> |
| | | <if test="recovery.farmId != null and recovery.farmId != ''"> |
| | | and sl.farm_id = #{recovery.farmId} |
| | | and sr.dept_id = #{recovery.farmId} |
| | | </if> |
| | | <if test="recovery.tenantId!=null and recovery.tenantId!=''"> |
| | | and sr.tenant_id = #{recovery.tenantId} |