|
@@ -57,6 +57,9 @@ public class PersonDeviceLogApiController {
|
|
|
@Autowired
|
|
|
private ValueOperations<String, Object> valueOperations;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PersonCompanyService personCompanyService;
|
|
|
+
|
|
|
@PostMapping("queryTemperatureRawRecordList")
|
|
|
@ApiOperation(value="根据实时数据查看企业人员温度数据")
|
|
|
@ApiImplicitParams({
|
|
@@ -489,7 +492,9 @@ public class PersonDeviceLogApiController {
|
|
|
long abnormalCount = personDeviceFilterLogService.countByTimeRangeAndCompanyCode(companyInfo.getCode() + "%",personInfo.getId(),
|
|
|
-1,temperatureConfig.getMax(),startTime,endTime);
|
|
|
|
|
|
- long undetectedCount = personDeviceFilterLogService.countUndetectedByCompanyCode(companyInfo.getCode() + "%",personInfo.getId(),
|
|
|
+ List<PersonCompany> personCompanyList = personCompanyService.findByPersonId(personInfo.getId());
|
|
|
+
|
|
|
+ long undetectedCount = personDeviceFilterLogService.countUndetectedByCompanyCode(companyInfo.getCode() + "%",personCompanyList,
|
|
|
startTime,endTime);
|
|
|
|
|
|
Map<String,Object> map1 = new HashMap();
|
|
@@ -639,7 +644,9 @@ public class PersonDeviceLogApiController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- long undetectedCount = personDeviceFilterLogService.countUndetectedByCompanyCode(companyInfo.getCode() + "%",personInfo.getId(),startTime,endTime);
|
|
|
+ List<PersonCompany> personCompanyList = personCompanyService.findByPersonId(personInfo.getId());
|
|
|
+
|
|
|
+ long undetectedCount = personDeviceFilterLogService.countUndetectedByCompanyCode(companyInfo.getCode() + "%",personCompanyList,startTime,endTime);
|
|
|
|
|
|
map.put("companyTotalCount",companyTotalCount);
|
|
|
map.put("personTotalCount",personTotalCount);
|
|
@@ -653,6 +660,8 @@ public class PersonDeviceLogApiController {
|
|
|
catch (Exception ex){
|
|
|
msgResult.setMessage(ex.getMessage());
|
|
|
msgResult.setResult(false);
|
|
|
+
|
|
|
+ log.error(ex.getMessage(),ex);
|
|
|
}
|
|
|
|
|
|
return msgResult;
|
|
@@ -693,7 +702,12 @@ public class PersonDeviceLogApiController {
|
|
|
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
|
searchParams.put("companyCode",companyInfo.getCode() + "%");
|
|
|
- searchParams.put("personId",personInfo.getId());
|
|
|
+// searchParams.put("personId",personInfo.getId());
|
|
|
+
|
|
|
+ List<PersonCompany> personCompanyList = personCompanyService.findByPersonId(personInfo.getId());
|
|
|
+
|
|
|
+ searchParams.put("personCompanyList",personCompanyList);
|
|
|
+
|
|
|
searchParams.put("startTime",startTime);
|
|
|
searchParams.put("endTime",endTime);
|
|
|
|