Przeglądaj źródła

Merge branch 'master' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

xingzai 1 rok temu
rodzic
commit
17f4483d22
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      models/statistic_report.go

+ 1 - 1
models/statistic_report.go

@@ -889,7 +889,7 @@ func GetIncrementalCompanyListByOperationRecordMerge(condition string, pars []in
 	if condition != "" {
 		sql += condition
 	}
-	sql += ` group by a.company_contract_id  order by start_date desc,company_id desc limit ?,?`
+	sql += ` group by a.company_contract_id  order by end_date desc,company_id desc limit ?,?`
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
 	return
 }