|
@@ -65,7 +65,7 @@ func GetCygxArticleAndYanxuanRecordRespList(condition string, pars []interface{}
|
|
|
func GetCygxArticleAndYanxuanRecordRespListWeekly(condition string, pars []interface{}, startSize, pageSize int) (items []*CygxArticleAndYanxuanRecordResp, err error) {
|
|
|
o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
databaseName := utils.GetWeeklyDatabase()
|
|
|
- sql := `SELECT * FROM cygx_article_and_yanxuan_record as r
|
|
|
+ sql := `SELECT r.* FROM cygx_article_and_yanxuan_record as r
|
|
|
INNER JOIN %s.user_seller_relation AS us ON us.user_id = r.user_id AND us.product_id = 2
|
|
|
WHERE 1= 1 `
|
|
|
sql = fmt.Sprintf(sql, databaseName)
|