|
@@ -20,6 +20,7 @@ type EdbInfoCalculateSaveReq struct {
|
|
|
Calendar string `description:"公历/农历"`
|
|
|
EmptyType int `description:"空值处理类型(0查找前后35天,1不计算,2前值填充,3后值填充,4等于0)"`
|
|
|
MaxEmptyType int `description:"MAX、MIN公式空值处理类型(1、等于0;2、跳过空值)"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
|
|
|
}
|
|
|
|
|
@@ -111,6 +112,7 @@ type EdbInfoCalculateEditReq struct {
|
|
|
CalculateFormula string `description:"计算公式"`
|
|
|
EmptyType int `description:"空值处理类型(0查找前后35天,1不计算,2前值填充,3后值填充,4等于0)"`
|
|
|
MaxEmptyType int `description:"MAX、MIN公式空值处理类型(1、等于0;2、跳过空值)"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
|
|
|
}
|
|
|
|
|
@@ -168,6 +170,7 @@ type EdbInfoCalculateBatchSaveReq struct {
|
|
|
EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
|
|
|
MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
|
|
|
MoveFrequency string `description:"移动频度:天/周/月/季/年"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
Calendar string `description:"公历/农历"`
|
|
|
}
|
|
|
|
|
@@ -183,6 +186,7 @@ type EdbInfoCalculateBatchEditReq struct {
|
|
|
MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
|
|
|
MoveFrequency string `description:"移动频度:天/周/月/季/年"`
|
|
|
Calendar string `description:"公历/农历"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
EdbInfoIdArr []EdbInfoFromTag
|
|
|
}
|
|
|
|
|
@@ -206,6 +210,7 @@ type EdbInfoCalculateBatchSaveReqByEdbLib struct {
|
|
|
Data interface{} `description:"数据列"`
|
|
|
EmptyType int `description:"空值处理类型(0查找前后35天,1不计算,2前值填充,3后值填充,4等于0)"`
|
|
|
MaxEmptyType int `description:"MAX、MIN公式空值处理类型(1、等于0;2、跳过空值)"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
}
|
|
|
|
|
|
// EdbInfoCalculateBatchEditReqByEdbLib 编辑计算指标的请求参数
|
|
@@ -223,6 +228,7 @@ type EdbInfoCalculateBatchEditReqByEdbLib struct {
|
|
|
Calendar string `description:"公历/农历"`
|
|
|
EdbInfoIdArr []EdbInfoFromTag
|
|
|
Data interface{} `description:"数据列"`
|
|
|
+ Extra string `description:"指标的额外配置"`
|
|
|
}
|
|
|
|
|
|
func GetEdbInfoCalculateMap(edbInfoId, source int) (list []*EdbInfo, err error) {
|