xingzai 1 ano atrás
pai
commit
e7157c55b9
1 arquivos alterados com 1 adições e 1 exclusões
  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
 }