xingzai hace 1 año
padre
commit
e7157c55b9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 }