mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 03:42:15 +00:00
Add: Latest updated and added lists
This commit is contained in:
parent
371165010a
commit
f6173c80d3
@ -202,6 +202,12 @@ interface ProductDao : BaseDao<Product> {
|
|||||||
builder += """AND $ROW_MATCH_RANK > 0"""
|
builder += """AND $ROW_MATCH_RANK > 0"""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
when (updateCategory) {
|
||||||
|
UpdateCategory.ALL -> Unit
|
||||||
|
UpdateCategory.NEW -> builder += """AND product.${ROW_ADDED} = product.${ROW_UPDATED}"""
|
||||||
|
UpdateCategory.UPDATED -> builder += """AND product.${ROW_ADDED} < product.${ROW_UPDATED}"""
|
||||||
|
}
|
||||||
|
|
||||||
// Sum up all products with the same package name
|
// Sum up all products with the same package name
|
||||||
builder += "GROUP BY product.${ROW_PACKAGE_NAME} HAVING 1"
|
builder += "GROUP BY product.${ROW_PACKAGE_NAME} HAVING 1"
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ class MainNavFragmentViewModelX(
|
|||||||
Source.NEW -> Request.ProductsNew(
|
Source.NEW -> Request.ProductsNew(
|
||||||
mSearchQuery,
|
mSearchQuery,
|
||||||
mSections,
|
mSections,
|
||||||
Order.LAST_UPDATE,
|
Order.DATE_ADDED,
|
||||||
Preferences[Preferences.Key.NewApps]
|
Preferences[Preferences.Key.NewApps]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user