|
@@ -10,17 +10,18 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
|
import com.persagy.dmp.basic.model.QueryCriteria;
|
|
|
import com.persagy.dmp.common.helper.SpringHelper;
|
|
|
+import com.persagy.proxy.adm.constant.AdmRelationTypeEnum;
|
|
|
import com.persagy.proxy.adm.constant.GraphCodeEnum;
|
|
|
import com.persagy.proxy.adm.constant.RelCodeEnum;
|
|
|
+import com.persagy.proxy.adm.request.AdmQueryCriteria;
|
|
|
+import com.persagy.proxy.adm.request.AdmResponse;
|
|
|
import com.persagy.proxy.adm.service.impl.AbstractAdmBaseServiceImpl;
|
|
|
import com.persagy.proxy.adm.utils.AdmContextUtil;
|
|
|
+import com.persagy.proxy.calculation.service.AdmRelCalService;
|
|
|
import com.persagy.proxy.common.entity.DmpResult;
|
|
|
+import com.persagy.proxy.common.entity.InstanceUrlParam;
|
|
|
import com.persagy.proxy.object.model.AdmFloor;
|
|
|
-import com.persagy.proxy.adm.request.AdmQueryCriteria;
|
|
|
-import com.persagy.proxy.adm.request.AdmResponse;
|
|
|
-import com.persagy.proxy.object.model.AdmSpace;
|
|
|
import com.persagy.proxy.object.service.IAdmFloorService;
|
|
|
-import com.persagy.proxy.common.entity.InstanceUrlParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -39,6 +40,8 @@ import java.util.Map;
|
|
|
public class AdmFloorServiceImpl extends AbstractAdmBaseServiceImpl<AdmFloor> implements IAdmFloorService {
|
|
|
@Autowired
|
|
|
private ObjectMapper objectMapper;
|
|
|
+ @Autowired
|
|
|
+ private AdmRelCalService admRelCalService;
|
|
|
|
|
|
public static final Boolean QUERY = true;
|
|
|
public static final Boolean CREAT_UPDATE = false;
|
|
@@ -77,6 +80,33 @@ public class AdmFloorServiceImpl extends AbstractAdmBaseServiceImpl<AdmFloor> im
|
|
|
ensureSpecialValues(context, admFloors, QUERY);
|
|
|
return response;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void processRelationType(List<AdmFloor> vos) {
|
|
|
+ /**
|
|
|
+ isttype.add("sh2bd")
|
|
|
+ listtype.add("bd2sp")
|
|
|
+ listtype.add("fl2sp")
|
|
|
+ listtype.add("syeq2bd")
|
|
|
+ listtype.add("sy2fl")
|
|
|
+ listtype.add("eq2fl")
|
|
|
+ listtype.add("pe2bd")
|
|
|
+ listtype.add("pe2fl")
|
|
|
+ */
|
|
|
+ admRelCalService.calcRelation(AdmContextUtil.toDmpContext(),
|
|
|
+ CollUtil.newArrayList(
|
|
|
+ AdmRelationTypeEnum.SH2BD,
|
|
|
+ AdmRelationTypeEnum.BD2SP,
|
|
|
+ AdmRelationTypeEnum.FL2SP,
|
|
|
+ AdmRelationTypeEnum.SYEQ2BD,
|
|
|
+ AdmRelationTypeEnum.SY2FL,
|
|
|
+ AdmRelationTypeEnum.EQ2FL,
|
|
|
+ AdmRelationTypeEnum.PE2BD,
|
|
|
+ AdmRelationTypeEnum.PE2FL
|
|
|
+ ),
|
|
|
+ null);
|
|
|
+ }
|
|
|
+
|
|
|
/***
|
|
|
* Description: 子类重写,以便处理带buildingId
|
|
|
* @param dmpRequest : 中台查询参数
|