package com.bonus.common.biz.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author ma_sh
 * @create 2024/10/16 10:16
 */
@Data
public class TreeNode {

    private long id;

    private String name;

    private long parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String level;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String unitName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String manageType;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String companyId;

    private String code;

    /** 原值 */
    @ApiModelProperty(value = "原值")
    private BigDecimal buyPrice;
    /** 租赁单价 */
    @ApiModelProperty(value = "租赁单价")
    private BigDecimal leasePrice;

    /** 实时库存 */
    @ApiModelProperty(value = "实时库存")
    private Long storageNum;

    // 上架数
    private Integer maCount;

    private String remark;
    private Integer maintenanceAlarmDay;

    private List<MaTypeProperty> maTypeProperties;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeNode> children = new ArrayList<>();
}
