|
@@ -26,6 +26,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import com.onemap.common.datasource.annotation.Slave;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
import java.util.*;
|
|
|
|
|
@@ -50,7 +51,7 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
//**后写逻辑**//
|
|
|
@Autowired
|
|
|
GhdkaMapper ghdkaMapper;
|
|
|
-
|
|
|
+ // 空间范围记录
|
|
|
@Autowired
|
|
|
ShpFileMapper shpFileMapper;
|
|
|
// 辅助选址结果
|
|
@@ -134,7 +135,7 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
|
|
|
// 存储规划任务
|
|
|
fzxzDTO.setRwzt(Rwzt.getCreate());
|
|
|
- fzxzDTO.setCjyh(SecurityUtils.getUsername());
|
|
|
+ fzxzDTO.setUserId(SecurityUtils.getUserId());
|
|
|
|
|
|
fzxzCalc.setFzxzDTO(fzxzDTO);
|
|
|
fzxzCalc.setXzyxList(xzyxList);
|
|
@@ -320,6 +321,7 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
fzxzResDTO.setGeom((String) dkMap.get("geom"));
|
|
|
}
|
|
|
// TODO 设置土地价格
|
|
|
+ fzxzResDTO.setLandPrice(100.0);
|
|
|
fzxzResMapper.saveOne(fzxzResDTO);
|
|
|
}
|
|
|
}
|
|
@@ -345,6 +347,10 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
|
|
|
// 构建返回结果
|
|
|
FzxzResultDTO result = DozerUtils.map(fzxzinfo, FzxzResultDTO.class);
|
|
|
+ // 返回选址空间范围
|
|
|
+ String geomId = fzxzinfo.getGeomId();
|
|
|
+ GeomRes geomRes = shpFileMapper.getOne(geomId);
|
|
|
+ result.setGeom(geomRes.getGeom());
|
|
|
|
|
|
// 查询分析结果信息
|
|
|
List<FzxzResDTO> fzxzResDTOS = fzxzResMapper.getListByRwbsm(result.getBsm());
|
|
@@ -390,9 +396,16 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
|
|
|
@Override
|
|
|
public RequestResult GetXzResList(String startTime, String endTime, String name) {
|
|
|
- List<FzxzDTO> fzxzDTOS = fzxzMapper.getList(startTime, endTime, name);
|
|
|
+ Long userId = SecurityUtils.getUserId();
|
|
|
+ Map<String, Object> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("userId", userId);
|
|
|
+ paramMap.put("xmmc", name);
|
|
|
+ paramMap.put("startTime", startTime);
|
|
|
+ paramMap.put("endTime", endTime);
|
|
|
+
|
|
|
|
|
|
- return null;
|
|
|
+ List<FzxzDTO> fzxzDTOS = fzxzMapper.getList(paramMap);
|
|
|
+ return RequestResult.success("查询成功!", fzxzDTOS);
|
|
|
}
|
|
|
|
|
|
/**
|