xiangpei
2024-03-19 37f41a7c17d81a60092e9d69363905f21d9b1a49
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.ycl.platform.domain.vo;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.CheckRule;
 
import java.util.Date;
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;
 
    private Integer category;
    /** 审核状态 */
    private Integer auditState;
    /** 审核人 */
    private String auditUser;
    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;
    /** 审核意见 */
    private String auditDescription;
    public static CheckRuleVO getVoByEntity(@NonNull CheckRule entity, CheckRuleVO vo) {
        if(vo == null) {
            vo = new CheckRuleVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}