|
@@ -170,10 +170,9 @@ func GetReportSelectionListHome(condition, tbdb string, pars []interface{}, star
|
|
|
// 列表
|
|
|
func GetReportSelectionlogListAll(articleId int) (items []*CygxReportSelectionLog, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `SELECT c.permission_name ,c.image_url,s.subject_name , l.* ,l.company_label as label
|
|
|
+ sql := `SELECT s.subject_name , l.* ,l.company_label as label
|
|
|
FROM
|
|
|
cygx_report_selection_log AS l
|
|
|
- INNER JOIN chart_permission AS c ON c.chart_permission_id = l.chart_permission_id
|
|
|
INNER JOIN cygx_industrial_subject AS s ON s.industrial_subject_id = l.industrial_subject_id
|
|
|
WHERE l.article_id = ? `
|
|
|
_, err = o.Raw(sql, articleId).QueryRows(&items)
|