Commit 4a7c327e by 徐高华

非空判断

parent 8c437887
...@@ -115,13 +115,15 @@ public class OpenStaffServiceImpl implements OpenStaffService { ...@@ -115,13 +115,15 @@ public class OpenStaffServiceImpl implements OpenStaffService {
if (StringUtils.isNotBlank(noticeReason)) { if (StringUtils.isNotBlank(noticeReason)) {
log.info("发送退出登录通知,staffId={}", openStaff.getStaffId()); log.info("发送退出登录通知,staffId={}", openStaff.getStaffId());
TabHaobanStaff staff = this.staffMapper.selectByPrimaryKey(openStaff.getStaffId()); TabHaobanStaff staff = this.staffMapper.selectByPrimaryKey(openStaff.getStaffId());
this.noticeMessageApiService.sendMessageForOpenStaff(openStaff.getEnterpriseId(), staff.getStaffName(), noticeReason); if(null != staff) {
// 发送通知 this.noticeMessageApiService.sendMessageForOpenStaff(openStaff.getEnterpriseId(), staff.getStaffName(), noticeReason);
if(!noticeReason.equals(OpenStaffOfflineEnum.OFFLINE1.getDesc())) { // 发送通知
Map<String, String> map = new HashMap<String, String>(); if(!noticeReason.equals(OpenStaffOfflineEnum.OFFLINE1.getDesc())) {
map.put("reason", noticeReason); Map<String, String> map = new HashMap<String, String>();
int messageType = NoticeMessageTypeEnum.HAOBAN_OPEN_STAFF_LOGOUT.getType(); map.put("reason", noticeReason);
NoticeMessageUtil.sendNoticeMessageByStaff(openStaff.getEnterpriseId(), openStaff.getStaffId(), "-1", messageType, null, map, null); int messageType = NoticeMessageTypeEnum.HAOBAN_OPEN_STAFF_LOGOUT.getType();
NoticeMessageUtil.sendNoticeMessageByStaff(openStaff.getEnterpriseId(), openStaff.getStaffId(), "-1", messageType, null, map, null);
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment