소스 검색

fix:sql scan类型转换bug修复

Roc 3 년 전
부모
커밋
3dda360a40
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      models/tables/company_report_permission/custom_query.go

+ 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