|
@@ -608,6 +608,59 @@ public class PersonDeviceLogApiController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="未测温人员列表")
|
|
|
|
+ @RequestMapping(value = "undetectedPersonList",method = RequestMethod.POST)
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name="startTime",value = "开始时间(格式:yyyy-MM-dd)",paramType = "form"),
|
|
|
|
+ @ApiImplicitParam(name="endTime",value = "截止时间(格式:yyyy-MM-dd)",paramType = "form"),
|
|
|
|
+ @ApiImplicitParam(name="token",value = "令牌",required = true,paramType = "form"),
|
|
|
|
+ @ApiImplicitParam(name="subject",value = "目标(不传)",paramType = "form")
|
|
|
|
+ })
|
|
|
|
+ public MessageResult<Map> undetectedPersonList(
|
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime,
|
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime,
|
|
|
|
+ @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
|
+ @RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
|
+ String token,
|
|
|
|
+ @RequestAttribute String subject){
|
|
|
|
+ MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ PersonInfo personInfo = personInfoService.get(Long.valueOf(subject));
|
|
|
|
+ CompanyInfo companyInfo = companyInfoService.get(personInfo.getCompanyId());
|
|
|
|
+
|
|
|
|
+ if (startTime==null){
|
|
|
|
+ startTime = DateTime.now().plusDays(-14).toDate();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (endTime==null){
|
|
|
|
+ endTime = DateTime.now().plusDays(1).toDate();
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ endTime = new DateTime(endTime).plusDays(1).toDate();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
+ searchParams.put("companyCode",companyInfo.getCode() + "%");
|
|
|
|
+ searchParams.put("personId",personInfo.getId());
|
|
|
|
+ searchParams.put("startTime",startTime);
|
|
|
|
+ searchParams.put("endTime",endTime);
|
|
|
|
+
|
|
|
|
+ Page<PersonInfo> page = personDeviceFilterLogService.findUndetectedPersonList(searchParams,pageIndex,pageSize,true);
|
|
|
|
+
|
|
|
|
+ msgResult.setResult(true);
|
|
|
|
+ msgResult.setData(PojoUtils.pageWrapper(page));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception e) {
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
|
|
+ msgResult.setResult(false);
|
|
|
|
+ msgResult.setMessage(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return msgResult;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation(value="获取设备列表")
|
|
@ApiOperation(value="获取设备列表")
|
|
@RequestMapping(value = "getDeviceList",method = RequestMethod.POST)
|
|
@RequestMapping(value = "getDeviceList",method = RequestMethod.POST)
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|