Roc 6 months ago
parent
commit
7a340f7dcc
2 changed files with 3 additions and 3 deletions
  1. 2 2
      models/report_chapter.go
  2. 1 1
      models/target.go

+ 2 - 2
models/report_chapter.go

@@ -9,7 +9,7 @@ import (
 
 // ReportChapter 报告章节
 type ReportChapter struct {
-	ReportChapterId     int       `gorm:"column:report_chapter_id;primaryKey;autoIncrement:false;not null" description:"报告章节ID"`
+	ReportChapterId     int       `gorm:"column:report_chapter_id;primaryKey;autoIncrement:true;not null" description:"报告章节ID"`
 	ReportId            int       `gorm:"column:report_id" description:"报告ID"`
 	ReportType          string    `gorm:"column:report_type" description:"报告类型 day-晨报 week-周报"`
 	ClassifyIdFirst     int       `gorm:"column:classify_id_first" description:"一级分类id"`
@@ -47,7 +47,7 @@ type ReportChapter struct {
 
 // ReportChapterItem 报告章节详情
 type ReportChapterItem struct {
-	ReportChapterId     int    `gorm:"column:report_chapter_id;primaryKey;autoIncrement:false;not null" description:"报告章节ID"`
+	ReportChapterId     int    `gorm:"column:report_chapter_id;primaryKey;autoIncrement:true;not null" description:"报告章节ID"`
 	ReportId            int    `gorm:"column:report_id" description:"报告ID"`
 	ReportType          string `gorm:"column:report_type" description:"报告类型 day-晨报 week-周报"`
 	ClassifyIdFirst     int    `gorm:"column:classify_id_first" description:"一级分类id"`

+ 1 - 1
models/target.go

@@ -1284,7 +1284,7 @@ func GetLzSurveyClassify() (items []*LzPriceClassify, err error) {
 
 // LongzhongSurveyProduct 结构体
 type LongzhongSurveyProduct struct {
-	SurveyProductId      int    `gorm:"column:survey_product_id;primaryKey;autoIncrement:false;not null" description:"调查产品ID"`
+	SurveyProductId      int    `gorm:"column:survey_product_id;primaryKey;autoIncrement:true;not null" description:"调查产品ID"`
 	ProjectQuotaId       int64  `gorm:"column:project_quota_id" description:"项目配额ID"`
 	BreedId              string `gorm:"column:breed_id" description:"品种ID"`
 	BreedName            string `gorm:"column:breed_name" description:"品种名称"`