/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.transport.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.transport.pojo.entity.OtherExpenseRecord;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 其他费用记录视图实体类
 *
 * @author Chill
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "其他费用记录")
public class OtherExpenseRecordVO extends OtherExpenseRecord {
	@Serial
	private static final long serialVersionUID = 1L;

	@TableField(exist = false)
	@Schema(description = "费用开始日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate expenseDateStart;

	@TableField(exist = false)
	@Schema(description = "费用结束日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate expenseDateEnd;

	@TableField(exist = false)
	@Schema(description = "创建开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTimeStart;

	@TableField(exist = false)
	@Schema(description = "创建结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTimeEnd;

	@TableField(exist = false)
	@Schema(description = "更新人姓名")
	private String updateUserName;

}
