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;
|
}
|
|
}
|