|
@@ -90,7 +90,6 @@ public class RelationSyInFlController {
|
|
|
if (StringUtils.isBlank(sysId) || CollectionUtils.isEmpty(floorIdList)) {
|
|
|
//return AdmResponse.failure("必填项:sysId(系统id)、floorIdList(楼层Id)");
|
|
|
//兼容adm历史逻辑,若楼层id为空时,返回success
|
|
|
-
|
|
|
if(CollectionUtils.isEmpty(floorIdList) && !StringUtils.isBlank(sysId)){
|
|
|
//需要解绑关系
|
|
|
AdmRelationTypeEnum sy2fl = AdmRelationTypeEnum.SY2FL;
|
|
@@ -103,6 +102,10 @@ public class RelationSyInFlController {
|
|
|
criteria.put("objFrom", sysId);
|
|
|
queryCriteria.setCriteria(criteria);
|
|
|
service.doDelete(AdmContextUtil.toDmpContext(), queryCriteria);
|
|
|
+
|
|
|
+ criteria.put("relCode", "Sy2Bd");
|
|
|
+ queryCriteria.setCriteria(criteria);
|
|
|
+ service.doDelete(AdmContextUtil.toDmpContext(), queryCriteria);
|
|
|
}
|
|
|
return AdmResponse.success();
|
|
|
}
|