/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.basedatamanage.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.openhis.common.enums.*;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author
 * @date 2025-02-21
 */
@Data
@Accessors(chain = true)
public class LocationQueryDto {

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

    /** 编码 */
    private String busNo;

    /** 名称 */
    private String name;

    /** 状态编码 */
    private LocationStatus statusEnum;

    /** 操作状态 */
    private LocationBedStatus operationalEnum;

    /** 模式编码 */
    private LocationMode modeEnum;

    /** 模式编码 */
    private String typeCode;

    /** 功能编码 */
    private String typeJson;

    /** 拼音码 */
    private String pyStr;

    /** 五笔码 */
    private String wbStr;

    /** 物理形式枚举 */
    private LocationForm formEnum;

    /** 机构编码 */
    private Long organizationId;

    /** 显示顺序 */
    private Integer displayOrder;

//    public LocationQueryDto(LocationForm form, String busNo, LocationMode mode) {
    public LocationQueryDto(LocationForm form) {
        this.statusEnum = LocationStatus.ACTIVE;
        this.formEnum = form;
//        this.modeEnum = mode;
    }
}
