|
@@ -17,7 +17,7 @@ const (
|
|
|
|
|
|
// FactorEdbSeries 因子指标系列表
|
|
|
type FactorEdbSeries struct {
|
|
|
- FactorEdbSeriesId int `orm:"column(factor_edb_series_id);pk" gorm:"primaryKey" `
|
|
|
+ FactorEdbSeriesId int `gorm:"primaryKey;column:factor_edb_series_id;autoIncrement" `
|
|
|
SeriesName string `description:"系列名称"`
|
|
|
EdbInfoType int `description:"关联指标类型:0-普通指标;1-预测指标"`
|
|
|
CalculateStep string `description:"计算步骤-JSON"`
|
|
@@ -213,7 +213,8 @@ func (m *FactorEdbSeries) CreateSeriesAndMapping(item *FactorEdbSeries, mappings
|
|
|
err = fmt.Errorf("insert series err: %v", e)
|
|
|
return
|
|
|
}
|
|
|
- item.FactorEdbSeriesId = seriesId
|
|
|
+ seriesId = item.FactorEdbSeriesId
|
|
|
+ //item.FactorEdbSeriesId = seriesId
|
|
|
|
|
|
if len(mappings) > 0 {
|
|
|
for _, v := range mappings {
|