|
@@ -114,17 +114,24 @@ public class HealthShowApiController {
|
|
|
Integer personNum = Math.toIntExact(personInfoService.countByCompanyList(list));
|
|
|
Integer checkedPersonNum = personDeviceFilterLogService.getDayCheckedPersonNumByCompanyList(DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date()), list, null);
|
|
|
|
|
|
+ //已测访客数
|
|
|
Integer checkedVisitorNum = 0;
|
|
|
if (deviceNoList.size()>0){
|
|
|
checkedVisitorNum = personDeviceLogService.getDayCheckedVistorNumByDeviceNoList(DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date()), deviceNoList);
|
|
|
}
|
|
|
|
|
|
+ //已测员工人次
|
|
|
+ Integer checkPersonTotal = personDeviceLogService.getDayCheckedPersonTotalByCompanyList(DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date()), list, null);
|
|
|
+
|
|
|
|
|
|
|
|
|
Integer num = checkNumCompanyService.getDayCheckNumByCompanyList(DateUtil.format(new Date(), "yyyy-MM-dd"), list);
|
|
|
Integer totalNum = totalCheckCompanyService.getTotalCheckNum(list);
|
|
|
Integer dayCheckNum = num == null ? 0 : num;
|
|
|
- Integer totalCheckNum = totalNum == null ? dayCheckNum : totalNum + dayCheckNum;
|
|
|
+
|
|
|
+ //当日累计检测数
|
|
|
+ // Integer totalCheckNum = totalNum == null ? dayCheckNum : totalNum + dayCheckNum;
|
|
|
+ Integer totalCheckNum = checkPersonTotal + checkedVisitorNum;
|
|
|
|
|
|
Integer num2 = personDeviceFilterLogService.getDayAbnormalNumByCompanyList(DateUtil.beginOfDay(new Date()), new Date(), list);
|
|
|
Integer totalNum2 = totalCheckCompanyService.getTotalAbnormalNumByCompanyList(list);
|