|
@@ -137,16 +137,16 @@ public class TdgyServiceImp implements TdgyService {
|
|
*/
|
|
*/
|
|
@Master
|
|
@Master
|
|
@Override
|
|
@Override
|
|
|
|
+ @Transactional
|
|
public RequestResult addIdleLandConfirm(LandIdleConfirmVo landIdleConfirmVo) {
|
|
public RequestResult addIdleLandConfirm(LandIdleConfirmVo landIdleConfirmVo) {
|
|
String landId = landIdleConfirmVo.getLandId();
|
|
String landId = landIdleConfirmVo.getLandId();
|
|
- // 查询认定信息是否存在
|
|
|
|
- LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectById(landId);
|
|
|
|
- if (landIdleConfirmDTO != null) {
|
|
|
|
- return RequestResult.error("认定信息已存在");
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ // 根据landId删除处置信息
|
|
|
|
+ Wrapper<LandIdleConfirmDTO> wrapper = new UpdateWrapper<LandIdleConfirmDTO>().eq("land_id", landId);
|
|
|
|
+ landIdleConfirmMapper.delete(wrapper);
|
|
|
|
|
|
// 添加认定信息
|
|
// 添加认定信息
|
|
- landIdleConfirmDTO = new LandIdleConfirmDTO();
|
|
|
|
|
|
+ LandIdleConfirmDTO landIdleConfirmDTO = new LandIdleConfirmDTO();
|
|
DozerUtils.map(landIdleConfirmVo, landIdleConfirmDTO);
|
|
DozerUtils.map(landIdleConfirmVo, landIdleConfirmDTO);
|
|
|
|
|
|
String uuid = IdUtils.simpleUUID();
|
|
String uuid = IdUtils.simpleUUID();
|
|
@@ -155,6 +155,19 @@ public class TdgyServiceImp implements TdgyService {
|
|
return RequestResult.success();
|
|
return RequestResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取闲置土地判定详情
|
|
|
|
+ *
|
|
|
|
+ * @param landId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public RequestResult getIdleLandConfirm(String landId) {
|
|
|
|
+ // 根据landId查询判定信息
|
|
|
|
+ LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectOne(new UpdateWrapper<LandIdleConfirmDTO>().eq("land_id", landId));
|
|
|
|
+ return RequestResult.success(landIdleConfirmDTO);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取闲置土地
|
|
* 获取闲置土地
|
|
*/
|
|
*/
|
|
@@ -204,7 +217,9 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
|
|
|
// 根据landId更新表t_land_idle_confirm的is_disposal字段
|
|
// 根据landId更新表t_land_idle_confirm的is_disposal字段
|
|
if (landIdleDisposalDTO.getDisposalTime() != null) {
|
|
if (landIdleDisposalDTO.getDisposalTime() != null) {
|
|
- LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectById(landId);
|
|
|
|
|
|
+ Wrapper<LandIdleConfirmDTO> wrapperConfirm = new UpdateWrapper<LandIdleConfirmDTO>().eq("land_id", landId);
|
|
|
|
+
|
|
|
|
+ LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectOne(wrapperConfirm);
|
|
landIdleConfirmDTO.setIsDisposal(true);
|
|
landIdleConfirmDTO.setIsDisposal(true);
|
|
landIdleConfirmMapper.updateById(landIdleConfirmDTO);
|
|
landIdleConfirmMapper.updateById(landIdleConfirmDTO);
|
|
}
|
|
}
|
|
@@ -222,16 +237,5 @@ public class TdgyServiceImp implements TdgyService {
|
|
return RequestResult.success(landIdleDisposalDTO);
|
|
return RequestResult.success(landIdleDisposalDTO);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 获取闲置土地判定详情
|
|
|
|
- *
|
|
|
|
- * @param landId
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- @Override
|
|
|
|
- public RequestResult getIdleLandConfirm(String landId) {
|
|
|
|
- // 根据landId查询判定信息
|
|
|
|
- LandIdleConfirmDTO landIdleConfirmDTO = landIdleConfirmMapper.selectOne(new UpdateWrapper<LandIdleConfirmDTO>().eq("land_id", landId));
|
|
|
|
- return RequestResult.success(landIdleConfirmDTO);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|