package com.cpop.oam.business.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author DB
 * @createTime 2023/09/26 23:35
 * @description
 */
@Data
@Schema(description = "报销下款")
public class ReimbursePayBo {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空")
    @Schema(description = "主键",requiredMode = Schema.RequiredMode.REQUIRED)
    private String id;

    /**
     * 下发金额
     */
    @NotNull(message = "下发金额不能为空")
    @Schema(description = "下发金额",requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal stageAmount;

    /**
     * 下款时间
     */
    @NotNull(message = "下款时间不能为空")
    @Schema(description = "下款时间",requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime paymentTime;
}
