|
|
@ -1959,7 +1959,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
@Override |
|
|
|
public EventAnalysisResultDTO getEventAnalysis(String orgId, String orgType, String eventType) { |
|
|
|
String orgPath = getOrgPath(orgId, orgType); |
|
|
|
log.info(orgPath); |
|
|
|
try { |
|
|
|
EventAnalysisResultDTO dto = baseDao.getEventBySourceTypeCount(orgPath);//根据事件来源获取事件数量
|
|
|
|
Integer total; |
|
|
|
if (StringUtils.isEmpty(eventType)) { |
|
|
@ -1969,6 +1969,10 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
dto.getZhiTongLianBan() : dto.getWangGeHua(); |
|
|
|
} |
|
|
|
return biuldData(dto, orgPath, eventType, total); |
|
|
|
} catch (Exception e) { |
|
|
|
e.getMessage(); |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private EventAnalysisResultDTO biuldData(EventAnalysisResultDTO dto, String orgPath, String eventType, Integer total) { |
|
|
@ -1980,6 +1984,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
* 已归档 只要包含一条归档数据即为已归档(应该只有一条) |
|
|
|
* manageType: 0、上报 1、阅收 2、完结 3、审核 4、事件评价 5、结案归档 |
|
|
|
*/ |
|
|
|
try { |
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
|
Integer temp; |
|
|
|
if (i == 0) { |
|
|
@ -2004,6 +2009,9 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
dto.setGuiDangRate(new BigDecimal((double) temp / total).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
}catch (Exception e){ |
|
|
|
e.getMessage(); |
|
|
|
} |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|