| | |
| | | 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; |
| | | |
| | |
| | | @Data |
| | | public static class SnapClock { |
| | | /** |
| | | * 时钟准确率 |
| | | * 时钟准确率:1 == 100% |
| | | */ |
| | | private Float clockPercent; |
| | | |
| | |
| | | @Data |
| | | public static class SnapTimely { |
| | | /** |
| | | * 及时率 |
| | | * 及时率 1 == 100% |
| | | */ |
| | | private Float timelyPercent; |
| | | |
| | |
| | | */ |
| | | private Integer noIntegrityCount; |
| | | } |
| | | |
| | | public static SnapClockVO getVO(VehicleDeviceInspectionResult 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; |
| | | } |
| | | } |