Преглед изворни кода

判断用户是否在SSO中存在

丁治程 пре 2 месеци
родитељ
комит
f8a5a4ea6e

+ 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-判断用户是否存在")
 	 @ApiOperation(value="IoTEdge-SSO-判断用户是否存在", notes="IoTEdge-SSO-判断用户是否存在")
 	 @PostMapping(value = "/ifUserInSoo")
-	 public JSONObject ifUserNameInSSO(@RequestParam(name = "userName") String userName){
-		 return restClientService.ifUserInSSO(userName);
+	 public Result<Boolean> ifUserNameInSSO(@RequestParam(name = "userName") String userName){
+		 JSONObject jsonObject = restClientService.ifUserInSSO(userName);
+		 Boolean existing = (Boolean) jsonObject.get("existing");
+		 return Result.OK(existing);
 	 }