|  | @@ -102,7 +102,6 @@ public class TdgyServiceImp implements TdgyService {
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public RequestResult getTdgyDetail(Integer id) {
 |  |      public RequestResult getTdgyDetail(Integer id) {
 | 
											
												
													
														|  |          // DozerBeanMapper mapper = new DozerBeanMapper();
 |  |          // DozerBeanMapper mapper = new DozerBeanMapper();
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |          TdgySjDTO tdgySjDTO = tdgyMapper.selectById(id);
 |  |          TdgySjDTO tdgySjDTO = tdgyMapper.selectById(id);
 | 
											
												
													
														|  |          if (tdgySjDTO == null) {
 |  |          if (tdgySjDTO == null) {
 | 
											
												
													
														|  |              return RequestResult.error("地块不存在");
 |  |              return RequestResult.error("地块不存在");
 | 
											
										
											
												
													
														|  | @@ -159,6 +158,29 @@ public class TdgyServiceImp implements TdgyService {
 | 
											
												
													
														|  |          return RequestResult.success();
 |  |          return RequestResult.success();
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    /**
 | 
											
												
													
														|  | 
 |  | +     * 获取闲置土地
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    @Override
 | 
											
												
													
														|  | 
 |  | +    public RequestResult idleLandList(IdleLandListVo idleLandListVo) {
 | 
											
												
													
														|  | 
 |  | +        if (idleLandListVo.getPageSize() == null) {
 | 
											
												
													
														|  | 
 |  | +            idleLandListVo.setPageSize(20);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        if (idleLandListVo.getPageNum() == null) {
 | 
											
												
													
														|  | 
 |  | +            idleLandListVo.setPageNum(1);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        idleLandListVo.setLimit(idleLandListVo.getPageSize());
 | 
											
												
													
														|  | 
 |  | +        idleLandListVo.setOffset((idleLandListVo.getPageNum() - 1) * idleLandListVo.getPageSize());
 | 
											
												
													
														|  | 
 |  | +        List<Map> mapList = landIdleConfirmMapper.getIdleLandList(idleLandListVo);
 | 
											
												
													
														|  | 
 |  | +        Integer count = landIdleConfirmMapper.getIdleLandListCount(idleLandListVo);
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        Map<String, Object> map = new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +        map.put("list", mapList);
 | 
											
												
													
														|  | 
 |  | +        map.put("count", count);
 | 
											
												
													
														|  | 
 |  | +        return RequestResult.success(map);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      /**
 |  |      /**
 | 
											
												
													
														|  |       * 添加闲置土地处置
 |  |       * 添加闲置土地处置
 | 
											
												
													
														|  |       *
 |  |       *
 | 
											
										
											
												
													
														|  | @@ -182,33 +204,23 @@ public class TdgyServiceImp implements TdgyService {
 | 
											
												
													
														|  |          landIdleDisposalMapper.insert(landIdleDisposalDTO);
 |  |          landIdleDisposalMapper.insert(landIdleDisposalDTO);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          // 根据landId更新表t_land_idle_confirm的is_disposal字段
 |  |          // 根据landId更新表t_land_idle_confirm的is_disposal字段
 | 
											
												
													
														|  | -        LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectById(landId);
 |  | 
 | 
											
												
													
														|  | -        landIdleConfirmDTO.setIsDisposal(true);
 |  | 
 | 
											
												
													
														|  | -        landIdleConfirmMapper.updateById(landIdleConfirmDTO);
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (landIdleDisposalDTO.getDisposalTime() != null) {
 | 
											
												
													
														|  | 
 |  | +            LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectById(landId);
 | 
											
												
													
														|  | 
 |  | +            landIdleConfirmDTO.setIsDisposal(true);
 | 
											
												
													
														|  | 
 |  | +            landIdleConfirmMapper.updateById(landIdleConfirmDTO);
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          return RequestResult.success();
 |  |          return RequestResult.success();
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      /**
 |  |      /**
 | 
											
												
													
														|  | -     * 获取闲置土地
 |  | 
 | 
											
												
													
														|  | 
 |  | +     * 获取闲置土地处置详情
 | 
											
												
													
														|  |       */
 |  |       */
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  | -    public RequestResult idleLandList(IdleLandListVo idleLandListVo) {
 |  | 
 | 
											
												
													
														|  | -        if (idleLandListVo.getPageSize() == null) {
 |  | 
 | 
											
												
													
														|  | -            idleLandListVo.setPageSize(20);
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | -        if (idleLandListVo.getPageNum() == null) {
 |  | 
 | 
											
												
													
														|  | -            idleLandListVo.setPageNum(1);
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        idleLandListVo.setLimit(idleLandListVo.getPageSize());
 |  | 
 | 
											
												
													
														|  | -        idleLandListVo.setOffset((idleLandListVo.getPageNum() - 1) * idleLandListVo.getPageSize());
 |  | 
 | 
											
												
													
														|  | -        List<Map> mapList = landIdleConfirmMapper.getIdleLandList(idleLandListVo);
 |  | 
 | 
											
												
													
														|  | -        Integer count = landIdleConfirmMapper.getIdleLandListCount(idleLandListVo);
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        Map<String, Object> map = new HashMap<>();
 |  | 
 | 
											
												
													
														|  | -        map.put("list", mapList);
 |  | 
 | 
											
												
													
														|  | -        map.put("count", count);
 |  | 
 | 
											
												
													
														|  | -        return RequestResult.success(map);
 |  | 
 | 
											
												
													
														|  | 
 |  | +    public RequestResult getIdleLandDisposal(String landId) {
 | 
											
												
													
														|  | 
 |  | +        // 根据landId查询处置信息
 | 
											
												
													
														|  | 
 |  | +        LandIdleDisposalDTO landIdleDisposalDTO = landIdleDisposalMapper
 | 
											
												
													
														|  | 
 |  | +                .selectOne(new UpdateWrapper<LandIdleDisposalDTO>().eq("land_id", landId));
 | 
											
												
													
														|  | 
 |  | +        return RequestResult.success(landIdleDisposalDTO);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  }
 |  |  }
 |