|
@@ -76,42 +76,6 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
private AnalyseUtilsDBService analyseUtilsDBService;
|
|
|
//**需要拿出来的逻辑**//
|
|
|
|
|
|
- // @Transactional(rollbackFor = Exception.class)
|
|
|
- // @Override
|
|
|
- // public RequestResult AddHgxfx(HgxfxEntityDTO hgxfxEntityDTO) throws IOException {
|
|
|
- // HgxfxDTO requestHgxfxDTO = DozerUtils.map(hgxfxEntityDTO, HgxfxDTO.class);
|
|
|
- // requestHgxfxDTO.setFxmj(hgxfxEntityDTO.getXzmj());
|
|
|
- // requestHgxfxDTO.setRwly("Web");
|
|
|
- // requestHgxfxDTO.setRwzt(0);
|
|
|
- // requestHgxfxDTO.setCjsj(new Date());
|
|
|
- // requestHgxfxDTO.setBsm(StringUtils.getUUID());
|
|
|
- // requestHgxfxDTO.setCjyh(SecurityUtils.getUsername());
|
|
|
- // // 将分析范围矢量数据插入到KJGH.T_FZSS_FXRW_GIS
|
|
|
- // RequestResult info = vector2Sde(hgxfxEntityDTO, requestHgxfxDTO);
|
|
|
- // if (info != null) {
|
|
|
- // return info;
|
|
|
- // }
|
|
|
- // // 查询审查项 默认把控制线级别等于0的也添加进去
|
|
|
- // QueryWrapper<HgxfxScxDTO> wrapper = new QueryWrapper<HgxfxScxDTO>();
|
|
|
- // wrapper.eq("kzxjb", 0).or().in("bsm", hgxfxEntityDTO.getScxs().split(",")).orderByAsc("xssx");
|
|
|
- // List<HgxfxScxDTO> res = hgxfxScxMapper.selectList(wrapper);
|
|
|
- // if (res.size() > 0) {
|
|
|
- // // 插入审查项列表
|
|
|
- // for (HgxfxScxDTO cur : res) {
|
|
|
- // HgxfxHgscxDTO scx = new HgxfxHgscxDTO();
|
|
|
- // scx.setBsm(StringUtils.getUUID());
|
|
|
- // scx.setRwbsm(requestHgxfxDTO.getBsm());
|
|
|
- // scx.setScxbsm(cur.getBsm());
|
|
|
- // scx.setYsmc(cur.getYsmc());
|
|
|
- // hgxfxHgscxMapper.insert(scx);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // 插入合规性检查表 并返回任务标识码
|
|
|
- // hgxfxMapper.insert(requestHgxfxDTO);
|
|
|
- // return RequestResult.success("保存成功!", requestHgxfxDTO.getBsm());
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 保存选址参数
|
|
|
*
|
|
@@ -137,8 +101,8 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
factorUseDTO.setTaskId(fzxzDTO.getBsm());
|
|
|
|
|
|
// 因子空间条件
|
|
|
- FactorSpatialVo factorSpatialVo = JsonUtils.toObject(factorUseDTO.getConditionInfo(), FactorSpatialVo.class);
|
|
|
- factorUseDTO.setConditionObj(factorSpatialVo);
|
|
|
+ String factorSpatialVo = JsonUtils.toJson(factorUseDTO.getConditionInfoObj());
|
|
|
+ factorUseDTO.setConditionInfoStr(factorSpatialVo);
|
|
|
}
|
|
|
|
|
|
// 存储规划任务
|
|
@@ -195,8 +159,8 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
|
|
|
// TODO 数据源
|
|
|
String sjyName = "";
|
|
|
- fzxzDTO.setSjy("TB_GHDK");
|
|
|
- if (fzxzDTO.getSjy() == "TB_GHDK") {
|
|
|
+ fzxzDTO.setSjy("TB_GHDK_SITUATION");
|
|
|
+ if (fzxzDTO.getSjy() == "TB_GHDK_SITUATION") {
|
|
|
sjyName = "规划地块";
|
|
|
}
|
|
|
|
|
@@ -312,7 +276,7 @@ public class FzssServiceImpl implements IFzssService {
|
|
|
// TODO 重构
|
|
|
private String factorClip(String taskId, String rawTable, List<FactorUseDTO> factorUseDTOS, String ewkt) {
|
|
|
for (FactorUseDTO factorUseDTO : factorUseDTOS) {
|
|
|
- FactorSpatialVo factorSpatialVo = factorUseDTO.getConditionObj();
|
|
|
+ FactorSpatialVo factorSpatialVo = factorUseDTO.getConditionInfoObj();
|
|
|
if (factorSpatialVo.equals("intersect")) {
|
|
|
// 1.先切割因子地块
|
|
|
String calculateEwkt = getFactorEwkt(factorUseDTO.getFactorBsm(), ewkt, factorSpatialVo.getDefaultValue(), 0);
|