Browse Source

明细按时间倒叙

ziwen 1 year ago
parent
commit
f5e79dce99
1 changed files with 2 additions and 0 deletions
  1. 2 0
      models/cygx/activity_special_trip_bill.go

+ 2 - 0
models/cygx/activity_special_trip_bill.go

@@ -176,6 +176,8 @@ func GetCygxActivitySpecialTripBillDetailListAll(condition string, pars []interf
 			LEFT JOIN cygx_activity AS a ON a.activity_id = b.activity_id
 		WHERE
 			1 = 1` + condition
+
+	sql += ` ORDER BY b.create_time DESC`
 	_, err = o.Raw(sql, pars).QueryRows(&item)
 	return
 }