package cn.com.victorysoft.business.sys.param;

import cn.com.victorysoft.business.util.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("单位油田区块日期参数")
@Data
public class UnitFieldBlockDateParam {

    @ApiModelProperty("单位代码")
    private String unitcode;

    @ApiModelProperty("油田代码")
    private String fieldcode;

    @ApiModelProperty("区块代码")
    private String blockcode;

    @ApiModelProperty("日期")
    private Date testdate;

    public void setTestdate(Date testdate) {
        this.testdate = DateUtils.getDiagDate(testdate);
    }
}
