Browse Source

no message

xingzai 1 year ago
parent
commit
d6170b52ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/cygx/company_contract.go

+ 1 - 1
models/cygx/company_contract.go

@@ -86,7 +86,7 @@ func GetCompanyContractListJoinCompany(condition string, pars []interface{}, sta
 		WHERE
 			a.STATUS = 1`
 	sql += condition
-	sql += `GROUP BY a.company_contract_id ORDER BY a.start_date DESC 	LIMIT  ?,? `
+	sql += `GROUP BY a.company_contract_id ORDER BY a.start_date DESC   , a.company_contract_id DESC  	LIMIT  ?,? `
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
 	return
 }