|
@@ -86,6 +86,9 @@ public class MhPostInspectServiceImpl extends AbstractCrudService<MhPostInspectM
|
|
|
String endTime = format.format(date);
|
|
|
if (StringUtils.isNotBlank(companyId)) {
|
|
|
Integer spentTimeAvg = baseMapper.mhPostInspectStatistics(" AVG(spent_time) ", 1, startTime, endTime, null, companyId);
|
|
|
+ if (spentTimeAvg==null){
|
|
|
+ spentTimeAvg = 0;
|
|
|
+ }
|
|
|
answeredCount = baseMapper.mhPostInspectStatistics(" count(*) ", 1, startTime, endTime, null, companyId);
|
|
|
notAnsweredCount = baseMapper.mhPostInspectStatistics(" count(*) ", 0, startTime, endTime, null, companyId);
|
|
|
count = answeredCount + notAnsweredCount;
|