QueryUserDeliveryAddress返回结果时,缺省地址排在最前面
This commit is contained in:
@@ -180,7 +180,9 @@ func QueryUserDeliveryAddress(db *DaoDB, userIDs []string, offset, pageSize int)
|
|||||||
}
|
}
|
||||||
offset = FormalizePageOffset(offset)
|
offset = FormalizePageOffset(offset)
|
||||||
pageSize = FormalizePageSize(pageSize)
|
pageSize = FormalizePageSize(pageSize)
|
||||||
sql += " LIMIT ? OFFSET ?"
|
sql += `
|
||||||
|
ORDER BY t1.is_default DESC, t1.consignee_name
|
||||||
|
LIMIT ? OFFSET ?`
|
||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
|
|
||||||
Begin(db)
|
Begin(db)
|
||||||
|
|||||||
Reference in New Issue
Block a user