| | |
| | | List<ComEventResource> resource = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, id) |
| | | .eq(ComEventResource::getStatus, 5)); |
| | | map.put("archiveImage", resource); |
| | | map.put("contact", comActDAO.selectById(comEvent.getRequestUserCommunity()).getContactsPhone()); |
| | | map.put("contact", getPhone(comEvent)); |
| | | return map; |
| | | } |
| | | |
| | | public String getPhone(ComEvent comEvent){ |
| | | if (isNull(comEvent.getRequestUserCommunity())){ |
| | | return comSanShuoIndustryCenterService.getById(comEvent.getCenterId()).getPhone(); |
| | | }else { |
| | | return comActDAO.selectById(comEvent.getRequestUserCommunity()).getContactsPhone(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |