|
|
@ -163,7 +163,20 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public EventDetailResultDTO eventDetail(EventDetailFormDTO formDTO, TokenDto tokenDto) { |
|
|
|
EventDetailResultDTO dto = baseDao.selectEventDetail(formDTO.getEventId()); |
|
|
|
//单独抽出来一个方法,因为数据分析中,个人档案-事件详情也许要调用
|
|
|
|
EventDetailResultDTO dto =getEventDetailResultDTO(formDTO.getEventId()); |
|
|
|
// 更改已读状态 报事人的红点:resi_event,艾特人的:resi_event_mention,所代表的组织的:resi_event_report_org
|
|
|
|
if (tokenDto.getApp().equals(EventConstant.TYPE_RESI)){ |
|
|
|
baseDao.updateResiEvent(tokenDto.getUserId(),formDTO.getEventId()); |
|
|
|
baseDao.updateEventMention(tokenDto.getUserId(),formDTO.getEventId()); |
|
|
|
}else if (tokenDto.getApp().equals(EventConstant.TYPE_GOV)){ |
|
|
|
resiEventReportOrgDao.updateEventOrg(formDTO.getEventId(), formDTO.getOrgId()); |
|
|
|
} |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|
public EventDetailResultDTO getEventDetailResultDTO(String resiEventId){ |
|
|
|
EventDetailResultDTO dto = baseDao.selectEventDetail(resiEventId); |
|
|
|
if (null == dto){ |
|
|
|
return new EventDetailResultDTO(); |
|
|
|
} |
|
|
@ -205,15 +218,17 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
} |
|
|
|
List<String> data = orgResult.getData(); |
|
|
|
dto.setEventOrg(data); |
|
|
|
// 更改已读状态 报事人的红点:resi_event,艾特人的:resi_event_mention,所代表的组织的:resi_event_report_org
|
|
|
|
if (tokenDto.getApp().equals(EventConstant.TYPE_RESI)){ |
|
|
|
baseDao.updateResiEvent(tokenDto.getUserId(),formDTO.getEventId()); |
|
|
|
baseDao.updateEventMention(tokenDto.getUserId(),formDTO.getEventId()); |
|
|
|
}else if (tokenDto.getApp().equals(EventConstant.TYPE_GOV)){ |
|
|
|
resiEventReportOrgDao.updateEventOrg(formDTO.getEventId(), formDTO.getOrgId()); |
|
|
|
} |
|
|
|
return dto; |
|
|
|
} |
|
|
|
/** |
|
|
|
* 数字赋能平台-个人档案-事件详情 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public EventDetailResultDTO eventDetailForIcData(ResiEventDetailFormDTO formDTO){ |
|
|
|
return getEventDetailResultDTO(formDTO.getResiEventId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 我要报事-提交(尹) |
|
|
|