|
@@ -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)
|