From fbf3e66484c7f0f3fb73b31e5cca472fd79b4531 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 07 七月 2023 16:35:11 +0800 Subject: [PATCH] 修改综治后台报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java index fcd8157..3954372 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventController.java @@ -170,10 +170,14 @@ BeanUtils.copyProperties(comEventVO, comEvent); LoginUserInfoVO loginUserInfo = getLoginUserInfo(); if (isNull(comEventVO.getAppId())){ - String appId = userService.detailUser(loginUserInfo.getUserId()).getData().getAppId(); +// String appId = userService.detailUser(loginUserInfo.getUserId()).getData().getAppId(); + String appId = getAppId(); comEvent.setAppId(appId); } - return comEventService.pageByComEvent(comEvent, pagination,this.getLoginUserInfo()); + LoginUserInfoVO loginUserInfo1 = this.getLoginUserInfo(); +// loginUserInfo1.setType(userService.detailUser(loginUserInfo.getUserId()).getData().getType()); + loginUserInfo1.setType(loginUserInfo.getType()); + return comEventService.pageByComEvent(comEvent, pagination,loginUserInfo1); } @@ -332,8 +336,10 @@ */ @ApiOperation("事件各种状态(处理状态1待处理2待验证3专家已受理4专家未受理,拒绝5调解中6已结案归档7调解取消8 已删除)数据统计") @GetMapping("/status/calculate") - public R calculate() { - return comEventService.calculate(getLoginUserInfo()); + public R calculate(@RequestParam(value = "level",required = false)Integer level,@RequestParam(value = "id",required = false)Long id) { + LoginUserInfoVO loginUserInfo = getLoginUserInfo(); +// loginUserInfo.setType(userService.detailUser(loginUserInfo.getUserId()).getData().getType()); + return comEventService.calculate(loginUserInfo,level,id); } /** -- Gitblit v1.7.1