|
|
@ -171,8 +171,26 @@ public class AssociatedFormsController { |
|
|
String targetOrgOrPerson = requestBody.get("left"); |
|
|
String targetOrgOrPerson = requestBody.get("left"); |
|
|
String condition = requestBody.get("operator"); |
|
|
String condition = requestBody.get("operator"); |
|
|
String currentUser = requestBody.get("right"); |
|
|
String currentUser = requestBody.get("right"); |
|
|
Boolean flag = customerFormService.queryIfOrgOrPersonContainsCurrentUser(key,token,targetOrgOrPerson,condition,"当前用户"); |
|
|
Boolean flag = customerFormService.queryIfOrgOrPersonContainsCurrentUser(key,token,targetOrgOrPerson,condition,currentUser); |
|
|
|
|
|
|
|
|
|
|
|
return JsonData.buildSuccess(flag); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "AssociatedForms/queryHideRoleCondition") |
|
|
|
|
|
public JsonData queryHideRoleCondition(@RequestHeader(value = "User-Key") String key, |
|
|
|
|
|
@RequestHeader(value = "User-Token") String token, |
|
|
|
|
|
@RequestBody Map<String,String> requestBody) { |
|
|
|
|
|
if(StringUtils.isBlank(key)||StringUtils.isBlank(token)){ |
|
|
|
|
|
return JsonData.buildError("非法请求"); |
|
|
|
|
|
} |
|
|
|
|
|
String targetOrgOrPerson = requestBody.get("left"); |
|
|
|
|
|
String condition = requestBody.get("operator"); |
|
|
|
|
|
String currentUser = requestBody.get("right"); |
|
|
|
|
|
Boolean flag = customerFormService.queryHideRoleCondition(key,token,targetOrgOrPerson,condition,currentUser); |
|
|
|
|
|
|
|
|
return JsonData.buildSuccess(flag); |
|
|
return JsonData.buildSuccess(flag); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|