|
@@ -10,7 +10,7 @@ import (
|
|
|
|
|
|
// ChartInfoCorrelation 相关性图表-扩展信息
|
|
|
type ChartInfoCorrelation struct {
|
|
|
- CorrelationChartInfoId int `orm:"column(correlation_chart_info_id);pk" gorm:"primaryKey" description:"相关性图表ID(chart_info表source=3的)"`
|
|
|
+ CorrelationChartInfoId int `orm:"column(correlation_chart_info_id);pk" gorm:"primaryKey;autoIncrement:false" description:"相关性图表ID(chart_info表source=3的)"`
|
|
|
LeadValue int `description:"领先值"`
|
|
|
LeadUnit string `description:"领先单位"`
|
|
|
CalculateValue int `description:"计算窗口"`
|
|
@@ -127,6 +127,7 @@ func CreateCorrelationChartAndEdb(chartInfo *ChartInfo, edbMappingList []*ChartE
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// 相关性信息
|
|
|
correlationInfo.CorrelationChartInfoId = chartInfoId
|
|
|
err = tx.Create(correlationInfo).Error
|