|
@@ -10,11 +10,13 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.fasterxml.jackson.databind.JsonNode;
|
|
|
import com.fasterxml.jackson.databind.node.ArrayNode;
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
|
import com.persagy.dmp.basic.constant.DigitalMessageConstant;
|
|
|
import com.persagy.dmp.basic.dto.RequestData;
|
|
|
import com.persagy.dmp.basic.model.CodeTableTypeEnum;
|
|
|
+import com.persagy.dmp.basic.model.QueryCriteria;
|
|
|
import com.persagy.dmp.codetable.client.CodeTableDataFacade;
|
|
|
import com.persagy.dmp.codetable.entity.CodeTableData;
|
|
|
import com.persagy.dmp.common.constant.CommonConstant;
|
|
@@ -456,6 +458,34 @@ public class ObjectDigitalServiceImpl extends ServiceImpl<ObjectDigitalMapper, O
|
|
|
return ResultHelper.multi(new ArrayList<>());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询已有的对象类型
|
|
|
+ * @param queryCriteria
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<String> queryObjectClassCode(QueryCriteria queryCriteria) throws Exception {
|
|
|
+ ObjectNode criteria = queryCriteria.getCriteria();
|
|
|
+ //查询存在的对象类型
|
|
|
+ RequestData requestData = new RequestData();
|
|
|
+ requestData.setGroupCode(AppContext.getContext().getGroupCode());
|
|
|
+ requestData.setProjectId(AppContext.getContext().getProjectId());
|
|
|
+ JsonNode buildingId = criteria.get("buildingId");
|
|
|
+ if(buildingId != null){
|
|
|
+ requestData.setBuildingId(buildingId.textValue());
|
|
|
+ }
|
|
|
+ JsonNode floorId = criteria.get("floorId");
|
|
|
+ if(floorId != null){
|
|
|
+ requestData.setFloorId(floorId.textValue());
|
|
|
+ }
|
|
|
+ JsonNode objType = criteria.get("objType");
|
|
|
+ if(objType != null){
|
|
|
+ requestData.setObjType(objType.textValue());
|
|
|
+ }
|
|
|
+ return objectDigitalMapper.queryObjectClassCode(requestData);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/***
|
|
|
* Description: 通用处理分页数据方法
|