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