package io.renren.modules.business.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.modules.util.Double2Serializer;
import lombok.Data;

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

/**
 * 
 * 
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2023-02-10 10:13:09
 */
@Data
@TableName("business_money")
public class BusinessMoneyEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Integer id;

	/**
	 * 基础金额
	 */
	@JsonSerialize(using = Double2Serializer.class)
	private Double money;
	/**
	 * 基础金额
	 */
	@JsonSerialize(using = Double2Serializer.class)
	private Double newMoney;
	/**
	 * 基础金额结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date startDate;
	/**
	 * 基础金额截止时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date endDate;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
	/**
	 * 是否申请（0-未申请，1-已申请）
	 */
	private Integer approval;

}
