duhongyu месяцев назад: 9
Родитель
Сommit
04fb1e1186

+ 1 - 1
hjzx-mapper/src/main/resources/mapper/report/ReportMapper.xml

@@ -439,7 +439,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
439 439
 		GROUP BY a.root_id, a.root_name;
440 440
 	</select>
441 441
 	<select id="selectTelephoneData"  parameterType="String" resultMap="RecordDateViewResult">
442
-		select count(1) total,
442
+		select count(note=${note} or null) total,
443 443
 		count(note=${note} and call_type = 1 or null )	incoming,		count(call_type = 2
444 444
 		or null )	exhalation  from rep_record
445 445
 		where 1=1

+ 1 - 0
hjzx-service/src/main/java/api/service/report/impl/DataAnalysisServiceImpl.java

@@ -74,6 +74,7 @@ public class DataAnalysisServiceImpl implements IDataAnalysisService {
74 74
         HashMap<String,Object> obj=new HashMap<>();
75 75
         RecordDateView view1=reportMapper.selectTelephoneData(time,1L);//八院话务数据
76 76
         RecordDateView view2=reportMapper.selectTelephoneData(time,2L);//九院话务数据
77
+        view2.setExhalation(0L);
77 78
         RecordDateView view3=new RecordDateView();
78 79
         view3.setTotal(view1.getTotal()+view2.getTotal());
79 80
         view3.setIncoming(view1.getIncoming()+view2.getIncoming());