Эх сурвалжийг харах

Merge branch 'feature/v4.9.38_ws' of qmx/jy into feature/v4.9.38

wangshan 1 жил өмнө
parent
commit
1605bae2d9

+ 1 - 1
src/jfw/front/index.go

@@ -351,7 +351,7 @@ func GetDocsData() (docClass []string, indexDocs [][]map[string]interface{}) {
 			code := common.InterfaceToStr((*tmpClass)["code"])
 			//2.0 推荐表数据
 			var docByTidb = func() {
-				docSql := fmt.Sprintf(`SELECT d.id, d.docName, d.docFileType, d.docFileSuffix, d.previewImgId, d.productType, d.source FROM doc d LEFT JOIN doc_recommend dr ON d.id = dr.doc_id WHERE dr.region_state = 1  AND dr.doc_class_code = '%s'  ORDER BY dr.create_date DESC;`, code)
+				docSql := fmt.Sprintf(`SELECT d.id, d.docName, d.docFileType, d.docFileSuffix, d.previewImgId, d.productType, d.source FROM jydocs.doc d LEFT JOIN jydocs.doc_recommend dr ON d.id = dr.doc_id WHERE dr.region_state = 1  AND dr.doc_class_code = '%s'  ORDER BY dr.create_date DESC;`, code)
 				docs := public.BaseMysql.SelectBySql(docSql)
 				if docs != nil && len(*docs) > 0 {
 					docFormatFunc(docs)