修改职能部门案件上报自动分配受理人的逻辑

This commit is contained in:
wans 2021-07-07 14:34:16 +08:00
parent b9c5c9062b
commit 7bef248ab7
3 changed files with 11 additions and 6 deletions

View File

@ -106,11 +106,13 @@ public class ReportCaseAutoAppServiceImpl extends BaseService implements IReport
String caseTypeId = params.get("caseTypeId").toString(); String caseTypeId = params.get("caseTypeId").toString();
BindingDepartmentDTO bindingDepartmentDTO = bindingDepartment.getBindingDepartmentByCaseType(caseTypeId); BindingDepartmentDTO bindingDepartmentDTO = bindingDepartment.getBindingDepartmentByCaseType(caseTypeId);
if(bindingDepartmentDTO == null){ if(bindingDepartmentDTO == null){
throw new SaveException("未找到绑定职能部门"); LOG.info("案件类型未绑定只能部门,执行手动受理逻辑");
return new SuccessResult();
} }
UserDTO userDTO = bindingDepartment.getDepartmentUserReturnOne(bindingDepartmentDTO.getDepartmentId(),token); UserDTO userDTO = bindingDepartment.getDepartmentUserReturnOne(bindingDepartmentDTO.getDepartmentId(),token);
if(userDTO == null){ if(userDTO == null){
throw new SaveException("未找到N员信息"); LOG.info("未查询到专管员, 执行手动受理逻辑");
return new SuccessResult();
} }
//受理 //受理
params.clear(); params.clear();

View File

@ -489,8 +489,10 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer
Map<String, Object> queryMap = getHashMap(8); Map<String, Object> queryMap = getHashMap(8);
queryMap.put("communityBossId",handleUserId); queryMap.put("communityBossId",handleUserId);
CommunityBossDTO communityBoss = communityBossService.getCommunityBoss(queryMap); CommunityBossDTO communityBoss = communityBossService.getCommunityBoss(queryMap);
params.put("handleUserId", communityBoss.getCommunityBossUserId()); if(communityBoss != null){
params.put("handleUserName", communityBoss.getCommunityBossName()); params.put("handleUserId", communityBoss.getCommunityBossUserId());
params.put("handleUserName", communityBoss.getCommunityBossName());
}
setSaveInfo(params); setSaveInfo(params);
reportCaseDao.saveReportCaseAssign(params); reportCaseDao.saveReportCaseAssign(params);

View File

@ -25,13 +25,14 @@ spring:
datasource: datasource:
druid: 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://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 db-type: mysql
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
# username: wanggeng # username: wanggeng
username: root username: root
# password: WenG>2132997 # password: WenG>2132997
password: 123456 password: root
initial-size: 2 initial-size: 2
min-idle: 2 min-idle: 2
max-active: 10 max-active: 10