Commit b7fa7351 by 徐高华

非空判断

parent b1484c5c
...@@ -193,6 +193,9 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -193,6 +193,9 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
public ServiceResponse<GroupChatDTO> detail(String wxEnterpriseId, Long groupChatId) { public ServiceResponse<GroupChatDTO> detail(String wxEnterpriseId, Long groupChatId) {
GroupChatBO bo = this.groupChatService.detail(wxEnterpriseId, groupChatId); GroupChatBO bo = this.groupChatService.detail(wxEnterpriseId, groupChatId);
GroupChatDTO dto = EntityUtil.changeEntityByJSON(GroupChatDTO.class, bo); GroupChatDTO dto = EntityUtil.changeEntityByJSON(GroupChatDTO.class, bo);
if(null == dto) {
return ServiceResponse.failure("9999","群已删除") ;
}
if (StringUtils.isNotBlank(dto.getStaffId())) { if (StringUtils.isNotBlank(dto.getStaffId())) {
TabHaobanStaff staff = this.staffService.selectById(dto.getStaffId()); TabHaobanStaff staff = this.staffService.selectById(dto.getStaffId());
if (null != staff) { if (null != staff) {
......
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