|
|
|
|
@ -6,6 +6,7 @@ import com.biutag.supervision.constants.enums.InspectCaseEnum;
|
|
|
|
|
import com.biutag.supervision.mapper.DataCaseVerifMapper; |
|
|
|
|
import com.biutag.supervision.mapper.DataSupervisionNotifyMapper; |
|
|
|
|
import com.biutag.supervision.mapper.NegativeMapper; |
|
|
|
|
import com.biutag.supervision.mapper.NegativeProblemRelationMapper; |
|
|
|
|
import com.biutag.supervision.pojo.dto.CaseVerifDepart; |
|
|
|
|
import com.biutag.supervision.pojo.entity.DataCaseVerif; |
|
|
|
|
import com.biutag.supervision.pojo.entity.DataSupervisionNotify; |
|
|
|
|
@ -31,6 +32,7 @@ public class DataGobalService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final NegativeMapper negativeMapper; |
|
|
|
|
private final NegativeProblemRelationMapper negativeProblemRelationMapper; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取所有大屏统计数据 |
|
|
|
|
@ -114,4 +116,22 @@ public class DataGobalService {
|
|
|
|
|
List<RecentTrendByMonthVo> trendByMonthVoList = negativeMapper.selectRecentTrendByMonth(year); |
|
|
|
|
return trendByMonthVoList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取问题类型占比 |
|
|
|
|
* @param beginTime |
|
|
|
|
* @param endTime |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public List<EchartsVo> getProblemRate(Date beginTime, Date endTime) { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* SELECT npr.oneLevelContent as name, count(*) value |
|
|
|
|
* FROM negative_problem_relation npr |
|
|
|
|
* WHERE npr.oneLevelContent is not NULL |
|
|
|
|
* GROUP BY `name` |
|
|
|
|
*/ |
|
|
|
|
List<EchartsVo> wtlxList = negativeProblemRelationMapper.selectProblemRate(beginTime, endTime); |
|
|
|
|
return wtlxList; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|