|
@@ -22,10 +22,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -127,11 +124,10 @@ public class RelationSyInSpController {
|
|
|
* @return 删除的结果信息
|
|
|
*/
|
|
|
@PostMapping("/unlink-list")
|
|
|
- public AdmResponse delete(@RequestBody JSONObject param) {
|
|
|
+ public AdmResponse delete(@RequestParam(value = "type",required = false) String type, @RequestBody JSONArray param) {
|
|
|
//JSONArray jsonArray = param.getJSONArray("rSyInSpBase");
|
|
|
List<SyInSpBase> syInSpBases = JSONArray.parseArray(param.toJSONString(),SyInSpBase.class);
|
|
|
- String type = param.getString("type");
|
|
|
-// String type = deleteSyInSpBase.getType();
|
|
|
+ //String type = param.getString("type");
|
|
|
AdmRelationTypeEnum typeEnum = AdmRelationTypeEnum.SY2SP;
|
|
|
String graphCode = typeEnum.getGraphCode();
|
|
|
String relCode = typeEnum.getRelCode();
|