package cn.lihongjie.coal.inventoryCheck.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Formula;

import java.time.LocalDateTime;

@Data
public class InventoryCheckDto extends OrgCommonDto {

    private LocalDateTime checkTime;

    @Comment("盘点类型")
    private String checkType;

    @Formula(
            "(select i.name\n"
            + "from t_dictionary d,\n"
            + "     t_dictionary_item i\n"
            + "where d.id = i.dictionary_id\n"
            + "  and d.code = 'inventoryCheck.type'\n"
            + "  and i.code = check_type)")
    @Comment("盘点类型-名称")
    private String checkTypeName;

    /**
     * 精煤 合计
     */

    private Long sum0;
    /**
     * 中煤 合计
     */

    private Long sum1;
    /**
     * 原煤 合计
     */

    private Long sum2;
    /**
     * 煤泥 合计
     */

    private Long sum3;
    /**
     * 矸石 合计
     */

    private Long sum4;
    /**
     * 其他 合计
     */

    private Long sum5;
}
