xyxie 1 ماه پیش
والد
کامیت
3f9628b7f9
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      models/data_manage/stl/calculate_stl_config.go

+ 4 - 0
models/data_manage/stl/calculate_stl_config.go

@@ -17,6 +17,10 @@ type CalculateStlConfig struct {
 
 func (c *CalculateStlConfig) Insert() (insertId int64, err error) {
 	err = global.DbMap[utils.DbNameIndex].Create(c).Error
+	if err != nil {
+		return
+	}
+	insertId = int64(c.CalculateStlConfigId)
 	return
 }