package com.openhis.administration.domain;

import java.util.Date;

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 com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import com.core.common.core.domain.HisBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 门诊号码段管理Entity实体
 *
 * @author system
 * @date 2025-01-XX
 */
@Data
@TableName("adm_outpatient_no_segment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class OutpatientNoSegment extends HisBaseEntity {

    /** ID */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 操作员ID */
    private Long operatorId;

    /** 操作员姓名 */
    private String operatorName;

    /** 员工工号 */
    private String staffNo;

    /** 领用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receiveDate;

    /** 起始号码 */
    private String startNo;

    /** 终止号码 */
    private String endNo;

    /** 使用号码 */
    private String usedNo;
}

