package com.ltgk.catches.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Author: wan kun
 * @Description: TODO
 * @Date: 2025/1/20 17:38
 * @Version: 1.0
 */
@Data
public class FishLogNetYieldVo {
    /**
     * 主键
     */
    @JsonProperty(value = "id")
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 捕捞日志id
     */
    @JsonProperty(value = "logId")
    @ApiModelProperty(value = "捕捞日志id")
    private String logId;

    /**
     * 网序id
     */
    @JsonProperty(value = "netId")
    @ApiModelProperty(value = "网序id")
    private String netId;

    /**
     * 水产种类id
     */
    @JsonProperty(value = "aquaticDictId")
    @ApiModelProperty(value = "水产种类id")
    private String aquaticDictId;

    @JsonProperty(value = "aquaticDictName")
    @ApiModelProperty(value = "水产种类名称")
    private String aquaticDictName;

    /**
     * 产量 kg
     */
    @JsonProperty(value = "yield")
    @ApiModelProperty(value = "产量 kg")
    private BigDecimal yield;
    /**
     * 捕捞日志日期
     */
    @JsonProperty(value = "date")
    @ApiModelProperty(value = "捕捞日志日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;
}
