From f1bcbc43e988d0d1a91bea66a9ebbf6d601e48c0 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期四, 13 十月 2022 10:33:19 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java index 305f44b..b8e6fed 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java @@ -55,6 +55,8 @@ return R.ok(commediateTypeService.list(new QueryWrapper<ComMediateType>().eq("enabled",1).eq("delete_flag", 0))); } + + /** * 新增事件类型 * */ @@ -73,6 +75,7 @@ return commediateTypeService.addOrUpdate(comMediateTypeDTO); } + /** * 删除事件 * */ @@ -84,10 +87,12 @@ comMediateType.setModifyUser(this.getLoginUserInfo().getUserId()); //该分类是否有未调解完成事件 List<ComEvent> list = comEventService.list(new QueryWrapper<ComEvent>().lambda().eq(ComEvent::getEventCategory, id).in(ComEvent::getEventProcessStatus, (1), (2), (5))); - if (list.size()>0){ + if (list.size() != 0){ return R.fail("有未处理完成事件,无法删除"); } return R.ok(commediateTypeService.updateById(comMediateType)); } + + } -- Gitblit v1.7.1