total_earned DESC order for point account

This commit is contained in:
Timi
2026-09-13 01:37:41 +08:00
parent 91072d6d50
commit c35132d06b
@@ -53,7 +53,7 @@
INNER JOIN `gao_customer` `c` ON `c`.`id` = `a`.`customer_id` AND `c`.`store_id` = `a`.`store_id` INNER JOIN `gao_customer` `c` ON `c`.`id` = `a`.`customer_id` AND `c`.`store_id` = `a`.`store_id`
WHERE WHERE
<include refid="queryWhere"/> <include refid="queryWhere"/>
ORDER BY `a`.`created_at` DESC, `a`.`id` DESC ORDER BY `a`.`total_earned` DESC, `a`.`created_at` DESC, `a`.`id` DESC
LIMIT #{offset}, #{limit} LIMIT #{offset}, #{limit}
</select> </select>