|
|
|
|
@ -67,11 +67,15 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (27,28,29,30), 1, 0)), 0) AS auditPro, " + |
|
|
|
|
"COALESCE(SUM(IF(problemSourcesCode IN (2), 1, 0)), 0) AS talkPro " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"WHERE ng.crtTime BETWEEN #{beginTime} AND #{endTime}; ") |
|
|
|
|
"WHERE ng.crtTime BETWEEN #{beginTime} AND #{endTime} ") |
|
|
|
|
GlobalOverViewVo getAllGlobalCount(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT problemSources as name ,COUNT(DISTINCT id) as value " + |
|
|
|
|
"from negative WHERE problemSourcesCode IN (27,28,29,30) " + |
|
|
|
|
"AND crtTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
"GROUP BY problemSources " + |
|
|
|
|
"ORDER BY value desc ") |
|
|
|
|
List<EchartsVo> getBarEchartsVoData(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 地图卡片
|
|
|
|
|
@ -198,6 +202,21 @@ public interface NegativeMapper extends BaseMapper<Negative> {
|
|
|
|
|
SupervisionNotifyOverView getAllSupervisionNotifyCount(Date beginTime, Date endTime); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
" sd.short_name as label, " + |
|
|
|
|
"COUNT(DISTINCT ng.id) AS denominator, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.processing_status in ('signing', 'processing', 'approval'), ng.id, NULL) ) AS processingNumber, " + |
|
|
|
|
"COUNT( DISTINCT IF(ng.processing_status='completed', ng.id, NULL) ) AS numerator, " + |
|
|
|
|
"IFNULL(ROUND( COUNT( DISTINCT IF(ng.processing_status='completed', ng.id, NULL) )/COUNT( DISTINCT ng.id )*100, 1), 0) AS value " + |
|
|
|
|
"FROM negative ng " + |
|
|
|
|
"LEFT JOIN sup_depart sd ON ng.second_involve_depart_id=sd.id " + |
|
|
|
|
"WHERE problemSourcesCode IN (27,28,29,30) " + |
|
|
|
|
"AND sd.statistics_group_id=#{groupId} " + |
|
|
|
|
"AND crtTime BETWEEN #{beginTime} AND #{endTime} " + |
|
|
|
|
" GROUP BY sd.short_name " + |
|
|
|
|
" ORDER BY denominator desc ") |
|
|
|
|
List<AuditNegativeVo> getAuditNegativeVo(Date beginTime, Date endTime,String groupId); |
|
|
|
|
|
|
|
|
|
@Select("SELECT " + |
|
|
|
|
"sd.short_name AS `name`, " + |
|
|
|
|
"sd.id AS departId, " + |
|
|
|
|
|