| | |
| | | package com.ycl.platform.domain.result.HK; |
| | | |
| | | import com.ycl.platform.domain.result.BaseResult; |
| | | import com.ycl.platform.domain.vo.DataCenter.SnapClockVO; |
| | | import lombok.Data; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.mongodb.core.index.TextIndexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | |
| | | /** |
| | | * 设备名称 |
| | | */ |
| | | @TextIndexed |
| | | private String deviceName; |
| | | |
| | | /** |
| | | * 设备编号 |
| | | */ |
| | | @TextIndexed |
| | | private String externalIndexCode; |
| | | |
| | | /** |
| | | * 卡口内码或采集设备内码,dataType为1时表示卡口内码,dataType为2或11时表示采集设备内码 |
| | | */ |
| | | @TextIndexed |
| | | private String indexCode; |
| | | |
| | | /** |
| | | * IP地址 |
| | | */ |
| | | @TextIndexed |
| | | private String networkAddr; |
| | | |
| | | /** |
| | | * 组织编号 |
| | | */ |
| | | @TextIndexed |
| | | private String orgCode; |
| | | |
| | | /** |
| | | * 组织名称 |
| | | */ |
| | | @TextIndexed |
| | | private String orgName; |
| | | |
| | | /** |
| | |
| | | */ |
| | | private Integer nouniqueCount; |
| | | } |
| | | |
| | | public static SnapClockVO getVO(FaceDeviceInspectionResult result){ |
| | | SnapClockVO snapClockVO = new SnapClockVO(); |
| | | BeanUtils.copyProperties(result,snapClockVO); |
| | | snapClockVO.setClockPercent(result.getSnapClock().getClockPercent()); |
| | | snapClockVO.setTodayClockCount(result.getSnapClock().getTodayClockCount()); |
| | | snapClockVO.setTodayClockResult(result.getSnapClock().getTodayClockResult()); |
| | | snapClockVO.setAllClockCount(result.getSnapClock().getAllClockCount()); |
| | | snapClockVO.setAllClockResult(result.getSnapClock().getAllClockResult()); |
| | | snapClockVO.setAllClockResultText(result.getSnapClock().getAllClockResultText()); |
| | | snapClockVO.setTodayClockResultText(result.getSnapClock().getTodayClockResultText()); |
| | | return snapClockVO; |
| | | } |
| | | } |