|
|
@ -783,7 +783,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void reply(IcEventReplyFormDTO formDTO) { |
|
|
|
//1.查询事件数据 判断是否允许回复
|
|
|
|
IcEventEntity entity = baseDao.selectById(formDTO.getIcEventId()); |
|
|
|
IcEventEntity entity = baseDao.selectByEventId(formDTO.getIcEventId()); |
|
|
|
if (null == entity || "1".equals(entity.getOperationType()) || "2".equals(entity.getOperationType())) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "当前事件不允许回复"); |
|
|
|
} |
|
|
@ -1933,9 +1933,11 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
EventAnalysisResultDTO dto = baseDao.getEventAnalysis(getOrgPath(orgId,orgType)); |
|
|
|
Result<Map<String, String>> categoryMap = govIssueOpenFeignClient.getCategoryMap(EpmetRequestHolder.getLoginUserCustomerId()); |
|
|
|
if (null != categoryMap && categoryMap.getData().size() > 0) { |
|
|
|
Map<String,Integer> dataMap = baseDao.getAnalysis(getOrgPath(orgId,orgType)); |
|
|
|
List<Map<String,Integer>> dataMap = baseDao.getAnalysis(getOrgPath(orgId,orgType)); |
|
|
|
if (null != dataMap && dataMap.size() > 0) { |
|
|
|
dto.setCategoryCount(dataMap); |
|
|
|
Map<String, Integer> merged = new HashMap<>(); |
|
|
|
dataMap.forEach(merged::putAll); |
|
|
|
dto.setCategoryCount(merged); |
|
|
|
} |
|
|
|
} |
|
|
|
return dto; |
|
|
|