|
@@ -1,15 +1,17 @@
|
|
|
package com.onemap.apply.service.impl.tdgy;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
+import com.github.dozermapper.core.DozerBeanMapper;
|
|
|
import com.onemap.apply.domain.tdgy.dto.LandIdleConfirmDTO;
|
|
|
import com.onemap.apply.domain.tdgy.dto.LandIdleDisposalDTO;
|
|
|
import com.onemap.apply.domain.tdgy.vo.LandIdleConfirmVo;
|
|
|
import com.onemap.apply.domain.tdgy.vo.LandIdleDisposalVo;
|
|
|
import com.onemap.apply.mapper.tdgy.LandIdleConfirmMapper;
|
|
|
import com.onemap.apply.mapper.tdgy.LandIdleDisposalMapper;
|
|
|
+import com.onemap.apply.utils.DozerUtils;
|
|
|
import com.onemap.common.core.utils.uuid.IdUtils;
|
|
|
import com.onemap.common.datasource.annotation.Master;
|
|
|
-import org.dozer.DozerBeanMapper;
|
|
|
+
|
|
|
import com.onemap.apply.domain.tdgy.dto.TdgySjDTO;
|
|
|
import com.onemap.apply.domain.tdgy.res.TdgySjRes;
|
|
|
import com.onemap.apply.domain.tdgy.vo.UpdateTdgyVo;
|
|
@@ -17,6 +19,7 @@ import com.onemap.apply.mapper.tdgy.TdgyMapper;
|
|
|
import com.onemap.apply.service.tdgy.TdgyService;
|
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
|
import com.onemap.common.datasource.annotation.Slave;
|
|
|
+
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -28,8 +31,8 @@ import java.util.Map;
|
|
|
*/
|
|
|
@Service
|
|
|
public class TdgyServiceImp implements TdgyService {
|
|
|
- @Resource
|
|
|
- DozerBeanMapper dozerMapper;
|
|
|
+ // @Resource
|
|
|
+ // DozerBeanMapper dozerMapper = new DozerBeanMapper();
|
|
|
|
|
|
@Resource
|
|
|
private TdgyMapper tdgyMapper;
|
|
@@ -87,8 +90,8 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
if (tdgySjDTO == null) {
|
|
|
return RequestResult.error("地块不存在");
|
|
|
}
|
|
|
-
|
|
|
- TdgySjRes tdgySjRes = dozerMapper.map(tdgySjDTO, TdgySjRes.class);
|
|
|
+ TdgySjRes tdgySjRes = new TdgySjRes();
|
|
|
+ DozerUtils.map(tdgySjDTO, tdgySjRes);
|
|
|
return RequestResult.success(tdgySjRes);
|
|
|
}
|
|
|
|
|
@@ -109,7 +112,7 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 添加闲置土地认定
|
|
|
+ * 添加闲置土地判定
|
|
|
*
|
|
|
* @param landIdleConfirmVo
|
|
|
* @return
|
|
@@ -126,7 +129,7 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
|
|
|
// 添加认定信息
|
|
|
landIdleConfirmDTO = new LandIdleConfirmDTO();
|
|
|
- dozerMapper.map(landIdleConfirmVo, landIdleConfirmDTO);
|
|
|
+ DozerUtils.map(landIdleConfirmVo, landIdleConfirmDTO);
|
|
|
|
|
|
String uuid = IdUtils.simpleUUID();
|
|
|
landIdleConfirmDTO.setId(uuid);
|
|
@@ -150,7 +153,8 @@ public class TdgyServiceImp implements TdgyService {
|
|
|
}
|
|
|
// 添加处置信息
|
|
|
landIdleDisposalDTO = new LandIdleDisposalDTO();
|
|
|
- dozerMapper.map(landIdleDisposalVo, landIdleDisposalDTO);
|
|
|
+ DozerUtils.map(landIdleDisposalVo, landIdleDisposalDTO);
|
|
|
+
|
|
|
String uuid = IdUtils.simpleUUID();
|
|
|
landIdleDisposalDTO.setId(uuid);
|
|
|
landIdleDisposalMapper.insert(landIdleDisposalDTO);
|