Prechádzať zdrojové kódy

fix:sql scan类型转换bug修复

Roc 3 rokov pred
rodič
commit
3dda360a40

+ 5 - 5
models/tables/company_report_permission/custom_query.go

@@ -33,17 +33,17 @@ func GetReportVarietyList(userId uint64, reportType string) (list []*ReportChapt
 }
 }
 
 
 type ResearchReportTypeList struct {
 type ResearchReportTypeList struct {
-	ResearchReportTypeId    int
-	ResearchReportId        int
+	ResearchReportTypeId    uint64
+	ResearchReportId        uint64
 	ResearchReportTypeTitle string
 	ResearchReportTypeTitle string
 	TypeId                  int
 	TypeId                  int
-	Edit                    int
-	Trend                   int
+	Edit                    int8
+	Trend                   string
 	ReportChapterTypeKey    string
 	ReportChapterTypeKey    string
 	ReportChapterTypeThumb  string
 	ReportChapterTypeThumb  string
 	BannerUrl               string
 	BannerUrl               string
 	ReportChapterTypeName   string
 	ReportChapterTypeName   string
-	Sort                    string
+	Sort                    int
 	EditImgUrl              string
 	EditImgUrl              string
 	PauseStartTime          time.Time
 	PauseStartTime          time.Time
 	PauseEndTime            time.Time
 	PauseEndTime            time.Time