Browse Source

黄金交收单按单号排序

zhou.xiaoning 2 years ago
parent
commit
3c287546e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      models/sbyj.go

+ 1 - 0
models/sbyj.go

@@ -314,6 +314,7 @@ func (r *MyTradegoodsdeliveryoffline) buildSql() string {
 	sqlId.FormatParam(r.USERID)
 	// sqlId.AndEx("t.DELIVERYSTATUS", r.DELIVERYSTATUS, r.DELIVERYSTATUS > 0)
 	sqlId.JoinEx(r.Status != "", fmt.Sprintf(" AND t.DELIVERYSTATUS IN (%v)", r.Status))
+	sqlId.OrderByDesc("t.deliveryorderid")
 
 	sqlId.Page(r.Page, r.PageSize)
 	return sqlId.String()