package com.xdap.self_development.domain.view;

import com.definesys.mpaas.query.annotation.SQL;
import com.definesys.mpaas.query.annotation.SQLQuery;
import lombok.Data;

@SQLQuery(value = {
        @SQL(view = "getModelParameterValue",
                sql = "SELECT epd.id AS \"id\", deem.id AS \"modelId\", deem.product_number AS \"productNumber\", ymp.parameter_name AS \"parameterName\", ymp.id AS \"parameterId\" , epd.parameter_value AS \"parameterValue\", ymp.parts_name AS \"partsName\", ymp.parameter_type AS \"parameterType\", ymp.parameter_source AS \"parameterSource\", ymp.number_or_formula AS \"numberOrFormula\" , epd.major_version FROM data_entry_engine_model deem JOIN engine_param_detail epd ON epd.engine_model_id = deem.id AND deem.version_number = epd.major_version JOIN yfsjglpt_model_parameter ymp ON ymp.id = epd.parameter_id")
})
@Data
public class CalculationParameterView {
    // 参数详情id
    private String id;
    // 机型id
    private String modelId;
    // 参数id
    private String parameterId;
    // 产品编号（状态代号）
    private String productNumber;
    // 参数名称
    private String parameterName;
    // 部件名称
    private String partsName;
    // 参数类型
    private String parameterType;
    // 参数值
    private String parameterValue;
    // 参数来源
    private String parameterSource;
    // 编号或者公式
    private String numberOrFormula;
}
