|
@@ -100,9 +100,9 @@ public class RelationSyInSpController {
|
|
|
*/
|
|
|
@PostMapping(value = "/link-sy-sps")
|
|
|
public AdmResponse createSySps( @RequestBody JSONObject param) {
|
|
|
- JSONObject rSyIn = param.getJSONObject("rSyInSpBase");
|
|
|
+ //JSONObject rSyIn = param.getJSONObject("rSyInSpBase");
|
|
|
String type = param.getString("type");
|
|
|
- SyInSpBaseList syInSpBaseList= JSON.toJavaObject(rSyIn, SyInSpBaseList.class);
|
|
|
+ SyInSpBaseList syInSpBaseList= JSON.toJavaObject(param, SyInSpBaseList.class);
|
|
|
List<String> spaceIdList = syInSpBaseList.getSpaceIdList();
|
|
|
String sysId = syInSpBaseList.getSysId();
|
|
|
List<RelationDTO> voList = new ArrayList<>();
|
|
@@ -128,8 +128,8 @@ public class RelationSyInSpController {
|
|
|
*/
|
|
|
@PostMapping("/unlink-list")
|
|
|
public AdmResponse delete(@RequestBody JSONObject param) {
|
|
|
- JSONArray jsonArray = param.getJSONArray("rSyInSpBase");
|
|
|
- List<SyInSpBase> syInSpBases = JSONArray.parseArray(jsonArray.toJSONString(),SyInSpBase.class);
|
|
|
+ //JSONArray jsonArray = param.getJSONArray("rSyInSpBase");
|
|
|
+ List<SyInSpBase> syInSpBases = JSONArray.parseArray(param.toJSONString(),SyInSpBase.class);
|
|
|
String type = param.getString("type");
|
|
|
// String type = deleteSyInSpBase.getType();
|
|
|
AdmRelationTypeEnum typeEnum = AdmRelationTypeEnum.SY2SP;
|