|
@@ -188,7 +188,11 @@ public class AdmEquipmentServiceImpl extends AbstractAdmBaseServiceImpl<AdmEquip
|
|
|
ObjectNode relationFrom = objectMapper.createObjectNode();
|
|
|
relationFrom.put("graphCode", GraphCodeEnum.MechInArch.name());
|
|
|
relationFrom.put("relCode", RelCodeEnum.Eq2Bd.name());
|
|
|
- relationFrom.set("objTo",criteria.get("buildingId"));
|
|
|
+ if(!criteria.get("buildingId").toString().contains("$null")) {
|
|
|
+ relationFrom.set("objTo", criteria.get("buildingId"));
|
|
|
+ }else{
|
|
|
+ relationFrom.put("$bindFlag", false);
|
|
|
+ }
|
|
|
criteria.set("relationFrom",relationFrom);
|
|
|
criteria.remove("buildingId");
|
|
|
}
|