|
@@ -6,6 +6,7 @@ import com.onemap.apply.mapper.fzss.*;
|
|
import com.onemap.apply.service.fzss.IHgxfxService;
|
|
import com.onemap.apply.service.fzss.IHgxfxService;
|
|
import com.onemap.apply.service.impl.fzss.hgxfxjg.HgxfxHandleService;
|
|
import com.onemap.apply.service.impl.fzss.hgxfxjg.HgxfxHandleService;
|
|
import com.onemap.apply.service.impl.fzss.hgxfxjg.HgxfxJgService;
|
|
import com.onemap.apply.service.impl.fzss.hgxfxjg.HgxfxJgService;
|
|
|
|
+import com.onemap.apply.utils.FixedThreadUtil;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.system.api.AnalyseService;
|
|
import com.onemap.system.api.AnalyseService;
|
|
@@ -96,7 +97,7 @@ public class HgxfxServiceImpl implements IHgxfxService {
|
|
if (StringUtils.isEmpty(xzfw)) {
|
|
if (StringUtils.isEmpty(xzfw)) {
|
|
return RequestResult.error("选址范围参数为空");
|
|
return RequestResult.error("选址范围参数为空");
|
|
}
|
|
}
|
|
- Double area = Double.valueOf( xzfw.get("area").toString());
|
|
+ Double area = Double.valueOf(xzfw.get("area").toString());
|
|
String ewkt = (String) xzfw.get("geom");
|
|
String ewkt = (String) xzfw.get("geom");
|
|
if (StringUtils.isEmpty(ewkt)) {
|
|
if (StringUtils.isEmpty(ewkt)) {
|
|
return RequestResult.error("选址范围参数为空");
|
|
return RequestResult.error("选址范围参数为空");
|
|
@@ -118,8 +119,9 @@ public class HgxfxServiceImpl implements IHgxfxService {
|
|
scxRw.setBsm(StringUtils.getUUID());
|
|
scxRw.setBsm(StringUtils.getUUID());
|
|
hgxfxScxRwMapper.insert(scxRw);
|
|
hgxfxScxRwMapper.insert(scxRw);
|
|
}
|
|
}
|
|
-
|
|
+ FixedThreadUtil.FIXED_THREAD_POOL.execute(() -> {
|
|
- hxfxHandleService.hgxfxHandle(hgxfxDTO.getBsm(), ewkt);
|
|
+ hxfxHandleService.hgxfxHandle(hgxfxDTO.getBsm(), ewkt);
|
|
|
|
+ });
|
|
return RequestResult.success(hgxfxDTO.getBsm());
|
|
return RequestResult.success(hgxfxDTO.getBsm());
|
|
}
|
|
}
|
|
|
|
|