From 7bef248ab7910c5ed2f0a9986dee60cf6424af9a Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 7 Jul 2021 14:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=8C=E8=83=BD=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=A1=88=E4=BB=B6=E4=B8=8A=E6=8A=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=86=E9=85=8D=E5=8F=97=E7=90=86=E4=BA=BA=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportcase/impl/ReportCaseAutoAppServiceImpl.java | 6 ++++-- .../service/reportcase/impl/ReportCaseServiceImpl.java | 6 ++++-- src/main/resources/application-test.yml | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseAutoAppServiceImpl.java b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseAutoAppServiceImpl.java index 2653c7f..7e183af 100644 --- a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseAutoAppServiceImpl.java +++ b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseAutoAppServiceImpl.java @@ -106,11 +106,13 @@ public class ReportCaseAutoAppServiceImpl extends BaseService implements IReport String caseTypeId = params.get("caseTypeId").toString(); BindingDepartmentDTO bindingDepartmentDTO = bindingDepartment.getBindingDepartmentByCaseType(caseTypeId); if(bindingDepartmentDTO == null){ - throw new SaveException("未找到绑定职能部门"); + LOG.info("案件类型未绑定只能部门,执行手动受理逻辑"); + return new SuccessResult(); } UserDTO userDTO = bindingDepartment.getDepartmentUserReturnOne(bindingDepartmentDTO.getDepartmentId(),token); if(userDTO == null){ - throw new SaveException("未找到N员信息"); + LOG.info("未查询到专管员, 执行手动受理逻辑"); + return new SuccessResult(); } //受理 params.clear(); diff --git a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java index bfe16e4..17c6923 100755 --- a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java +++ b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java @@ -489,8 +489,10 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer Map queryMap = getHashMap(8); queryMap.put("communityBossId",handleUserId); CommunityBossDTO communityBoss = communityBossService.getCommunityBoss(queryMap); - params.put("handleUserId", communityBoss.getCommunityBossUserId()); - params.put("handleUserName", communityBoss.getCommunityBossName()); + if(communityBoss != null){ + params.put("handleUserId", communityBoss.getCommunityBossUserId()); + params.put("handleUserName", communityBoss.getCommunityBossName()); + } setSaveInfo(params); reportCaseDao.saveReportCaseAssign(params); diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 0f917ef..49e27e1 100755 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -25,13 +25,14 @@ spring: datasource: druid: # url: jdbc:mysql://49.233.36.36:6688/db_cloud_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false - url: jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false +# url: jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false + url: jdbc:mysql://192.168.0.151:3306/db_cloud_system_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false db-type: mysql driver-class-name: com.mysql.jdbc.Driver # username: wanggeng username: root # password: WenG>2132997 - password: 123456 + password: root initial-size: 2 min-idle: 2 max-active: 10