You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are three fields, whether to call (1 is, 0 no), call time (timestamp Long) and add time (timestamp Long), now you need to query the paging data. It is necessary to find out the call status (value 1) in the front, and the non-call status (0). The call status is sorted in descending order by call time (Long type), and the non-calls are sorted in descending order by adding time (Long type).
If I understand correctly what you want is like SQL GROUP BY? greenDAO is an opinionated library which sticks to an object relational mapping approach. Hence it does not support this directly.
There are three fields, whether to call (1 is, 0 no), call time (timestamp Long) and add time (timestamp Long), now you need to query the paging data. It is necessary to find out the call status (value 1) in the front, and the non-call status (0). The call status is sorted in descending order by call time (Long type), and the non-calls are sorted in descending order by adding time (Long type).
Original:
有三个字段,是否呼叫(1是,0否),呼叫时间(时间戳Long)和添加时间(时间戳Long),现在需要查询分页数据。需要查出呼叫状态(值为1)的在前面,未呼叫状态(0)的再后面。呼叫状态的按呼叫时间(Long型)降序排序,没呼叫的按添加时间(Long型)降序排序。
The text was updated successfully, but these errors were encountered: