package thyyxxk.webserver.service.outpatient.thmz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import thyyxxk.webserver.entity.executeItem.BasePage;

import java.util.Date;

/**
 * (ZdDiscountDetail)表实体类
 *
 * @author lihong
 * @since 2024-01-15 09:10:38
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("zd_discount_detail")
public class ZdDiscountDetail  extends BasePage {

    //自增ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    //身份编码
    private Integer visitType;
    //类型 见 DiscountEnum
    private String discountClass;
    private String chargeItem;
    //折扣方式 1.折扣率 2.直接收费
    private String discountType;
    //折扣
    private String discount;
    //有效开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    //有效截止时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    //删除标识  1删除 0 有效
    private Integer delFlag;
    //收费名称
    private String chargeName;
    //身份名称
    private String visitName;
    //1检验 2.检查
    private String jyjcType;
    private String opId;
    private Date opDate;

}

