|
@@ -259,8 +259,7 @@ public class AdmRelCalController {
|
|
|
* Update By lijie 2021/8/31 12:10
|
|
|
*/
|
|
|
@PostMapping(value = {"sign"})
|
|
|
- public AdmResponse changeSign( @PathVariable("relType") String relType,
|
|
|
- @RequestParam(value = "objectTypes",required = false) String objectTypeStr,
|
|
|
+ public AdmResponse changeSign( @RequestParam(value = "objectTypes",required = false) String objectTypeStr,
|
|
|
@RequestParam(value = "relationType",required = false) String relationTypeStr) {
|
|
|
// 资产暂时未引入,直接返回成功
|
|
|
// 组装上下文条件
|
|
@@ -268,6 +267,26 @@ public class AdmRelCalController {
|
|
|
// admRelCalService.calcRelation(context,relType,objectTypeStr,relationTypeStr);
|
|
|
return AdmResponse.success(new ArrayList<>());
|
|
|
}
|
|
|
+ /***
|
|
|
+ * Description: 其他计算接口,预留接口,用于处理其他的关系不存在接口会出现404问题
|
|
|
+ * @param relType : 关系类型
|
|
|
+ * @param objectTypeStr : 对象类型
|
|
|
+ * @param relationTypeStr : 关系类型
|
|
|
+ * @return : com.persagy.proxy.adm.request.AdmResponse
|
|
|
+ * @author : lijie
|
|
|
+ * @date :2021/10/15 19:58
|
|
|
+ * Update By lijie 2021/10/15 19:58
|
|
|
+ */
|
|
|
+ @PostMapping(value = "{relType}")
|
|
|
+ public AdmResponse otherCal( @PathVariable("relType") String relType,
|
|
|
+ @RequestParam(value = "objectTypes",required = false) String objectTypeStr,
|
|
|
+ @RequestParam(value = "relationType",required = false) String relationTypeStr) {
|
|
|
+ // 资产暂时未引入,直接返回成功
|
|
|
+ // 组装上下文条件
|
|
|
+ InstanceUrlParam context = AdmContextUtil.toDmpContext();
|
|
|
+ // admRelCalService.calcRelation(context,relType,objectTypeStr,relationTypeStr);
|
|
|
+ return AdmResponse.success(new ArrayList<>());
|
|
|
+ }
|
|
|
|
|
|
/***
|
|
|
* Description: 获得关系枚举类型
|