|
@@ -52,7 +52,7 @@ func init() {
|
|
|
// GetOutsideReportListByConditionCount 根据条件查询列表条数
|
|
|
func GetOutsideReportListByConditionCount(condition string, pars []interface{}) (count int, err error) {
|
|
|
o := orm.NewOrmUsingDB("rddp")
|
|
|
- sql := `select count(distinct t1.outside_report_id) from outside_report t1 inner join chart_permission_search_key_word_mapping t2 on t1.classify_id = t2.classify_id where 1 = 1 `
|
|
|
+ sql := `select count(distinct t1.outside_report_id) from outside_report t1 left join chart_permission_search_key_word_mapping t2 on t1.classify_id = t2.classify_id where 1 = 1 `
|
|
|
sql += condition
|
|
|
err = o.Raw(sql, pars).QueryRow(&count)
|
|
|
if err != nil {
|