|
@@ -13,6 +13,7 @@ import com.onemap.apply.domain.gdbh.TUploadGeomDTO;
|
|
|
import com.onemap.apply.domain.gdbh.TUploadGeomDetailsDTO;
|
|
|
import com.onemap.apply.mapper.gdbh.TGdbhJctbFileMapper;
|
|
|
import com.onemap.apply.service.gdbh.ITGdbhJctbService;
|
|
|
+import com.onemap.apply.utils.LandTypeReader;
|
|
|
import com.onemap.common.core.utils.DateUtils;
|
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
@@ -51,7 +52,21 @@ public class TGdbhJctbServiceImpl implements ITGdbhJctbService {
|
|
|
*/
|
|
|
@Override
|
|
|
public TGdbhJctb selectTGdbhJctbById(String id) {
|
|
|
- return tGdbhJctbMapper.selectTGdbhJctbById(id);
|
|
|
+ TGdbhJctb tGdbhJctb = tGdbhJctbMapper.selectTGdbhJctbById(id);
|
|
|
+ if (tGdbhJctb != null) {
|
|
|
+ // 获取土地类型数据
|
|
|
+ Map<String, Map<String, String>> landTypeMap = LandTypeReader.INSTANCE.readLandTypeJson();
|
|
|
+ // 解析土地类型
|
|
|
+ String qlx = tGdbhJctb.getQlx();
|
|
|
+ if (StringUtils.isNotEmpty(qlx) && landTypeMap.get("qlx").containsKey(qlx)) {
|
|
|
+ tGdbhJctb.setQlx(landTypeMap.get("qlx").get(qlx));
|
|
|
+ }
|
|
|
+ String hlx = tGdbhJctb.getHlx();
|
|
|
+ if (StringUtils.isNotEmpty(hlx) && landTypeMap.get("hlx").containsKey(hlx)) {
|
|
|
+ tGdbhJctb.setHlx(landTypeMap.get("hlx").get(hlx));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return tGdbhJctb;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -67,6 +82,7 @@ public class TGdbhJctbServiceImpl implements ITGdbhJctbService {
|
|
|
|
|
|
/**
|
|
|
* 查询耕地保护-检测图标数据空间列表
|
|
|
+ *
|
|
|
* @param tGdbhJctb
|
|
|
* @return
|
|
|
*/
|