song 1 week ago
parent
commit
e21286e93a
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/main/java/com/dashitech/callcenter/socket/HandlerThread.java

+ 8 - 4
src/main/java/com/dashitech/callcenter/socket/HandlerThread.java

@@ -461,12 +461,16 @@ public class HandlerThread  {
461 461
                 Long deptId = null;
462 462
                 if("HSMS".equals(projectMain)) {
463 463
                     HsmsDepartmentEntity dept = hsmsDepartmentDAO.getDeptByPhone(phone);
464
-                    deptName = dept.getDept();
465
-                    deptId = dept.getId();
464
+                    if (dept != null) {
465
+                        deptName = dept.getDept();
466
+                        deptId = dept.getId();
467
+                    }
466 468
                 } else {    //其它,以运维项目为主
467 469
                     DepartmentEntity dept = departmentDAO.getDeptByPhone(phone);
468
-                    deptName = dept.getDept();
469
-                    deptId = dept.getId();
470
+                    if (dept != null) {
471
+                        deptName = dept.getDept();
472
+                        deptId = dept.getId();
473
+                    }
470 474
                 }
471 475
 
472 476
                 if (StringUtils.isNotBlank(deptName)) {