PersonInfo.java 1.55 KB
package com.viontech.match.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class PersonInfo {
    private String unid;
    private String personId;
    private String _score;
    private Double[] body;
    private Double[] data;
    private Integer age;
    private String gender;
    private Integer bodyType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date counttime;
    private String fid;
    private String channelSerialNum;
    private Long gateId;
    private String direction;
    private Integer personType;

    public PersonInfo(String unid, String personId, Double[] body,Double[] data, Integer age, String gender, Integer bodyType, Date countTime, String fid, String channelSerialNum, Long gateId, String direction, Integer personType) {
        this.unid = unid;
        this.personId = personId;
        this.body = body;
        this.data = data;
        this.age = age;
        this.gender = gender;
        this.bodyType = bodyType;
        this.counttime = countTime;
        this.fid = fid;
        this.channelSerialNum = channelSerialNum;
        this.gateId = gateId;
        this.direction = direction;
        this._score = "1";
        this.personType = personType;
    }

    public PersonInfo() {
        this._score = "1";
    }
}