xiangpei
2024-03-06 3a31a59f374b26da23d95ca1c10b583889f11611
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.ycl.platform.domain.vo;
 
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.CheckRule;
import java.util.List;
import java.time.LocalDateTime;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
 
/**
 * 考核规则展示
 *
 * @author xp
 * @since 2024-03-06
 */
@Data
@Accessors(chain = true)
public class CheckRuleVO extends AbsVo {
 
    /** 规则名称 */
    private String ruleName;
 
    /** 规则描述 */
    private String ruleDetail;
 
    /** 天网视频点位数 */
    private Integer videoPointNum;
 
    /** 车辆卡口点位数 */
    private Integer vehicleCheckpointNum;
 
    /** 人脸卡口点位数 */
    private Integer faceChceckpointNum;
 
    public static CheckRuleVO getVoByEntity(@NonNull CheckRule entity, CheckRuleVO vo) {
        if(vo == null) {
            vo = new CheckRuleVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}