package com.kcim.vo;

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

import java.util.List;

@Data
@ApiModel("会计科目成本项目对照列表返回对象")
public class AccountProductVO {

    @ApiModelProperty(name = "id",value = "会计科目主键")
    private Long id;

    @ApiModelProperty(name = "accountingName",value = "会计科目名称")
    private String accountingName;

    @ApiModelProperty(name = "accountingCode",value = "主键")
    private String accountingCode;

    @ApiModelProperty(name = "parentId",value = "主键")
    @JsonIgnore
    private Long parentId;

    @ApiModelProperty(name = "productVOs",value = "主键")
    private List<ProductVO> productVOs;

    @ApiModelProperty(name = "isParent",value = "是否是父节点")
    private Boolean isParent=false;

    @ApiModelProperty(name = "child",value = "子对象")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    // 注解表示为空的话 该字段不进行显示
    private List<AccountProductVO> child;
}
