2 Commits 18946d38e0 ... 4dc20a5e7d

Author SHA1 Message Date
  丁治程 4dc20a5e7d Merge remote-tracking branch 'origin/master' 2 weeks ago
  丁治程 1c96a7b7a1 判断用户在SSO中是否存在修改 2 weeks ago

+ 4 - 2
jeecg-module-interlock/src/main/java/org/jeecg/modules/iotedgeCollectData/controller/IotedgeCollectDataController.java

@@ -253,8 +253,10 @@ public class IotedgeCollectDataController extends JeecgController<IotedgeCollect
 	 @AutoLog(value = "IoTEdge-SSO-判断用户是否存在")
 	 @AutoLog(value = "IoTEdge-SSO-判断用户是否存在")
 	 @ApiOperation(value="IoTEdge-SSO-判断用户是否存在", notes="IoTEdge-SSO-判断用户是否存在")
 	 @ApiOperation(value="IoTEdge-SSO-判断用户是否存在", notes="IoTEdge-SSO-判断用户是否存在")
 	 @PostMapping(value = "/ifUserInSoo")
 	 @PostMapping(value = "/ifUserInSoo")
-	 public Result<Boolean> ifUserNameInSSO(@RequestBody String userName){
-		 JSONObject jsonObject = restClientService.ifUserInSSO(userName);
+	 public Result<Boolean> ifUserNameInSSO(@RequestBody String userNames){
+		 JSONObject jsonObject1 = JSONObject.parseObject(userNames);
+		 String userName1 = (String) jsonObject1.get("userName");
+		 JSONObject jsonObject = restClientService.ifUserInSSO(userName1);
 		 Boolean existing = (Boolean) jsonObject.get("existing");
 		 Boolean existing = (Boolean) jsonObject.get("existing");
 		 return Result.OK(existing);
 		 return Result.OK(existing);
 	 }
 	 }