|
@@ -83,9 +83,21 @@ public class EVisaTaskCheckController {
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "flowId", value = "所选的流程ID", required = true),
|
|
@ApiImplicitParam(name = "flowId", value = "所选的流程ID", required = true),
|
|
@ApiImplicitParam(name = "contractId", value = "合同段ID", required = true),
|
|
@ApiImplicitParam(name = "contractId", value = "合同段ID", required = true),
|
|
- @ApiImplicitParam(name = "queryId", value = "资料查询列表中的记录ID,以数组的形式")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "queryIds", value = "资料查询列表中的记录ID,以数组的形式")
|
|
})
|
|
})
|
|
public R<Boolean> batchCheckFlowUserIsEVisaPermissions(@RequestBody JSONObject json){
|
|
public R<Boolean> batchCheckFlowUserIsEVisaPermissions(@RequestBody JSONObject json){
|
|
|
|
+ if(json.containsKey("flowId")) {
|
|
|
|
+ //首先找到对应流程下的审批人组
|
|
|
|
+ List<FixedFlowLink> flowLink = this.fixedFlowLinkService.selectFixedFlowLink(json.getString("flowId"));
|
|
|
|
+
|
|
|
|
+ //获取这些人当前合同段下的权限
|
|
|
|
+ List<Long> linkUserList = flowLink.stream().map(FixedFlowLink::getFixedFlowLinkUser).distinct().collect(Collectors.toList());
|
|
|
|
+ List<JSONObject> userRoleList = this.saveUserInfoByProjectClient.queryUserContractRole(linkUserList, json.getString("contractId"));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
return R.data(300, false, "未找到流程");
|
|
return R.data(300, false, "未找到流程");
|
|
}
|
|
}
|