|
|
@@ -1,9 +1,12 @@
|
|
|
package com.siwei.apply.service.third.impl;
|
|
|
|
|
|
import com.siwei.apply.domain.NodeAttachment;
|
|
|
+import com.siwei.apply.domain.NodeLand;
|
|
|
import com.siwei.apply.domain.ProjectWorkflow;
|
|
|
import com.siwei.apply.domain.vo.*;
|
|
|
import com.siwei.apply.enums.AloneWorkFlowEnum;
|
|
|
+import com.siwei.apply.mapper.NodeLandMapper;
|
|
|
+import com.siwei.apply.mapper.ProjectMapper;
|
|
|
import com.siwei.apply.mapper.ProjectWorkflowMapper;
|
|
|
import com.siwei.apply.service.GyjsydjfwscdjService;
|
|
|
import com.siwei.apply.service.GyjsydscdjService;
|
|
|
@@ -51,6 +54,13 @@ public class OfferDataServiceImpl implements OfferDataService {
|
|
|
@Autowired
|
|
|
private NodeLandService nodeLandService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ProjectMapper projectMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private NodeLandMapper nodeLandMapper;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public Map<String, String> get(String projectId) {
|
|
|
return Map.of();
|
|
|
@@ -61,14 +71,13 @@ public class OfferDataServiceImpl implements OfferDataService {
|
|
|
return Map.of();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 根据入参数据,多个取并集,获取项目的相关数据
|
|
|
* @param body
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, Object> landSupplyAndProjectList(ThirdProjectParamVo body) {
|
|
|
+ public List<Map<String, Object>> landSupplyAndProjectList(ThirdProjectParamVo body) {
|
|
|
/*
|
|
|
1.根据项目名称,项目代码,获取项目列表
|
|
|
2.根据srf,获取项目列表
|
|
|
@@ -77,27 +86,43 @@ public class OfferDataServiceImpl implements OfferDataService {
|
|
|
5.将以上四个列表取并集,返回结果
|
|
|
获取 1.项目与土地供应,两个表进行关联。
|
|
|
并且为上链的,并且数据已经存在的数据。
|
|
|
- */
|
|
|
|
|
|
+ -- geom相关信息,如何查询,通过交集的相关
|
|
|
+ SELECT pro."name" as xmmc , pro."code" as xmdm ,td.* from "t_tdgy" td
|
|
|
+ LEFT JOIN "t_project" pro on td.project_id=pro."id"
|
|
|
+ LEFT JOIN "t_project_immobile_code" immobile ON pro.id = immobile.project_id and immobile.valid_flag=1
|
|
|
+ WHERE td.has_onchain='t' and pro."id" is not null and immobile.code is null
|
|
|
+ and ( pro."name" LIKE '%测试%' or pro."code" LIKE '%测试%' or td."srf" LIKE '%测试%' );
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ */
|
|
|
String projectName = body.getXmmc();
|
|
|
String projectCode = body.getXmdm();
|
|
|
String srf = body.getSrf();
|
|
|
String yfbdcdyh = body.getYfbdcdyh();
|
|
|
- String geom = body.getGeom();
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ String ewktString = body.getGeom();
|
|
|
|
|
|
|
|
|
+ String condition = "1=1";
|
|
|
+ if(StringUtils.isNotBlank(projectName)){
|
|
|
+ condition += " and xmmc like '%"+projectName+"%'";
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(projectCode)){
|
|
|
+ condition += " and xmdm like '%"+projectCode+"%'";
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(srf)) {
|
|
|
+ condition += " and srf like '%" + srf + "%'";
|
|
|
+ }
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(yfbdcdyh)) {
|
|
|
+ List<NodeLand> res = nodeLandMapper.selectByGeom(ewktString);
|
|
|
+ //todo nodeId 的list 然后进行in条件的拼接
|
|
|
+ condition+="";
|
|
|
+ }
|
|
|
|
|
|
- return null;
|
|
|
+ List<Map<String,Object>> result = projectMapper.getTdyProjectList("");
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -107,9 +132,6 @@ public class OfferDataServiceImpl implements OfferDataService {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
@Override
|
|
|
public Map<String, Object> landFirstRegistration(LandFirstParamVo body) {
|
|
|
String yfbdcdyh = body.getYfbdcdyh();
|