xyxie 1 жил өмнө
parent
commit
91eed77c5c

+ 1 - 1
models/crm/report_chapter_type.go

@@ -84,7 +84,7 @@ type ReportChapterTypeEditResp struct {
 
 // GetReportChapterTypeByCondition 获取章节类型
 func (r *ReportChapterType) GetReportChapterTypeByCondition(condition string, pars []interface{}) (items []*ReportChapterType, err error) {
-	err = global.MYSQL["rddp"].Model(ReportChapterType{}).Where(condition, pars...).Scan(&items).Error
+	err = global.MYSQL["hz_crm"].Model(ReportChapterType{}).Where(condition, pars...).Scan(&items).Error
 	return
 }
 

+ 1 - 1
services/eta/report_chapter_type.go

@@ -82,7 +82,7 @@ func SyncReportChapterTypeUpdateRule(req *eta.ReportChapterTypeRuleSyncReq) (err
 		return
 	}
 	for _, v := range list {
-		ob := &crm.ReportChapterType{
+		ob := &eta.ReportChapterType{
 			ReportChapterTypeId: v.ReportChapterTypeId,
 			/*ReportChapterTypeKey:   v.ReportChapterTypeKey,
 			ReportChapterTypeThumb: v.ReportChapterTypeThumb,