package org.dromara.payment.sys.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.dromara.common.core.utils.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sunzexing
 * @version 1.0
 * @title ProInfoCommonBo
 * @description
 * @create 2024-04-24 17:12
 */
@Data
public class ProInfoCommonBo implements Serializable {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd")
    private Date startTime;

    public Date getEndTime() {
        if(this.endTime != null){
            return DateUtils.addOneDay(this.endTime);
        }
        return endTime;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd")
    private Date endTime;


    //服务商名称
    private String name;

    //服务商编号
    private String no;

    //产品编号
    private String proNo;

    //企业ID
    private Long merchantId;

    //运营商或者代理商编码

    private Long busId;
}

